Jakub Gruber
Jakub Gruber

Reputation: 785

TestNG run method as last

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

Answers (1)

niharika_neo
niharika_neo

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

Related Questions