The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree
Skip to end of metadata
Go to start of metadata

These environment variables can be used in addition to command-line flags to control the behavior of Sauce Connect. Please note that not all environment variables are supported on all platforms.

When an environment variable is used, it can still be overridden by the command-line. Command-line options – when available – always take precedence. Effective with Sauce Connect Proxy version 4.5.0, some command-line arguments can be passed through a config file or an environment variable. When the same argument is passed through multiple methods, the order of precedence is as follows: Command Line Argument > Config File > Environment Variable

Environment VariableDescriptionPlatformsCommand-Line Option
SAUCE_USERNAMESauce Labs username.

Windows, Linux, Mac OS X

--user

SAUCE_ACCESS_KEYSauce Labs access key.

Windows, Linux, Mac OS X

--api-key

http_proxy

An HTTP proxy that will be used by Sauce Connect Proxy.

It can be in the format of http://hostname:port or just hostname:port.

Sauce Connect Proxy Version 4.5.0 and above.

On Linux and Mac environments, http_proxy and https_proxy variables can contain proxy credentials in the following format scheme://user:password@host:port

Windows, Linux, Mac OS X




--proxy

HTTP_PROXY
all_proxy
ALL_PROXY
no_proxy

A comma-separated list of hostnames that will not be proxied, even when Sauce Connect is configured to use a proxy. Subdomain wildcarding is supported when the hostname starts with a ".".

Examples

  • saucelabs.com,foobar.net
    Only requests hitting saucelabs.com and foobar.net will not be proxied, all other requests will be.
  • .example.com
    All requests going to any subdomain of example.com will not be proxied, e.g. one.example.com, asdf.example.com
Linux



NO_PROXY
SAUCE_ARES_FLAGSAdvanced flags for the DNS library Sauce Connect use integer. For more information, see http://c-ares.haxx.se/ares_init.html.Windows, Linux, Mac OS X