Verify TestNG test execution order with multiple test methods
Preconditions (2)
Step 1: Create a TestNG test class with three test methods: testA, testB, testC
Step 2: Annotate test methods with @Test and assign priorities: testA(priority=2), testB(priority=1), testC(priority=3)
Step 3: In each test method, open the browser and navigate to https://example.com
Step 4: Print a message to the console indicating which test method is running
Step 5: Run the TestNG test suite
Step 6: Observe the order in which test methods execute
✅ Expected Result: Test methods execute in the order of their priority: testB, testA, testC. Console output shows messages in this order.