title: Run test based on defined priority with multiple classes through test.xml file
body: <p>I have 3 classes for with 3 tests each. </p>
  
  <p>Class 1 </p>
  
  <pre><code>@Test( priority = 1 )
  public void testA1() {
      System.out.println("testA1");
  }
  
  @Test( priority = 2 )
  public void testA2() {
      System.out.println("testA2");
  }
  
  @Test( priority = 3 )
  public void testA3() {
      System.out.println("testA3");
  }
  </code></pre>
  
  <p>Class 2 </p>
  
  <pre><code>@Test( priority = 1 )
  public void testB1() {
      System.out.println("testB1");
  }
  
  @Test( priority = 2 )
  public void testB2() {
      System.out.println("testB2");
  }
  
  @Test( priority = 3 )
  public void testB3() {
      System.out.println("testB3");
  }
  </code></pre>
  
  <p>Class 3 </p>
  
  <pre><code>@Test( priority = 1 )
  public void testC1() {
      System.out.println("testC1");
  }
  
  @Test( priority = 2 )
  public void testC2() {
      System.out.println("testC2");
  }
  
  @Test( priority = 3 )
  public void testC3() {
      System.out.println("testC3");
  }
  </code></pre>
  
  <p>This is my XML file code.</p>
  
  <p></p>
  
  <pre><code>&lt;test verbose="2" name="hello" group-by-instances="true"&gt;
      &lt;classes&gt;
          &lt;class name="Class1"&gt;&lt;/class&gt;
          &lt;class name="Class2"&gt;&lt;/class&gt;
          &lt;class name="Class3"&gt;&lt;/class&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my Answer 
  testA1
  testB1
  testC1
  testA2
  testB2
  testC2
  testA3
  testB3
  testC3</p>
  
  <p>But my expected answer is 
  testA1
  testA2
  testA3
  testB1
  testB2
  testB3
  testC1
  testC2
  testC3</p>
  
  <p>Thanks in advance for any help on this.</p>