I have 4 @Test methods and want to run each of them 3 times. I want to execute this all simultaneously, in 12 threads.
I created a testng.xml file like this
<suite name="Suite1" verbose="1" parallel="methods" thread-count="100">
<test name="Test1">
<classes>
<class name="Tests"/>
</classes>
</test>
<test name="Test2">
<classes>
<class name="Tests"/>
</classes>
</test>
<test name="Test3">
<classes>
<class name="Tests"/>
</classes>
</test>
</suite>
If I set parallel="methods" TestNG executes 4 test methods in 4 threads for Test1, after that does the same for Test2, and then for Test3. But I do not want to wait for Test1 completion before running Test2. TestNG is able to run Test1, Test2 & Test3 simultaneously (if parallel="tests") but in this case it executes 4 test methods in sequence for each Test.
Is there a way to tell TestNG to not wait at all and start all methods for all Tests in separate threads?