Download this script from the GitHub repo to your local machine, provide the information for
SAUCE_ACCESS_CODE as indicated in the script, and then save and run the script. If you log in to saucelabs.com before you run the script, you'll be able to watch the script's progress as it executes.
To find your Sauce Labs access key:
This example script follows the best practice of using environment variables in place of hardcoded authentication credentials. Once you've been able to successfully run the instant test with hardcoded credentials, you can use this test to make sure that you've correctly set up your environment variables for authentication.
This example script illustrates the use of several best practices in test design, and will report Pass/Fail status to the Sauce Labs dashboard.
For more information, check out the example scripts in our GitHub repo.