- 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
Sauce Connect Start Up Process
During startup, Sauce Connect issues a series of HTTPS requests to the Sauce Labs REST API. These are outbound connections to
saucelabs.com on port
443. Using the REST API, Sauce Connect checks for updates and other running Sauce Connect sessions, and ultimately launches a remote tunnel endpoint virtual machine (VM). Once the VM is started, a tunnel connection is established to one of tunnel VMs with IPs in Sauce Labs ranges (
18.104.22.168/21, 22.214.171.124/21, 126.96.36.199/22) on port
443, and all traffic between Sauce Labs and Sauce Connect is then multiplexed over this single encrypted TLS connection.
- Sauce Connect makes HTTPS REST API calls to
saucelabs.com:443using the username and access key provided when starting Sauce Connect.
- Sauce Labs creates a dedicated virtual machine that will serve as the endpoint of the tunnel connection created by Sauce Connect.
- Sauce Labs responds with the unique ID of the virtual machine created in step 2.
- Sauce Connect establishes a TLS connection directly to the dedicated virtual machine created in step 2. (tunnel VM with IP in Sauce Labs ranges (
188.8.131.52/21, 184.108.40.206/21, 220.127.116.11/22)).
- All test traffic is multiplexed over the tunnel connection established in step 4.
Sauce Connect Teardown Process
Once Sauce Connect is terminated (typically via
ctrl-c), a call will be made from Sauce Connect to the REST API with instructions to terminate the tunnel VM. Sauce Connect will continue to poll the REST API until the tunnel VM has been halted and deleted.
Using Sauce Connect High Availability Options
If you are using the Sauce Connect High Availability Configuration options and you attempt to terminate a running test with
cntrl-c, you will see a message that Sauce Connect will not terminate until tests have completed. If you want to force Sauce Connect to terminate before the test finishes, enter
cntrl-c to force it to quit.