{"id":22602740,"url":"https://github.com/wahengchang/saucelabs-tutorial-example","last_synced_at":"2026-04-29T17:40:28.678Z","repository":{"id":84319889,"uuid":"93035329","full_name":"wahengchang/saucelabs-tutorial-example","owner":"wahengchang","description":"it is an example of running protractor, nightwatch and webdriver on saucelabs","archived":false,"fork":false,"pushed_at":"2017-06-01T08:47:23.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T01:38:18.535Z","etag":null,"topics":["e2e-tests","example","nightwatch","protractor","saucelabs","selenium","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wahengchang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-01T08:35:28.000Z","updated_at":"2017-06-01T08:45:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"815439b4-0e51-41d1-ab53-a97c2dee1ed9","html_url":"https://github.com/wahengchang/saucelabs-tutorial-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahengchang%2Fsaucelabs-tutorial-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahengchang%2Fsaucelabs-tutorial-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahengchang%2Fsaucelabs-tutorial-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wahengchang%2Fsaucelabs-tutorial-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wahengchang","download_url":"https://codeload.github.com/wahengchang/saucelabs-tutorial-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100582,"owners_count":20723479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["e2e-tests","example","nightwatch","protractor","saucelabs","selenium","tutorial"],"created_at":"2024-12-08T12:42:23.500Z","updated_at":"2026-04-29T17:40:28.618Z","avatar_url":"https://github.com/wahengchang.png","language":"JavaScript","readme":"# nodejs-saucelabs-example\nIt is a example of node.js e2e test with configuring Sauslabs  \n\n### 1- Get username and accessKey\n\n![9fd4bfb0-417d-11e7-8753-adddfa308a76](https://cloud.githubusercontent.com/assets/5538753/26671929/d11c7a10-46e9-11e7-9c58-9d294271e774.jpg)\n\n\n### 2- Run Node.js script\n\nThe script is written from : \n[https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example](https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example)\n\n![script example](https://cdn-images-1.medium.com/max/1200/1*G7QUPS4AMz8Lf7fBu3fh4Q.png)\n\n\n# E2E - Saucelabs - Selenium\n![screen shot 2017-06-01 at 3 44 33 pm](https://cloud.githubusercontent.com/assets/5538753/26669669/521ea394-46e1-11e7-91ec-8297e75e18ce.png)\n\n\nRun\n```\n$ node node_example.js\ntitle is: I am a page title - Sauce Labs\n```\n\n## Casper VS Nightwatch VS Protrator\n They all support for different unit test frameworks like (Jasmine, Mocha, Cucumber etc..)\n They all support good reporting mechanism (html, xml etc..)\n\n - Casper: 6.6k ： \n It is written in Python, i.e. it is not a native Node.js solution.\n    - It uses  headless browser engines (PhantomJS or SlimerJS).\n    - Tests run much faster compared to real browsers.\n \n - Nightwatch: 6.6k\n\n    - It is a custom implementation of W3C webdriver API, like WebDriverIO.\n    - Its benefits include highly transparent and readable test code.\n    - It needs to use waits in code while Protractor and TestCafe have built-in waiting mechanism.\n \n - Protrator: 6.5k\n  It is the only automation tool which has inbuilt support for AngularJS element \n\n     - It does not have support to automate mobile Apps.\n\n\n#### Read More\n - [Nightwatch](https://github.com/dwyl/learn-nightwatch)\n - [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)\n - [Protractor vs WebdriverIO vs NightWatch](http://www.webdriverjs.com/protractor-vs-webdriverio-vs-nightwatch/)\n\n## Reference:\n - [https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example](https://wiki.saucelabs.com/display/DOCS/Node.js+Test+Setup+Example)\n - [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)\n - [https://www.infoq.com/articles/balancing-unit-and-end-to-end-tests](https://www.infoq.com/articles/balancing-unit-and-end-to-end-tests)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwahengchang%2Fsaucelabs-tutorial-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwahengchang%2Fsaucelabs-tutorial-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwahengchang%2Fsaucelabs-tutorial-example/lists"}