Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How can we set the priority of test cases in TestNG?

Category: TestNG

We can define the priority of test cases using the “priority” parameter in @Test annotation. The tests with lower priority value will get executed first.

Example-
@Test(priority=1)

Leave a Reply

Your email address will not be published. Required fields are marked *