- The Platform Configurator
- Getting Started with Selenium for Automated Website Testing
- Getting Started with Appium for Mobile Native Application Testing
- Selenium Bootcamp by Dave Haeffner
- Appium Bootcamp by Dave Haeffner and Matthew Edwards
You can create a pre-run executable script that will download a file from a public location to the Sauce Labs virtual machine running your tests. This topic contains examples of scripts for that purpose, based on the operating system you are using for your tests, and how to configure the prerun capability in your tests to reference them.
OS X 10.6, 10.8, 10.9, 10.10
This shell script will fetch the file at the URL and save it to
Windows 7, 8, 8.1
This batch file accomplishes the same thing as the OS X
curl method, but using
bitsadmin.exe since Windows doesn't ship with
This batch file creates a VBScript file,
dl.vbs, which will perform the download, and then runs it:
This shell script will download the file to the
Setting the prerun Capability
After you've created the download script, you need to use the prerun capability in your test script to point to its location.
If your script is in a publicly accessible location, you need to add the URL to the prerun capability.
If your script is in Sauce Storage, you just need to indicate that location, and then the name of the script.