sauce-connect-tunnel
A Node.js wrapper around the Saucelabs connect proxy binaries.
Install
npm install --save-dev sauce-connect-tunnel
Usage
Simple Usage
var sauceConnectTunnel = ;var tunnel = processenvSAUCE_USERNAME processenvSAUCE_ACCESSKEY; tunnelstart { if !status console; console; tunnel;};
Options
username accessKey tunnelId enableTunnel args;
username
Username to saucelabs
accessKey
Accesskey for saucelabs
tunnelId
Unique identifier for the tunnel. It's optional and automatically generated when not specified. Note that the tunnel identifier may have to be passed in with the browsers object as a desired capability to enable traffic to use the tunnel. More details here
enableTunnel
Boolean value to indicate if the tunnel is to be created or not. This value can be set to false
to mock a tunnel creation if the site tested is publicly accessible. This value is optional and defaults to true
.
args
An array of option flags (see here). Example: ['--debug', '--direct-domains', 'www.google.com']
. It's optional.
Contribution
Forked from https://github.com/jmreidy/sauce-tunnel