How to customize the order of execution of tests in testng ?
For example:
@Test
public class Test1 {
@Test
public void test1() {
System.out.println("test1");
}
@Test
public void test2() {
System.out.println("test2");
}
@Test
public void test3() {
System.out.println("test3");
}
}
In the above suite, the order of execution of tests is arbitrary. i.e., sthe output is: test1 test3 test2
How do I execute the tests in the order in which they've been written?