O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running tests in parallel

So far we have managed to get our tests cycling through different machines. We have also got it working against the Selenium Grid hub so we can see all of our tests being split out to the machines that we make sure that we test against browser and operating system combinations.

In this section, we will look at how we can add a thread-count attribute to the <suite> node in our test configuration file. We also will need to add the parallel attribute to the test suite. The value that it takes will either be methods or classes. This will mean that either the methods, the test cases, are run in parallel or the classes that contain the test cases are running in parallel.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required