E2E Test Automation Framework

CircleCI Build Status GitHub Last commit GitHub commits GitHub stars

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:

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 - local or prod.
  • PLATFORM - (string) browser name - chrome or firefox or chromeheadless or firefoxheadless.
  • DEFAULT_TIMEOUT - (int) timeout after milliseconds.
  • DEBUG - (bool) if you need to see the logs - true or false.

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:

Report

CI/CD using Circle CI:

CI/CD using Circle CI CI/CD using Circle CI