Skip to content

Releases: saucelabs/node-saucelabs

New `uploadJobAssets` command

28 May 12:07
Compare
Choose a tag to compare

A new command has been added that allows to upload custom log files to your job. It can be used as follows:

via CLI:

sl uploadJobAssets 690c5877710c422d8be4c622b40c747f --files ./video.mp4 --files ./log.json

or via Node.js

await myAccount.uploadJobAssets(
    '76e693dbe6ff4910abb0bc3d752a971e',
    ['video.mp4', 'log.json']
)

Commits:

v4.3.0...v4.4.0

v4.3.0

24 May 14:17
Compare
Choose a tag to compare

Example:

    const sc = await myAccount.startSauceConnect({
        /**
         * you can pass in a `logger` method to print Sauce Connect log messages
         */
        logger: (stdout) => console.log(stdout)
    })

v4.2.1...v4.3.0

v4.2.1

24 May 12:32
Compare
Choose a tag to compare
  • fix url to linux32 binary 357dfac

v4.2.0...v4.2.1

Allow to specify Sauce Connect Proxy Version

19 May 10:49
Compare
Choose a tag to compare

This enhancement allows it to specify the Sauce Connect Proxy version during runtime, e.g.:

$ sl sc --sc-version 4.5.4 --region eu

This allows to debug issues around specific Sauce Connect version without having to manually download them.

Commits:

  • Allow specifying a Sauce Connect version (#82) 0fe3458
  • downgrade eslint to v6.8 to support Node v8 c76a26e
  • use tunnel-identifier as sauce connect example param 4dfaa07
  • update readme ebf43c3

v4.1.0...v4.2.0

Sauce Connect Proxy Support

18 May 13:44
Compare
Choose a tag to compare

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