I'm trying to run WebDriver tests in parallel using testng.xml. I'm able to run testng tests in parallel by using parameter parallel="tests" but running with following paramters, "methods", "classes" is not working.
testng.xml
<suite name="Suite1" verbose="1" parallel="methods" thread-count="5">
<test name="Cart">
<classes>
<class name="com.tests1.Minus1">
</class>
</classes>
</test>
<test name="Checkout">
<classes>
<class name="com.tests2.AddA"/>
<class name="com.tests2.AddB"/>
<class name="com.tests2.AddC"/>
</classes>
</test>
<test name="MBB">
<classes>
<class name="com.tests3.Mult1"/>
<class name="com.tests3.Mult2"/>
</classes>
</test>
</suite>
I tried with these versions 6.0.1, 5.9, 5.14.1, 6.3.1, 5.14.10, 5.10.0.1, 6.3, 5.14.6, 5.5. It didn’t seem to work. I also increased thread count to 100, but no behavior difference.
Can anyone please point out what I'm missing here?
Thanks
parallel="methods"
at the test level instead of suite level and check?