views:

38

answers:

2

Following AutomatedTesters response: Is there any way to run parrallel tests with C# code, without using class libraries other than the Selenium Core?


I have the following setup:

Selenium Grid Hub: 192.168.0.1 Selenium RC 1 : 192.168.0.2 Selenium RC 2 : 192.168.0.3

Both remote controls are running *firefox. If only 1 of the remote controls is running, when I send a test to the hub it loads and runs fine. However if BOTH remote controls are running - the test only runs on one of them.

I was expecting that this:-

selenium = new DefaultSelenium("192.168.0.1", 4444, "*firefox", "http://blah.com/");
selenium.Start();
// rest of test follows...

would fire up BOTH remote controls at the same time?

Any ideas why this isn't happening?

Many thanks!

A: 

Unfortunately doing that will never have 2 Selenium instances running. Each Selenium object will control a browser and each browser will be started from 1 RC connected to an RC.

If you want to have it running multiple browsers in parallel you will need to run your tests with something like PNunit or MBunits Parallelizable.

AutomatedTester
Hi, thanks for the reply. I don't understand the use of the Selenium Grid hub then if to manage parallel RCs you need a third-party program?
beardtwizzle
Selenium grid is a infrastructure of Selenium RC that supports running tests concurrently. So if you fire 5 tests in parallel at the Hub it will redirect the requests to the relevant RC. Using a 3rd party tool you can then setup which browsers it will/will not work against.
AutomatedTester
Thanks for clarifying, appreciate the help
beardtwizzle
A: 

I've been having a look around and I think the answer for me is Gallio and it's test runners

beardtwizzle