- Copy the example code and save it into a file called
Make sure your username and access key are included in the URL passed through to the command_executor.
- Open a command line terminal and navigate to the directory where the file is located.
Execute the test:
Check your dashboard and you will see that your test has just run on Sauce!
Running Local Tests
Developing apps on
localhost is quick and efficient. The drawback is that
localhost is not a publicly-accessible address on the Internet, so the browsers in the Sauce Labs cloud can't load and test your app. The solution is to use Sauce Connect. Sauce Connect uses a secure tunnel protocol that gives specific Sauce machines access to your local network. You can also use it to test applications that are inside your corporate firewall. Sauce Connect is not required to run tests on Sauce Labs, only in situations where the application or website you want to test is on your local machine or behind a firewall.
Running Tests in Parallel