You, Too, Can Run an Automated Test
A Technical Overview of Sauce Labs for Non-Technical Users
Setting Up a Dev Environment
- Sign up for a Github account
- Open
the Gitpod
- Sign in to Github & Authorize Gitpod
- In the File Drop down, select "Auto-Save"
- Open
sauce_example.rb
file
Starting and Stopping a Sauce Session
- If you don't already have a Sauce Labs account, Sign
up for a Trial Sauce Labs Account
- Locate your Sauce Labs Credentials
- Paste the credentials where it says "yourusername" and "00000000-0000-0000-0000-000000000000"
- Use the Platform Configurator
to create your desired combination (for example select the following)
- W3C
- PC
- Windows 10
- Chrome 78
- Advanced Configuration --> 1024x768
- At the bottom of the Platform Configurator page, click the "Ruby" tab to see the resulting code
- Copy/Paste the "capabilities" code over the
capabilities
line in your Gitpod environment
- In the terminal at the bottom of the Gitpod environment, type:
ruby sauce_example.rb
and hit
enter
- Look at the Dashboard to see the job
running
Adding Sauce Labs Options
- Go to the Test
Configuration Options page
- Scroll down to the very bottom
- In the far right column of the second to last row, copy the
"extendedDebugging": true
information
- In the far right column of the last row, copy the
"capturePerformance": true
information
- In Gitpod, after the
"1024x768",
, hit "enter" and paste this information
Tip: Make sure that you have a comma after each key/value pair in "sauce:options"
- type a comma after the extended debugging text and hit enter
- Uncomment the name and build lines of code by deleting the pound (
#
) sign at the beginning
- Copy those 2 lines and paste them into the capabilities code
- In the terminal, type:
ruby sauce_example.rb
and hit enter
- Look at the Dashboard to see the Build
Running A Real Test
- Navigate to the Sauce Demo Page
- Fill out the form with "standard_user" and "secret_sauce" credentials
- Uncomment the rest of the code at the bottom for finding elements and submitting results
- Look at the Dashboard to see the Build