https://github.com/wahengchang/saucelabs-tutorial-example
it is an example of running protractor, nightwatch and webdriver on saucelabs
https://github.com/wahengchang/saucelabs-tutorial-example
e2e-tests example nightwatch protractor saucelabs selenium tutorial
Last synced: about 1 year ago
JSON representation
it is an example of running protractor, nightwatch and webdriver on saucelabs
- Host: GitHub
- URL: https://github.com/wahengchang/saucelabs-tutorial-example
- Owner: wahengchang
- Created: 2017-06-01T08:35:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T08:47:23.000Z (almost 9 years ago)
- Last Synced: 2025-03-22T01:38:18.535Z (about 1 year ago)
- Topics: e2e-tests, example, nightwatch, protractor, saucelabs, selenium, tutorial
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nodejs-saucelabs-example
It is a example of node.js e2e test with configuring Sauslabs
### 1- Get username and accessKey

### 2- Run Node.js script
The script is written from :
[https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example](https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example)

# E2E - Saucelabs - Selenium

Run
```
$ node node_example.js
title is: I am a page title - Sauce Labs
```
## Casper VS Nightwatch VS Protrator
They all support for different unit test frameworks like (Jasmine, Mocha, Cucumber etc..)
They all support good reporting mechanism (html, xml etc..)
- Casper: 6.6k :
It is written in Python, i.e. it is not a native Node.js solution.
- It uses headless browser engines (PhantomJS or SlimerJS).
- Tests run much faster compared to real browsers.
- Nightwatch: 6.6k
- It is a custom implementation of W3C webdriver API, like WebDriverIO.
- Its benefits include highly transparent and readable test code.
- It needs to use waits in code while Protractor and TestCafe have built-in waiting mechanism.
- Protrator: 6.5k
It is the only automation tool which has inbuilt support for AngularJS element
- It does not have support to automate mobile Apps.
#### Read More
- [Nightwatch](https://github.com/dwyl/learn-nightwatch)
- [Top 5 Most Rated Node.js Frameworks for End-to-End Web Testing](https://medium.com/@adrian_lewis/top-5-most-rated-node-js-frameworks-for-end-to-end-web-testing-f8ebca4e5d44)
- [Protractor vs WebdriverIO vs NightWatch](http://www.webdriverjs.com/protractor-vs-webdriverio-vs-nightwatch/)
## Reference:
- [https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example](https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example)
- [https://medium.com/@mikaelberg/zero-to-hero-with-end-to-end-tests-using-nightwatch-saucelabs-and-travis-e932c8deb695](https://medium.com/@mikaelberg/zero-to-hero-with-end-to-end-tests-using-nightwatch-saucelabs-and-travis-e932c8deb695)
- [https://www.infoq.com/articles/balancing-unit-and-end-to-end-tests](https://www.infoq.com/articles/balancing-unit-and-end-to-end-tests)