E2E Test Automation Framework
This is an e2e test automation framework using using Cucumber and Selenium.
Overview:
We need the following to have a browser based e2e testing using Cucumber JS:
- Cucumber JS - (Video Workshop)
- Chai
- Selenium-Webdriver
- Cucumber-Html-Reporter
- Circle CI - (Video Workshop)
Quick Reference Guide:
A short and easy Document for Cucumber.
Setup:
Please clone this repo and run the following commands:
git clone https://github.com/nazmulb/e2e_test_automation.git
cd e2e_test_automation
npm i
Environment Variables:
- ENVIRONMENT - (string) test environment to target -
localorprod. - PLATFORM - (string) browser name -
chromeorfirefoxorchromeheadlessorfirefoxheadless. - DEFAULT_TIMEOUT - (int) timeout after milliseconds.
- DEBUG - (bool) if you need to see the logs -
trueorfalse.
Running Tests:
Environment variables are a big part of the configuration on how to run the tests.
Examples:
PLATFORM=chromeheadless DEBUG=true npm test
or
npm test
Test Report:
CI/CD using Circle CI:
