How to execute different test methods available in a single class file parallely in TestNG?

How to execute different test methods available in a single class file parallely in TestNG?

Hello Mark,

In order to achieve this parallelization your suit should be parallelized on the class level and the test should be parallelized on the basis of methods like below:

<suite name="Suite" parallel="classes">
  <test thread-count="5" name="Test" parallel="methods">
    <classes>
      <class name="Class_name"/>     
    </classes>
  </test> <!-- Test -->  
</suite> <!-- Suite -->