Getting Started
#
PrerequisitesPlease make sure you have the following:
- Docker installed
docker run hello-world
runs without any errors- An active Sauce Labs account, if you don't have one yet, please sign-up
- Recommended - Your Sauce Labs
SAUCE_USERNAME
andSAUCE_ACCESS_KEY
as environment variables
Here are instructions for setting environment variables on each Operating System:
#
Get Sauce To Go up and running#
Two-minute demo#
1. Create a directory and copy the configuration exampleSave the file as config.toml
Check the comments in the configuration example for specific adjustments on each operating system.
Make sure the directory path can be accessed by Docker.
Tip: To improve loading time, pull the Docker images before moving to step two (only needed once).
#
2. Start Sauce To GoYou'll need to mount two volumes. The first one is the path where the config file from
step 1 is, and the second one is the path where the test assets will be temporarily stored.
In Linux, you might need to change the permissions of the assets folder using the command
sudo chown 1200:1201 assets
.
Be sure to be in the same directory you created on step 1.
#
3. Run your testsPoint them to either http://localhost:4444
or to http://localhost:4444/wd/hub
.
Your test capabilities need to include the sauce:options
section, check the example below.