I have 3 classes for with 3 tests each.
Class 1
@Test( priority = 1 ) public void testA1() { System.out.println(\"testA1\"); } @Test( priority = 2
Finally I got solution of problem.
Please refer below XML code for same.
This will give you expected result. Plus it will be easier to manage also. As if we want to see my all tests or remove some tests, i can look into test.xml