Browser automated tests for Melior websites. This tests are based on Cucumber and webdriver that takes care of all the underlying Selenium web-driver session details.:
More specifically for the in-browser tests we use:
-
Install nodejs https://nodejs.org/en/download/ 7.5
-
Install npm https://docs.npmjs.com/cli/install 4.2
-
Install the dependencies
npm install
NOTE: In headless mode checking the title of the site might fail.
npm run-script test
Currently running on Chrome. Firefox and others should also be tested if tests can be browser dependent.
npm run-script browser-test
Any features having the tag @Pending will be skipped when running the tests. For additional tags configuration check support/tagProcessor.js
- There is a general wdio configuration file
wdio.config.js
. For additional customization for running the tests in headless or no headless mode make changes towdio.headless.config.js
andwdio.browser.config.js
.