I want to the Test Suites parallel from maven. my pom.xml looks like below:
<profiles>
<profile>
<id>API_AUTOMATION</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<parallel>suites</parallel>
<threadCount>8</threadCount>
<suiteXmlFiles>
<!-- TestNG suite XML files -->
<suiteXmlFile>./module1.xml</suiteXmlFile>
<suiteXmlFile>./module2.xml</suiteXmlFile>
</suiteXmlFiles>
<testSourceDirectory>src/main/java</testSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
all the .xml
files are TestNG
file which are Test Suites.
please let me know, how to run the suites in parallel.