Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capturing browsers with Selenium RC

I want to run UI tests using browserfarms like BrowserStack. We are currently using BS to run Unit tests via JsTestDriver. So starting the server, letting a bunch of browsers created by the browserfarm connect to the jstd server and then execute the tests.

Unfortunately, I wasn't able to find a way to write UI tests that work with jstd (click some button, type something, etc).

Selenium RC is a framework that aims to UI tests, however it forces to use own browser instances: Selenium starts its own browsers via Drivers that are part of the framework.

What I want is to combine the JsTestDriver concept with the UI testing of Selenium: write tests with Selenium, start the Selenium RC server on a localhost, let a bunch of browser connect to the server that were started on a browserfarm and then execute the UI tests.

Is this even possible? Is there another way to run UI tests with JSTD? Is Selenium RC not capable of capturing browsers that are not started using a webdriver?

thanks in advance.

like image 250
zhujik Avatar asked Jan 22 '13 09:01

zhujik


1 Answers

Technically yes, but it's gonna hurt.
Since jsTestDriver supports asynchronous tests, you can start (and connect to it) a browser (using JavaScript) in the setup stage.

"Is Selenium RC not capable of capturing browsers that are not started using a webdriver?" Probably not in the near future.

like image 192
shex Avatar answered Sep 22 '22 14:09

shex