Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billmeyer/nightwatch-example
https://github.com/billmeyer/nightwatch-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/billmeyer/nightwatch-example
- Owner: billmeyer
- Created: 2020-05-08T19:48:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:19:56.000Z (about 2 years ago)
- Last Synced: 2024-04-14T23:04:59.068Z (10 months ago)
- Language: JavaScript
- Size: 197 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Nightwatch.js Example
This code is provided on an "AS-IS” basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify this framework. Issues regarding this framework should be submitted through GitHub. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.
### 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. Sauce Credentials
* In the terminal export your Sauce Labs Credentials as environmental variables:
```
$ export SAUCE_USERNAME=
$ export SAUCE_ACCESS_KEY=
```
3. Project Dependencies
* Install Node modules
```
$ npm install
```### Running Tests
* Tests in Parallel:
```
$ ./node_modules/.bin/nightwatch -e chrome,firefox tests
```[Sauce Labs Dashboard](https://saucelabs.com/beta/dashboard/)
### Advice/Troubleshooting
1. There may be additional latency when using a remote webdriver to run tests on Sauce Labs. Timeouts or Waits may need to be increased.
* [Selenium tips regarding explicit waits](https://wiki.saucelabs.com/display/DOCS/Best+Practice%3A+Use+Explicit+Waits)### Resources
##### [Sauce Labs Documentation](https://wiki.saucelabs.com/)##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [NightwatchJS Documentation](http://nightwatchjs.org/api)
##### [Node Documentation](https://nodejs.org/en/docs/)
##### [Stack Overflow](http://stackoverflow.com/)
* A great resource to search for issues not explicitly covered by documentation