Need a little help in getting the right approach to run the testng test cases in parallel.
Current setup. Running all the test cases using a single driver instance on local machine. Selenium WebDriver TestNg Maven
Required. Want to run test cases with multiple instances of driver on local.
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
testng.xml
<suite name="testSuite" verbose="10" preserve-order="true" configfailurepolicy="continue">
<test name="SanityTest" parallel="none">
<classes>
<class name="test.java.HeaderTests"/>
</classes>
</test>
</suite>
Driver
driver = new InternetExplorerDriver(capabilities);
driver.manage().window().maximize();
driver.get(url);