https://github.com/testingbot/nightwatch-example
An example of NightWatch for TestingBot.com
https://github.com/testingbot/nightwatch-example
Last synced: 3 days ago
JSON representation
An example of NightWatch for TestingBot.com
- Host: GitHub
- URL: https://github.com/testingbot/nightwatch-example
- Owner: testingbot
- License: mit
- Created: 2018-11-09T08:03:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T09:10:15.000Z (over 1 year ago)
- Last Synced: 2026-01-20T05:13:44.698Z (7 days ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/testingbot/nightwatch-example/actions/workflows/test.yml)
## TestingBot - NightWatch Example
TestingBot offers an online grid of browsers and mobile devices for running automated tests using Nightwatch.
This example repository demonstrates how to use Nightwatch to execute tests in parallel across multiple browsers on TestingBot.
### Environment Setup
1. Global Dependencies
* Install [Node.js](https://nodejs.org/en/)
* Or Install Node.js with [Homebrew](http://brew.sh/)
```
$ brew install node
```
2. TestingBot Credentials
* In the terminal export your TestingBot Credentials as environmental variables:
```
$ export TESTINGBOT_KEY=
$ export TESTINGBOT_SECRET=
```
3. Project Dependencies
* Install Node modules
```
$ npm install
```
### Running Tests
* Run one test:
```
$ npm run single
```
* Tests in Parallel:
```
$ npm run parallel
```
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)
### Resources
##### [TestingBot Nightwatch Documentation](https://testingbot.com/support/getting-started/nightwatch.html)
##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [NightWatch Documentation](http://nightwatchjs.org/)