Nightwatch.js QA Automation demo.
Nightwatch.js is an integrated, easy to use End-to-End testing solution for web applications and websites, written in Node.js. It uses the W3C WebDriver API to drive browsers in order to perform commands and assertions on DOM elements.
This project includes a sample application, and a complementary test suite to demonstrate the basic workflow of using Nightwatch.js for QA SDET automation. Ideally one should be able to get a feel for structuring and writing E2E test cases, as well as extend or refactor these existing tests to build up confidence in working within SDET.
- Project Setup & Installation:
# Nightwatch.js Setup
$ git clone && cd into this repo
$ npm install
- Configure
.env
file with the following in order for the test cases to work:
USERNAME=tomsmith
PASSWORD=SuperSecretPassword!
Note: The USERNAME & PASSWORD can be located on the main testing web page.
- Execute Nightwatch.js E2E test suite:
$ npm run test
- Nightwatch.js
- Selenium
- Node.js
- Special thanks to the-internet as a test platform!