Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 944
Jakub Gruber Avatar asked Oct 24 '25 15:10

Jakub Gruber


1 Answers

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.

like image 190
niharika_neo Avatar answered Oct 26 '25 04:10

niharika_neo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!