Releases: saucelabs/node-saucelabs
Releases · saucelabs/node-saucelabs
New `uploadJobAssets` command
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
- allow to log SC stdout c581b5e
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
- fix url to linux32 binary 357dfac
Allow to specify Sauce Connect Proxy Version
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:
Sauce Connect Proxy Support
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:
- update dependencies 57aba75
- minor wording in readme 495f6e9
- Add support for Sauce Connect Proxy (#81) e6da4fb
Commit Range:
v4.0.2...master