This is an automation testing project template with some simple examples developed using Nightwatch.js and Cucumber applying Page Object Model design pattern.
This project has been developed using Node.js v10.19.0 and npm v6.14.4.
Install Node.js:
sudo apt install nodejs
Install npm:
sudo apt install npm
Google Chrome v87.x.x must be installed.
Install project dependencies (Nightwatch.js and browser drivers):
npm i
Run all tests on default browser (Google Chrome):
npm run test
Test execution results are shown in two different reports:
- Console (visualization improved with cucumber-pretty):
- HTML (generated by multiple-cucumber-html-reporter, reports are shown at the end of test execution by configuration):
This project is ready to add different testing browsers using cross-env. At this moment, only Google Chrome has been implemented:
npm run test:chrome