NOTE: These instructions only apply to Real Device LIVE Testing. For Live Desktop, Automated Desktop, Automated Emulator, Automated Simulator, and Automated Real Device testing, a separate Sauce Connect instance is needed. Reference this Gist for details: https://gist.github.com/billmeyer/5cdb1ff770b0552ef0e49c49ba122d47.
Get started by downloading the Sauce Connect executable from https://wiki.saucelabs.com/display/DOCS/Downloading+Sauce+Connect+Proxy.
See https://wiki.saucelabs.com/display/DOCS/System+and+Network+Requirements+for+Sauce+Connect+Proxy for network-specific requirements.
These scripts expect that environment variables are set for SAUCE_LIVERDC_USERNAME
and SAUCE_LIVERDC_ACCESS_KEY
.
The value for SAUCE_LIVERDC_USERNAME
can be found by signing into https://app.testobject.com → Account Settings (the head in the top right corner) → Username (at the bottom of the page).
Likewise, the value for SAUCE_LIVERDC_ACCESS_KEY
can be obtained from the same page as the User API Key value.
- Copy the
config.eu-liverdc.yml
example below to a file on your Sauce Connect server. - Start Sauce Connect as follows:
sc --user=${SAUCE_LIVERDC_USERNAME} --api-key=${SAUCE_LIVERDC_ACCESS_KEY} \
--config-file config.eu-liverdc.yml
- Copy the
config.us-liverdc.yml
example below to a file on your Sauce Connect server. - Start Sauce Connect as follows:
sc --user=${SAUCE_LIVERDC_USERNAME} --api-key=${SAUCE_LIVERDC_ACCESS_KEY} \
--config-file config.us-liverdc.yml