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.jsDockerized:./config/desktop/docker_chrome.js./config/desktop/docker_firefox.jsSelenoid:./config/desktop/cross_browser.jsMobile: Ask Abay to help to configure it for u local Environment
--suite={suiteName}
- Variable, that defines group of tests for test run
- Pre-Defined suites: For Payment Overhaul: https://docs.google.com/spreadsheets/d/19CTNZJ5r88QNPAVyaPsj8qe3FkF0lNIdJA7S3dCaNWI/edit#gid=1976087481 other suites: ask Abay directly
payment={paymentType}
- Optional variable for Payment overhaul only!
- Pre-defined payment types:
offlinepaypalstripe