Do you know how can we make one test method dependent on other using TestNG?

Submitted by: Muhammad
We can make one test method run only after successful execution of dependent test method by using dependsOnMethods parameter inside @Test annotation in TestNG: @Test(dependsOnMethods = { "preTests" })
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers