2.0.1 • Published 11 years ago

get-sauce-results v2.0.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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

API

To download all the jobs assets:

var getSauceResults = require('get-sauce-results');

getSauceResults(user, key, jobID, write, function (err) {
  if (err) throw err;
  console.log('done');
});

function write(fileName, fileContentStream, callback) {
  var output = fs.createWriteStream(path.join(__dirname, 'output', fileName));

  fileContentStream.pipe(output);

  fileContentStream.on('error', cb);
  output.on('error', cb);

  output.on('close', function () {
    cb();
  });
}
2.0.1

11 years ago

2.0.0

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago