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

A
To set up data
B
To mark a method as a test case
C
To clean resources
D
To generate a report
Solution:

@Test annotates a method as a test case to be executed by TestNG.

Entri Contact Image

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