This a simple NodeJS example test for Sauce Labs.
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 |
export SAUCE_USERNAME=<YOUR_USERNAME>
export SAUCE_ACCESS_KEY=<YOUR_ACCESS_KEY>
npm install
node test.js
docker-compose build
docker-compose up