Skip to content

WebdriverIO along with Mocha to test Android app locally and in Saucelabs

Notifications You must be signed in to change notification settings

josdem/webdriverio-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • ${apiKey} Is your Applitools api key
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

About

WebdriverIO along with Mocha to test Android app locally and in Saucelabs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published