Skip to main content

Wdio test framework guide to run autotests on ur local pc

Main Command Structure:

env={EnvironmentType} scope={scopeType} ./node_modules/.bin/wdio {configFilePath} --suite={suiteName}

Example:

env=staging scope=regression ./node_modules/.bin/wdio ./config/desktop/chrome.js --suite=ST_FB_PF

env={EnvironmentType}

  • Variable, that defines environment for test run
  • Pre-defined Environment Types: devalphastaging (by default) prodreview-app (Brent's payment overhaul review-app)

(if u need to add another Environment url, ask Abay to help)

scope={scopeType}

  • Variable, that defines testing scope for test run
  • Pre-defined Testing Scopes:

smoke (by default) - select 1 random test data from the list (short variant of testing)

regression- go through all the test data list (long variant of testing)

./node_modules/.bin/wdio

  • wdio core lib path (required to run the tests)

{configFilePath}

  • Config path, that defines browser/platform for test run
  • Pre-defined Browser Config Files:

Web Desktop:

  • ./config/desktop/chrome.js
  • ./config/desktop/firefox.js
  • ./config/desktop/safari.js Dockerized:
  • ./config/desktop/docker_chrome.js
  • ./config/desktop/docker_firefox.js Selenoid:
  • ./config/desktop/cross_browser.js Mobile: Ask Abay to help to configure it for u local Environment

--suite={suiteName}

payment={paymentType}

  • Optional variable for Payment overhaul only!
  • Pre-defined payment types: offlinepaypalstripe