You, Too, Can Run an Automated Test

A Technical Overview of Sauce Labs for Non-Technical Users

Download Presentation Slides

Setting Up a Dev Environment

  1. Sign up for a Github account
  2. Open the Gitpod
  3. Sign in to Github & Authorize Gitpod
  4. In the File Drop down, select "Auto-Save"
  5. Open sauce_example.rb file

Starting and Stopping a Sauce Session

  1. If you don't already have a Sauce Labs account, Sign up for a Trial Sauce Labs Account
  2. Locate your Sauce Labs Credentials
  3. Paste the credentials where it says "yourusername" and "00000000-0000-0000-0000-000000000000"
  4. Use the Platform Configurator to create your desired combination (for example select the following)
    • W3C
    • PC
    • Windows 10
    • Chrome 78
    • Advanced Configuration --> 1024x768
  5. At the bottom of the Platform Configurator page, click the "Ruby" tab to see the resulting code
  6. Copy/Paste the "capabilities" code over the capabilities line in your Gitpod environment
  7. In the terminal at the bottom of the Gitpod environment, type: ruby sauce_example.rb and hit enter
  8. Look at the Dashboard to see the job running

Adding Sauce Labs Options

  1. Go to the Test Configuration Options page
  2. Scroll down to the very bottom
  3. In the far right column of the second to last row, copy the "extendedDebugging": true information
  4. In the far right column of the last row, copy the "capturePerformance": true information
  5. 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"
  6. type a comma after the extended debugging text and hit enter
  7. Uncomment the name and build lines of code by deleting the pound (#) sign at the beginning
  8. Copy those 2 lines and paste them into the capabilities code
  9. In the terminal, type: ruby sauce_example.rb and hit enter
  10. Look at the Dashboard to see the Build

Running A Real Test

  1. Navigate to the Sauce Demo Page
  2. Fill out the form with "standard_user" and "secret_sauce" credentials
  3. Uncomment the rest of the code at the bottom for finding elements and submitting results
  4. Look at the Dashboard to see the Build