Socket
Socket
Sign inDemoInstall

soda

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soda - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

examples/google.js

11

History.md
2.2.4 / 2011-05-27
0.2.5 / 2011-12-03
==================
* Adding main job url getter to sauce client
* Add 'selectAndWait' command
* Do not ignore timeouts.
* Fixed chaining to let users send further commands during chain end
* Added support job URL generation
0.2.4 / 2011-05-27
==================
* Added support for the `store` accessor

@@ -6,0 +15,0 @@ * Fixed case with very long url by utilizing a urlencoded POST request [tszming]

8

lib/soda/client.js

@@ -118,3 +118,4 @@ /*!

res.on('end', function(){
if (res.body.indexOf('ERROR') === 0) {
if (res.body.indexOf('ERROR') === 0 ||
res.body.indexOf('Timed out after ') === 0) {
var err = res.body.replace(/^ERROR: */, '');

@@ -193,3 +194,3 @@ err = cmd + '(' + args.join(', ') + '): ' + err;

Client.prototype.end = function(fn){
this._done = fn;
this._done = function(){this.queue = null; return fn.apply(this, arguments)};
this.queue.shift()();

@@ -339,2 +340,3 @@ };

, 'select'
, 'selectAndWait'
, 'selectFrame'

@@ -482,2 +484,2 @@ , 'selectPopUp'

};
});
});

@@ -19,3 +19,3 @@ /*!

*
* - `username` Saucelabs username
* - `username` Sauce Labs username
* - `access-key` Account access key

@@ -29,4 +29,4 @@ * - `os` Operating system ex "Linux"

*
* - `SAUCE_HOST` Defaulting to "saucelabs.com"
* - `SAUCE_PORT` Defaulting to 4444
* - `SAUCE_HOST` Defaulting to "ondemand.saucelabs.com"
* - `SAUCE_PORT` Defaulting to 80
* - `SAUCE_OS`

@@ -73,2 +73,12 @@ * - `SAUCE_BROWSER`

/**
* Return saucelabs job url.
*
* @return {String}
* @api public
*/
SauceClient.prototype.__defineGetter__('jobUrl', function(){
return 'https://saucelabs.com/jobs/' + this.sid;
});
/**
* Return saucelabs video flv url.

@@ -150,2 +160,2 @@ *

+ accessKey + '"/>';
};
};
{
"name": "soda",
"description": "Selenium RC Node Adapter (with Saucelabs support)",
"description": "Selenium RC Node Adapter (with Sauce Labs support)",
"keywords": ["selenium", "saucelabs", "testing", "test", "tests"],
"version": "0.2.4",
"version": "0.2.5",
"author": "TJ Holowaychuk <tj@learnboost.com>",

@@ -7,0 +7,0 @@ "main": "./lib/soda/index.js",

# Soda
Selenium Node Adapter. A light-weight Selenium RC client for [NodeJS](http://nodejs.org), with additional [Saucelabs](http://saucelabs.com) integration for acceptance testing in the cloud.
Selenium Node Adapter. A light-weight Selenium RC client for [NodeJS](http://nodejs.org), with additional [Sauce Labs](http://saucelabs.com) integration for acceptance testing in the cloud.

@@ -49,6 +49,7 @@ ## Installation

.type('q', 'Hello World')
.testComplete()
.end(function(err){
if (err) throw err;
console.log('done');
browser.testComplete(function() {
console.log('done');
if(err) throw err;
});
});

@@ -65,5 +66,7 @@

})
.testComplete()
.end(function(err){
if (err) throw err;
browser.testComplete(function() {
console.log('done');
if(err) throw err;
});
})

@@ -97,3 +100,6 @@

.end(function(err){
if (err) throw err;
browser.testComplete(function() {
console.log('done');
if(err) throw err;
});
});

@@ -107,2 +113,3 @@

.end(function(err){
console.log(this.jobUrl)
console.log(this.videoUrl)

@@ -137,6 +144,7 @@ console.log(this.logUrl)

})
.testComplete()
.end(function(err){
if (err) throw err;
console.log('done');
browser.testComplete(function() {
console.log('done');
if(err) throw err;
});
});

@@ -179,4 +187,8 @@

.end(function(err){
if (err) throw err;
console.log('done');
browser.setContext('sauce:job-info={"passed": ' + (err === null) + '}', function(){
browser.testComplete(function(){
console.log(browser.jobUrl);
if (err) throw err;
});
});
});

@@ -204,3 +216,3 @@

- Sauce Labs [Supported Browsers](http://saucelabs.com/products/docs/sauce-ondemand/browsers)
- Sauce Labs [Supported Browsers](http://saucelabs.com/docs/ondemand/browsers/env/js/se1/mac)
- Introduction to [Selenese](http://seleniumhq.org/docs/02_selenium_basics.html)

@@ -207,0 +219,0 @@ - Selenium [Command Reference](http://release.seleniumhq.org/selenium-core/1.0.1/reference.html).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc