TestNG Annotations Basics
Here are the list of basic TestNG Annotations and there execution order. Annotations @BeforeSuite The annotated method will be run before all tests in this suite have run. @AfterSuite The annotated method will be run after all tests in this suite have run. @BeforeTest The annotated method will be run before any test method belonging to the classes inside the <test> tag is run. i.e @Test @AfterTest The annotated method will be run after all the test methods belonging to the classes inside the <test> tag have run. i.e @Test @BeforeClass The annotated method will be run before the first test method in the current class is invoked. @AfterClass The annotated method will be run after all the test methods in the current class have been run. @BeforeMethod The annotated method will be run before each test method. @AfterMethod The annotated method will be run after each test method. @BeforeGroups The list of...