Automation Question:
Download Job Interview Questions and Answers PDF
Do you know how can we make one test method dependent on other using TestNG?
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 Question | Next 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()? |