title: Configure parallel execution of tests and classes in testng.xml
body: <p>My testng.xml is as given below:</p>
  
  <pre><code>&lt;suite name="Automation Suite" allow-return-values="true" verbose="1" parallel="tests" thread-count="2"&gt;
      &lt;test name="Login Test cases 01"&gt;
          &lt;parameter name="Operating_System" value="Windows 8"/&gt;
          &lt;parameter name="Browser_Name" value="Internet Explorer"/&gt;
          &lt;parameter name="Browser_Version" value="11"/&gt;
          &lt;parameter name="Base_URL" value="https://www.google.com"/&gt;
          &lt;classes&gt;
              &lt;class name="com.automation.tool.Automation_01"/&gt;
              &lt;class name="com.automation.tool.Automation_02"/&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
      &lt;test name="Login Test cases 02"&gt;
          &lt;parameter name="Operating_System" value="Windows XP"/&gt;
          &lt;parameter name="Browser_Name" value="Mozilla Firefox"/&gt;
          &lt;parameter name="Browser_Version" value="27"/&gt;
          &lt;parameter name="Base_URL" value="https://www.google.com"/&gt;
          &lt;classes&gt;
              &lt;class name="com.automation.tool.Automation_01"/&gt;
              &lt;class name="com.automation.tool.Automation_02"/&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Currently the tests are getting executed in parallel. But I wish to execute the classes also in parallel as below:</p>
  
  <blockquote>
    <p>Thread 01 : Test 01 Class 01<br>
    Thread 02 : Test 01 Class 02<br>
    Thread 03 : Test 02 Class 01<br>
    Thread 04 : Test 02 Class 02<br></p>
  </blockquote>
  
  <p>Please let me know, how to configure this setup.</p>