What is the execution sequence of test methods if no priority set for @test in testng

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   
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Testingtalkslatest.com - A project by CreativeHub IT Solutions.
Contact Us At: support@testingtalkslatest.com
Our Partner websites - Classified Hub , CodesToolbox , CodesToolbox
Scroll to Top
0
Would love your thoughts, please comment.x
()
x