TestNG Tutorial #10 – TestNG Annotations | BeforeSuite and AfterSuite

In this TestNG tutorial we will learn about TestNG Annotations, BeforeSuite and AfterSuite.

We will understand with example how to use TestNG annotations @BeforeSuite and @AfterSuite in your test scripts.

✅ @BeforeSuite: The method annotated with @BeforeSuite annotation will be run before all tests in this suite have run.

✅ @AfterSuite: The method annotated with @AfterSuite annotation will be run after all tests in this suite have run.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.