What is @AfterSuite?

@AfterSuite is one of the TestNG Annotations. As the name defines, @AfterSuite is executed after the execution of all the test cases inside a TestNG Suite. This annotation allows developers to specify various actions to be taken after the execution of all the test cases inside a TestNG Suite.

TestNG Annotations – @AfterSuite

The Concept Annotations is introduced in Java 1.5. 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 @AfterSuite.

Similar Reads

What is @AfterSuite?

@AfterSuite is one of the TestNG Annotations. As the name defines, @AfterSuite is executed after the execution of all the test cases inside a TestNG Suite. This annotation allows developers to specify various actions to be taken after the execution of all the test cases inside a TestNG Suite....

Example of @AfterSuite

Let’s understand the @AfterSuite annotation through an example....