Reputation: 785
is there a way how to run specific test method as last one in TestNG? I do not want to use dependsOn
if I do not need to do so.
Thank you
Upvotes: 4
Views: 1425
Reputation: 8531
Add priority to the method you want to run last..do not add priorities to any other methods. The one with priority added would run last.
Upvotes: 5