Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ratanshreshtha/devconf.in-2018-nightwatch.js-demo
Slides for End-to-End testing made easy with Nightwatch at DevConf.IN 2018.
https://github.com/ratanshreshtha/devconf.in-2018-nightwatch.js-demo
Last synced: 27 days ago
JSON representation
Slides for End-to-End testing made easy with Nightwatch at DevConf.IN 2018.
- Host: GitHub
- URL: https://github.com/ratanshreshtha/devconf.in-2018-nightwatch.js-demo
- Owner: RatanShreshtha
- License: mit
- Created: 2018-08-08T19:47:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T19:51:49.000Z (over 6 years ago)
- Last Synced: 2024-10-14T00:50:54.235Z (2 months ago)
- Language: JavaScript
- Size: 26.2 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevConf.IN-2018-Nightwatch.js-Demo
Demo for my talk End-to-End testing made easy with Nightwatch.js at [DevConf.IN 2018](https://devconf.info/in).
***
### 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
├── pages
│ └── myBlog.js
├── reports
├── screenshots
├── tests
│ ├── basicTests
│ │ ├── 01_basicTest.js
│ │ ├── 02_multiStepTest.js
│ │ ├── 03_dataDrivenTest.js
│ │ ├── 04_customAssertionTest.js
│ │ └── 05_customCommandTest.js
│ └── myBlog
│ └── myBlog.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/DevConf.IN-2018-Nightwatch.js-Demo.git
$ cd DevConf.IN-2018-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