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

A
To run setup before each test
B
To execute cleanup after all tests in a group
C
To define a test
D
To generate a report
Solution:

@AfterTest runs teardown code after all test methods in a tag.

Entri Contact Image

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