Automation Question:

Download Job Interview Questions and Answers PDF

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

Automation Interview Question
Automation Interview Question

Answer:

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

Download Automation Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what is a framework and what are the frameworks available in RC?Tell us what is the difference between getWindowHandles() and getWindowHandle()?