# get-sauce-results
Download debugging information about a sauce labs job
Installation
$ npm install get-sauce-results
or
$ npm install get-sauce-results -g
Usage
Command Line
To download all of a jobs assets into the current directory simply run:
$ get-sauce-results user key jobID
Example:
$ get-sauce-results sauce-runner c71a5c75-7c28-483f-9053-56da13b40bc2 2f175cb6900a479a8ef45d13d2b14807log.jsonvideo.flvselenium-server.log0000screenshot.png0001screenshot.png0002screenshot.png0003screenshot.png
API
All streams are node 0.10 or higher style streams (using readable-stream for backwards compatibility). They are also wrapped with the aditional barrage API which provides syphon
, buffer
and wait
.
Basic Example:
var barrage = var fs = var getResults = { var source = var dest = objectMode: true dest { entry } source return dest}
getSauceResults(user, key, job) => stream
Returns a stream of objects, each with a path
property which contains the file name of the asset and a read
method, which returns a stream for the binary data of the file.
getSauceResults.getAssets(user, key, job, callback(err, res))
Call the callback with an object mapping names onto assets
getSauceResults.getAsset(user, key, job, assetPath) => stream
Return a binary stream for a given asset.