prototypetolyfe
prototypetolyfe

Reputation: 199

How can I parallelize multiple instances of the same Selenium suite using Junit?

I have a Junit test suite that I am using to run a series of selenium tests. I need to run these tests on several platforms (browser/OS combos, mobile devices). Is there a way for me to run the suite in parallel with 4 other instances of the same suite (5 total), each with different config settings (settings for the RemoteWebDriver).

Should I us a parallelized runner (I've seen a few options) on each test within the suite or parallelize the suite itself?

Also, is there a way to run a sequence of these parallel runs? (i.e. 5 parallel runs followed by another 5 parallel runs, etc.)

Upvotes: 0

Views: 543

Answers (2)

SiKing
SiKing

Reputation: 10329

You want to use Selenium Grid for this.

To run tests in parallel with JUnit4, you will also need Maven.

Upvotes: 1

Robbie Wareham
Robbie Wareham

Reputation: 3438

Remember that Selenium grid does not provide the parallel distribution of your tests, it is simply a way to allow multiple threads hit the same endpoint to support parallel testing.

You still need a mechanism to support the parallel distribution of your tests.

I know this can be achieved with JUnit, but in my experience it is easier with TestNG

Upvotes: 0

Related Questions