dbrans / browserstack-cli Goto Github PK
View Code? Open in Web Editor NEWA command line interface for the browserstack api
License: MIT License
A command line interface for the browserstack api
License: MIT License
Hi, I've a problem using browserstack-cli with Node.js version 0.10.X . I've seen the same issue in Meteor this is the issue. meteor/meteor#852
Could you check if it's possible to be the same issue?
Thanks a lot, and good job.
Here are a few cases that work:
$ browserstack launch safari http://google.com
Launched job 2770009.
$ browserstack launch safari:6 http://google.com
Launched job 2770010.
$ browserstack launch safari:6.0 --os "OS X:Lion" http://google.com
Launched job 2770028.
Here are a few that don't:
$ browserstack launch safari:6 --os "OS X" http://google.com
Validation Failed - `os_version` can't be blank, `os_version` invalid
$ browserstack launch safari:6 --os "OS X:Lion" http://google.com
Validation Failed - `browser_version` invalid
This functionality will depend on logic in browseroverflow to intelligently select a browser based on the supplied spec.
Running browserstack tunnel
gives the following error:
There is a new version of BrowserStackTunnel.jar available on server. Please upd
ate from :
http://www.browserstack.com/BrowserStackTunnel.jar
Hi all - thanks for developing this code.
Having trouble getting it working however.
bash-3.2$ browserstack status
Mac sessions limit: 4
Running windows sessions: 0
Total available time: 150000
Used time: 0
Running mac sessions: 0
Windows sessions limit: 8
bash-3.2$ browserstack browsers
undefined
bash-3.2$ browserstack launch firefox:3.6 http://google.com
/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:43
return browsers.sort(function(one, other){
^
TypeError: Cannot call method 'sort' of null
at sort (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:43:19)
at Object.selectBrowser (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:5:14)
at Object.BrowserStack.launch (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/browserstack.js:76:30)
at _fun (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/cache.js:24:12)
at /opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/cache.js:15:10
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
Clear that for some reason the browser variable is not being populated therefore the method is bailing out, although apparently the API access works.
When i try to execute command browserstack tunnel localhost:80 on my Windows 2008 machine I'm getting an error below:
node.js:468
var b = process.binding('signal_watcher');
^
Error: No such module
at process.startup.processSignalHandlers.process.on.process.addListener (nod
e.js:468:27)
at Command.makeATunnel (F:\Users\antonv\AppData\Roaming\npm\node_modules\bro
wserstack-cli\bin\cli.js:117:11)
at Command.action (F:\Users\antonv\AppData\Roaming\npm\node_modules\browsers
tack-cli\node_modules\commander\index.js:254:8)
at Command.EventEmitter.emit (events.js:115:20)
at Command.parseArgs (F:\Users\antonv\AppData\Roaming\npm\node_modules\brows
erstack-cli\node_modules\commander\index.js:471:12)
at Command.parse (F:\Users\antonv\AppData\Roaming\npm\node_modules\browserst
ack-cli\node_modules\commander\index.js:378:15)
at Object. (F:\Users\antonv\AppData\Roaming\npm\node_modules\brow
serstack-cli\bin\cli.js:141:9)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
Browserstack has released a new version of the API: http://github.com/browserstack/api
This version adds os_version
, which is a very useful thing to be able to specify.
It would be nice to have the config file in custom location instead of home dir.
In my scenario I'm using testem and browserstack-cli within circleci and am actively downloading the linux64 binaries during the dependency phase. The jar download seems unnecessary in many other cases as well, for instance when I'm using this locally with testem and again, using my mac binaries for the browserstacklocal tunnel.
$ browserstack browsers BrowserStack JavaScript API Version 3.0 has been deprecated. For more details, please visit: https://github.com/browserstack/api -
Is there another "browserstack cli" ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.