If no priority is specified for test methods in TestNG, they are executed in the default order, which follows the alphabetical sequence of their method names as they appear in the compiled class file
Example:
@Test
public void testA() {
System.out.println("Test A");
}
@Test
public void testB() {
System.out.println("Test B");
}
@Test
public void testC() {
System.out.println("Test C");
}
Output:
Test A
Test B
Test C