Skip to content

Commit

Permalink
added ios test, populated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandlazaris committed Oct 12, 2022
1 parent 087a07a commit 08afd28
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# maestro-mobile-demo

Trying out maestro
Trying out maestro - https://github.com/mobile-dev-inc/maestro

https://maestro.mobile.dev/


## Dependencies
brew tap mobile-dev-inc/tap
brew install maestro

Real devices or simulator (it will auto-run on whichever is available & connected)

### Android
Android Studio
Java

### iOS
Xcode
brew tap facebook/fb
brew install facebook/fb/idb-companion
idb_companion --udid {id of the iOS device}
https://support.apple.com/en-au/guide/deployment/depece748c41/web

iPhone SE (2nd generation) (14.0.1) (90BD2531-C13E-471A-9185-C978CF0036D3)
iPhone 14 Pro Max Simulator (16.0) (CD5F595C-92F8-4007-B079-F305B40AC007)


## Future
Utilise https://github.com/danielpaulus/go-ios for better iOS device control (not simulator)


## Issues
### Android
Exception in thread "pool-2-thread-1" dadb.AdbStreamClosed: ADB stream is closed for localId: f6c11363

### iOS
Cannot connect to simulator frequently & consistently
12 changes: 12 additions & 0 deletions ios-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# flow.yaml

appId: com.apple.MobileSMS
---
- launchApp
# - tapOn: "Kate"
- tapOn:
containsChild: "Kate Bell"
- inputText: "Hey there, this is an automated test"
- tapOn: "backButton"
- tapOn: "John Appleseed"
- assertVisible: "Hey there, this is an automated test"
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "demo-maestro",
"version": "1.0.0",
"description": "Trying out maestro - https://github.com/mobile-dev-inc/maestro",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alexandlazaris/maestro-mobile-demo.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/alexandlazaris/maestro-mobile-demo/issues"
},
"homepage": "https://github.com/alexandlazaris/maestro-mobile-demo#readme"
}

0 comments on commit 08afd28

Please sign in to comment.