1

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!

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

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?
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.
Thanks for clarifying, appreciate the help
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.