Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run selenium tests on browserstack.com?

Say I want to perform the following test on my website:

  • Load it into the browser.
  • Click on a button, which performs some Javascript.
  • Wait for the Javascript action to complete.
  • Look at how the page appears now.

I know how to create a Selenium test for this. I know also how to perform this test on browserstack.com manually, that is, by starting a BrowserStack VM for each browser I need, and then perform these steps.

How can I combine the Selenium test (can be in JS or C# or whatever) with BrowserStack, so that BrowserStack executes the test in all browsers I need, and then sends some report to me, like a bunch of screenshots?

BrowserStack provides some small documentation about TestSwarm and Selenium at http://www.browserstack.com/automated-browser-testing-api, but since I'm absolutely new to the web testing topic, I don't see how BrowserStack, Selenium and maybe TestSwarm interact together.

EDIT: Selenium and Testswarm are just examples, I don't prefer any framework, I just need to automate BrowserStack.

like image 378
cheesus Avatar asked Mar 19 '13 16:03

cheesus


People also ask

Can we automate BrowserStack using Selenium?

Steps to execute the test case:After logging into the account, choose the Automate tab from the home page. After that, the user will be navigated to execute your test case as shown below. Click on Let's get started! Note: Before using Browserstack, make sure Selenium has been configured on the system.

Does BrowserStack use Selenium grid?

BrowserStack Automate provides instant access to a Selenium Grid of 3000+ browsers and real devices that help you perform automated tests via the cloud.

How do I manually test in BrowserStack?

BrowserStack does exactly that by offering 3000+ real devices and browsers for manual and automated testing on the cloud. Simply sign up, select device-browser-OS combination and start testing for free.


1 Answers

BrowserStack.com now supports selenium testing end to end under the name Automate. There is a documentation to help you get started with sample code of quite a few programming languages. As with other products, tunnel and several other features are already integrated.

Full disclosure: I work for BrowserStack.com.

like image 124
Aditya Patawari Avatar answered Oct 24 '22 10:10

Aditya Patawari