What is @AfterClass?
@AfterClass is one of the TestNG Annotations. As the name defines, @AfterClass is executed after all the methods of the current class finish their execution. This annotation allows developers to specify various actions to be taken after all the methods of the current class finish their execution.
TestNG @AfterClass Annotations
The Concept Annotations is introduced in Java 1.5 (jdk5). The Popular Annotation in Java is @override. We use the same annotation concept in TestNG.
In TestNG, there are 10 Annotations
In this article, we will learn about @AfterClass.
Contact Us