Skip to content

Sauce Connect Proxy Support

Compare
Choose a tag to compare
@christian-bromann christian-bromann released this 18 May 13:44

With this version you can access Sauce Connect Proxy programatically, e.g.:

    const api = new SauceLabs({ user: "YOUR-USER", key: "YOUR-ACCESS-KEY" });
    const sc = await api.startSauceConnect({
        /**
         * see all available parameters here: https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy+Command-Line+Quick+Reference+Guide
         * all parameters have to be applied camel cased instead of with hyphens, e.g.
         * to apply the `--tunnel-identifier` parameter, set:
         */
        tunnelIdentifier: 'my-tunnel'
    })

    // run a test ...

    await sc.close()

or via the CLI interface, e.g.:

$ sl sc --region eu --tunnel-identifier 4445

# see all available Sauce Connect parameters via:
$ sl sc --help

Commits:

Commit Range:
v4.0.2...master