Q. What is the purpose of @DependsOnMethods in TestNG?

A
To define a test
B
To specify method dependencies
C
To set up data
D
To clean resources
Solution:

@DependsOnMethods ensures a test method runs only after specified methods.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!