TestNG @Test attributes – run by priority

to prioritize test case execution order, testng provides priority keyword and thew value starts from
1 to n…

For a method less priority number, executes first

test case   priority              
   tc1            2                     Order of execution
   tc2            4                            tc3 – tc1 – tc2 – tc4
   tc3            1
   tc4            5

Let’s see the code implementation:


Content posted is based on learning or working experience,
Share the post with others if find useful,
Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!

Leave a Reply

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