This project shows how to test Android applications using Webdriver.io and Mocha Framework
20.10.0
2.2.2
Note: I recommed to use NVM to manage NodeJS versions
npx prettier --write .
npm install
Run Appium server:
appium --base-path=/wd/hub/
And
npx wdio run test/configs/wdio.local.conf.js --spec=test/specs/launcher.spec.js
export APPLITOOLS_API_KEY=${apiKey}
where:
${apiKey}
Is your Applitools api keynpx wdio run test/configs/wdio.applitools.conf.js --spec=test/specs/launcher.applitools.spec.js
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
https://webdriver.io/docs/gettingstarted
Note: This project uses Android Launcher as a target Android product