josdem / webdriverio-android

WebdriverIO along with Mocha to test Android app locally and in Saucelabs
0 stars 0 forks source link
android appium kotlin mocha nodejs saucelabs webdriverio

Webdriver.io Android

code style: prettier

This project shows how to test Android applications using Webdriver.io and Mocha Framework

Requirements

Note: I recommed to use NVM to manage NodeJS versions

To format the project

npx prettier --write .

To build the project

npm install

To run the project locally

Run Appium server:

appium --base-path=/wd/hub/

And

npx wdio run test/configs/wdio.local.conf.js --spec=test/specs/launcher.spec.js

To run the project in Applitools

export APPLITOOLS_API_KEY=${apiKey}

where:

npx wdio run test/configs/wdio.applitools.conf.js --spec=test/specs/launcher.applitools.spec.js

To run the project in SauceLabs

export SAUCE_USERNAME=${YOUR_SAUCE_USERNAME}
export SAUCE_ACCESS_KEY=${YOUR_SAUCE_KEY}
export SAUCE_URL=${YOUR_SAUCE_URL}
npx wdio run test/configs/wdio.sauce.conf.js

Read this as reference

https://webdriver.io/docs/gettingstarted

Note: This project uses Android Launcher as a target Android product