Q. What is the purpose of @Test(enabled = false) in TestNG?

A
To run the test always
B
To disable the test method
C
To set up data
D
To clean resources
Solution:

@Test(enabled = false) prevents the annotated test method from executing.

Entri Contact Image

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