Skip to content

trannguyenhung011086/webdriverio_appium

Repository files navigation

Use case 1 Launch App > Sign up > Click on "+" button(Sell button) > List an item under 'Everything Else > Others' category > Go to profile page to see message not able to list items due to unverified account

Use case 2 Launch App > Log in with verified account > Click on "+" button(Sell button) > List an item under 'Everything Else > Others' category > Go to respective category > verify listing appears with filter set to 'recent'.

Precondition

  • run "npm install" to install all dependencies in package.json
  • run "npm config set unsafe-perm true" if cannot install npm due to permission

Use wdio test runner

  • set config at wdio.conf.js
  • run all tests: "./node_modules/.bin/wdio wdio.conf.js"
  • run suite: "./node_modules/.bin/wdio wdio.conf.js --suite login"

Use npm script from package.json

  • run all tests: "npm test"
  • run suite: "npm test -- --suite login"
  • run all tests and export reports: "npm clean & npm test ; npm generateMochawesome ; npm serveAllure"

Notes

  • install babel to use ES6 style
  • use webdriverio test runner will use the same session shared between test cases in one file -> split to different files to use new session OR use browser.reload() to reload session right in the test
  • set logLevel: 'verbose' for debugging

About

This is for using Appium with webdriver.io to automate on Android emulator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published