Parallel tests with TestNG

The TestNG examples used in this chapter will be using TestNG version 6.9.4 and the Maven failsafe plugin version 2.17. If you use older versions of these components, the functionality that we are going to use may not be available.

To start off, we are going to make some changes to our POM file. We are going to add a threads property that will be used to determine the number of parallel threads used to run our checks. Then, we are going to use the maven-failsafe plugin to configure TestNG:

<properties> <>UTF-8 </> <project.reporting.outputEncoding>UTF-8 </project.reporting.outputEncoding> <!-- Dependency versions --> <selenium.version>2.45.0</selenium.version> <!-- ...

Get Mastering Selenium WebDriver now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.