Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the point with the browserstack.com API?

BrowserStack is a powerful platform for testing web sites against the most current and modern browser. So far so good.

BrowserStack also provides an API

The API has the concept of a worker representing a specific browser (version) loading a particular URL.

What useful things can I do with such a worker instance?

How would one integrate such a worker with Selenium tests?

How would one integrate such a worker with unittests (Python)?

How would one use such a worker e.g. for testing if a particular website with a video player would actually load and play a video (e.g. for cross-browser video testing)?

like image 798
Andreas Jung Avatar asked Sep 13 '12 05:09

Andreas Jung


Video Answer


1 Answers

Current API opens your provided url in all platform/browser combinations.

So, if you open an HTML page with lot of JS tests, you need to be using tool like yeti/testswarm/js-test-driver which automatically fetch results from browser.

Another example of using BrowserStack API is http://ryanseddon.github.com/bunyip/

Sample integration with Jenkins: http://github.com/jquery/testswarm/wiki/Automated-Distributed-Continuous-Integration-for-JavaScript

For local JS testing, you will need to use tools like localtunnel to get a public url for your local servers.

like image 126
Nakul Avatar answered Sep 28 '22 19:09

Nakul