Home »
MCQs »
TestNG MCQs
After the execution of all test cases belonging to a group, the @____ annotated method runs only once
41. After the execution of all test cases belonging to a group, the @____ annotated method runs only once.
- AfterTest
- AfterGroups
- AfterSuite
- AfterClass
Answer: B) AfterGroups
Explanation:
After the execution of all test cases belonging to a group, the @AfterGroups annotated method runs only once.