Answers

Question and Answer:

  Home  Automation

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

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" })

 152 views

More Questions for you: