Skip to content

lilithmooncohen/saucelabs-getting-started-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with NodeJS on Sauce Labs

This a simple NodeJS example test for Sauce Labs.

Environment Variables

Options

Variable Description Required Default
SAUCE_USERNAME sauce username yes none
SAUCE_ACCESS_KEY sauce access key yes none
SAUCE_ENDPOINT endpoint to test no http://saucelabs.com/test/guinea-pig
SAUCE_SERVER sauce server to use no ondemand.saucelabs.com
SAUCE_PORT sauce port to use no 80
SAUCE_PLATFORM sauce server to use no Windows 10
SAUCE_BROWSER sauce server to use no chrome
SAUCE_BROWSER_VERSION sauce server to use no 47.0

Set

export SAUCE_USERNAME=<YOUR_USERNAME>
export SAUCE_ACCESS_KEY=<YOUR_ACCESS_KEY>

Run Locally

Install Dependencies

npm install

Run the test

node test.js

Run with Docker

Build the container

docker-compose build

Run the test

docker-compose up

About

Getting started with NodeJS on Sauce Labs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published