TestNG Basic Annotations for configuration methods
Annotation name | Documentation | ||
@BeforeSuite | Annotates methods that will be run before any method in a given is run. | ||
@BeforeClass | Annotates methods that will be run before the first method on the current test class is run. | ||
@BeforeMethod | Annotates methods that will be run before each test method. | ||
@AfterMethod | Annotates methods that will be run after every test method. | ||
@AfterClass | Annotates methods that will be run after the last test method on the current class is run. | ||
@AfterSuite | Annotates methods that will be run after all the test methods in a given have been run. | ||
@DataProvider |
|
||
@Test | Marks a class or a method as part of the test. |