JSFoo-Pune-2019-Nightwatch.js-Demo

Slides for End-to-End testing made easy with Nightwatch at JSFoo 2019.

MIT License

Stars
1

JSFoo-Pune-2019-Nightwatch.js-Demo

Demo for my talk End-to-End testing made easy with Nightwatch.js at JSFoo Pune 2019.


Resources For Nightwatch.js

Homepage | Developer Guide | API Reference

Here is the directory tree for the project

.
 bin
   webdrivers
     chromedriver
     geckodriver
   selenium-server-standalone-3.13.0.jar
 custom-assertions
   elementCount.js
 custom-commands
   hasOnBeforeUnload.js
 data
   searchKeywords.js
 log
 reports
 screenshots
 tests
|    01_basicTest.js
|    02_multiStepTest.js
|    03_dataDrivenTest.js
|    04_customAssertionTest.js
|    05_customCommandTest.js
 LICENSE
 README.md
 nightwatch.js
 nightwatch.json
 package.json

Pre-Requisites

Installation

$ npm install -g nightwatch

Add -g option to make nightwatch runner available globally in your system.

Run the tests

  • Clone this repo and cd into it
$ git clone https://github.com/RatanShreshtha/JSFoo-Pune-2019-Nightwatch.js-Demo.git
$ cd JSFoo-Pune-2019-Nightwatch.js-Demo
  • To run the nightwatch tests use following command
$ nightwatch -c ./nightwatch.json --env default
$ #                    OR
$ ./node_modules/nightwatch/bin/nightwatch -c ./nightwatch.json --env default # If installed locally

Authors

  • Ratan Kulshreshtha @RatanShreshtha

Acknowledgments

  • Hat tip to anyone who's code was used
  • Stack Overflow
  • Coffee