Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Can we make one test method dependent on others using TestNG?

Category: TestNG

Using dependsOnMethods parameter inside @Test annotation in TestNG we can make one test method run only after the successful execution of the dependent test method.
@Test(dependsOnMethods = { “preTests” })

Leave a Reply

Your email address will not be published. Required fields are marked *