Cross Platform

If you simply want to verify how NoSmoke works, there is a fast way to do it. Copy the following sections of code and save it as a .yml file. Run your code with the instruction given previously . You will see how the NoSmoke app-crawler performs on Macaca Demos

Configuration For iOS

For iOS, instead of using app param, for using app which has already been installed, you can specify bundleID as well, like: bundleId: '${your-package-name}' . You can get the bundleId in the plist file of your .ipa bundle.

---
# 1. Initialisation option
desiredCapabilities:
  platformName: 'iOS'
  deviceName: 'iPhone 6 Plus'
  app: 'https://npmcdn.com/ios-app-bootstrap@latest/build/ios-app-bootstrap.zip'

# 2. Crawling option
crawlingConfig:
  strategy: 'ocr'
  platform: 'ios'
  triggers:
    - 'please input password'
...

Configuration For Android

For Android, instead of using app param, you can specify package as well, like: package: '${name-of-package}' for using app which has already been installed. You may get the list of package names installed on android device like: adb shell 'pm list packages -f'

---
# 1. Initialisation option
desiredCapabilities:
  platformName: 'android'
  autoAcceptAlerts: false
  app: 'https://npmcdn.com/android-app-bootstrap@latest/android_app_bootstrap/build/outputs/apk/android_app_bootstrap-debug.apk'

# 2. Crawling option
crawlingConfig:
  strategy: 'ocr'
  platform: 'android'
  triggers:
    - 'please input password'
...
Last Updated: 1/17/2019, 5:00:45 PM