Skip to content

it is an example of running protractor, nightwatch and webdriver on saucelabs

Notifications You must be signed in to change notification settings

wahengchang/saucelabs-tutorial-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-saucelabs-example

It is a example of node.js e2e test with configuring Sauslabs

1- Get username and accessKey

9fd4bfb0-417d-11e7-8753-adddfa308a76

2- Run Node.js script

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

script example

E2E - Saucelabs - Selenium

screen shot 2017-06-01 at 3 44 33 pm

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

Reference:

About

it is an example of running protractor, nightwatch and webdriver on saucelabs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages