[Node.js] 2 Step setup End to End Test in SauceLabs

Although there is no happy path in programming, the user will experience many fewer paths through your code than are possible

End-to-end testing is the process of testing your entire system from start to finish. End-to-end tests are usually written from the perspective of the end user, and are typically automated through frameworks like Selenium and Appium (From Saucelabs).

1- Set up Username and AccessKey

Get Username and AccessKey from sauceLabs dashboard

Target swebsite:

https://saucelabs.com/test/guinea-pig

2- Run Node.js script

The script is written from : https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example

Run

$ node node_example.js
title is: I am a page title - Sauce Labs

Reference:

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://www.infoq.com/articles/balancing-unit-and-end-to-end-tests