java - How to run test cases belonging to a particular group in parallel using TestNG -


how run test cases belonging particular group in parallel using testng. example, let there group named "up" containing 10 test cases. want run these test cases in parallel (threads=number of test cases). how can achieve in using testng.

try following testng.xml. if don't know number of test cases before run code, sure threadcount higher :)

  <suite parallel="methods" threadcount="10">         <test name="mytest">       <groups>         <run>           <include name="up"  />         </run>       </groups>        <classes>         <class name="test.testclass" />       </classes>     </test>   </suite> 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -