Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ratanshreshtha/jsfoo-pune-2019-nightwatch.js-demo
Slides for End-to-End testing made easy with Nightwatch at JSFoo 2019.
https://github.com/ratanshreshtha/jsfoo-pune-2019-nightwatch.js-demo
Last synced: 6 days ago
JSON representation
Slides for End-to-End testing made easy with Nightwatch at JSFoo 2019.
- Host: GitHub
- URL: https://github.com/ratanshreshtha/jsfoo-pune-2019-nightwatch.js-demo
- Owner: RatanShreshtha
- License: mit
- Created: 2018-12-30T11:58:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T03:54:50.000Z (over 1 year ago)
- Last Synced: 2024-10-31T08:36:26.460Z (about 2 months ago)
- Language: JavaScript
- Size: 26.4 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSFoo-Pune-2019-Nightwatch.js-Demo
Demo for my talk End-to-End testing made easy with Nightwatch.js at [JSFoo Pune 2019](https://jsfoo.in/2019-pune/).
***
### Resources For Nightwatch.js
#### [Homepage](http://nightwatchjs.org) | [Developer Guide](http://nightwatchjs.org/guide) | [API Reference](http://nightwatchjs.org/api)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
- [Node.js](https://nodejs.org/en/download/)
- [Java](https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)## Installation
```bash
$ 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