Computer Science, asked by mdivakar6529, 11 months ago

How to define dependency of one test method over other method in testng

Answers

Answered by kolisanskruti2805
0

Answer:

Test method is testOne depends on test method testTwo . This is configured by using the attribute dependsOnMethods while using the Test annotation. Let's run the tests now. Test dependency only works with other tests that belong to the same class or in one of the inherited classes but not across different classes.

Similar questions