Skip to content

Commit

Permalink
included ios tests and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandlazaris committed Apr 18, 2023
1 parent d9a4aad commit bdfc54c
Show file tree
Hide file tree
Showing 8 changed files with 644 additions and 8 deletions.
Binary file added challenge/android-recording.mov
Binary file not shown.
4 changes: 2 additions & 2 deletions challenge/android/android-fail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ appId: io.testproject.demo
---
- launchApp
- tapOn: Enter your Full Name
- inputText: "B@D DATA"
- inputText: "B@D DATa"
- tapOn: Enter your Password
- inputText: "B@D DATA"
- inputText: "B@D DATa"
- tapOn: LOGIN
- assertVisible: "This password is incorrect"
Binary file added challenge/ios-recording.mov
Binary file not shown.
13 changes: 13 additions & 0 deletions challenge/ios/ios-fail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
appId: io.testproject.Demo
---
- launchApp: io.testproject.Demo
- tapOn:
id: "name"
- inputText: "B@D DATa"
- tapOn:
id: "password"
- inputText: "B@D DATa"
- tapOn: Login
- assertVisible: This password is incorrect


14 changes: 14 additions & 0 deletions challenge/ios/ios-success.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
appId: io.testproject.Demo
---
- launchApp: io.testproject.Demo
- tapOn:
id: "name"
- inputText: "Success"
- tapOn:
id: "password"
- inputText: "12345"
- tapOn: Login
- assertVisible:
id: "greetings"


25 changes: 21 additions & 4 deletions challenge/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
readme
# cross platform challenge

android apk sourced from: https://github.com/testproject-io/android-demo-app/blob/master/APK/testproject-demo-app.apk
ios app sourced from: https://github.com/testproject-io/ios-demo-app
## General
* framework used: [Maestro](https://github.com/mobile-dev-inc/maestro)
* screen recordings included for both platforms
* run both platforms using simulators

framework used: [Maestro](https://github.com/mobile-dev-inc/maestro)
## Android
* https://github.com/testproject-io/android-demo-app/blob/master/APK/testproject-demo-app.apk
* android run cmd: `maestro test android-{fileName}.yaml`
* requires android emulator to be running prior to test
* once the test is executed, it will auto-attach the first available android device

## iOS
* https://github.com/testproject-io/ios-demo-app
* ios run cmd: `maestro test ios-{fileName}.yaml`
* using ios simulator uuid 90BD2531-C13E-471A-9185-C978CF0036D3 (ios v14)
* requires `idb_companion --udid 90BD2531-C13E-471A-9185-C978CF0036D3` to be run in a separate process before running test


## Dependencies
* Android Studio, Android emulator, adb (for debugging)
* XCode (manages all other dependencies also)
Loading

0 comments on commit bdfc54c

Please sign in to comment.