This is my repo for PokerStars' Technical Test. See instructions on their Git.
This is a Selenium WebDriver framework in JavaScript, based on my fork of selenium-cucumber-js.
This requires Node.js to run.
- Clone the repo
cd
into the folder you just cloned into- Run
npm install
npm run test
It defaults to running in Chrome, but this can be switched to Firefox in the browser
key value of ./selenium-cucumber-js.json
file.
Once npm run test
has finished, a HTML report, cucumber-report.html
, will be available in the reports
folder.
There are 3 main folders
features
- home of the gherkin/cucmber stepsstep-definitions
- home of the gherkin step definitions and functionspage-objects
- home of the defined elements for pages and any other functions
Also, there are a couple of config files
./selenium-cucumber-js.json
- this contains config values for the framework./config.json
- this contains config values for the automation scripts to use, i.e. URLs
- Implement automatic retry if Scenario fails (to a limited number of retries)
- Implement argument parsing within the package.json script for running specific Tags
MIT