TestNG Before and After Annotations
TestNG Before and After Annotations There are many Before and After annotations in TestNG Framework. They are used to execute code before and after the execution of @Test annotated methods, Group of test methods, Test classes, etc. Before and After Annotations The following are the different Before and After annotations: @BeforeSuite/@AfterSuite @BeforeTest/@AfterTest @BeforeGroups/@AfterGroups @BeforeClass/@AfterClass @BeforeMethod/@AfterMethod […]