TestNG parallel execution -


i have 4 @test methods , want run each of them 3 times. want execute simultaneously, in 12 threads.

i created testng.xml file 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 set parallel="methods" testng executes 4 test methods in 4 threads test1, after same test2, , test3. not want wait test1 completion before running test2. testng able run test1, test2 & test3 simultaneously (if parallel="tests") in case executes 4 test methods in sequence each test.

is there way tell testng not wait @ , start methods tests in separate threads?

have suite run parallel tests , each test can run parallel methods. like:

<suite name="suite1" verbose="1" parallel="tests" thread-count="10">    <test name="test1" parallel="methods" thread-count="4">     <classes>       <class name="tests"/>     </classes>   </test>    <test name="test2" parallel="methods" thread-count="4">     <classes>       <class name="tests"/>     </classes>   </test>    <test name="test3" parallel="methods" thread-count="4">     <classes>       <class name="tests"/>     </classes>   </test>  </suite> 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -