| 1. |
What Are The Basic Annotations Used To Run Testng Tests In Selenium? |
|
Answer» The basic ANNOTATIONS used to run TestNG tests in Selenium RC: @BeforeClass: The annotated method with @BeforeClass will be run before the FIRST TEST method in the CURRENT class is invoked. @AfterClass: The annotated method with @AfterClass will be run after all the test METHODS in the current class have been run. @BeforeMethod: The annotated method with @BeforeMethod will be run before each test method. @AfterMethod: The annotated method with @AfterMethod will be run after each test method. @Test: Marks a class or a method @Test with as part of the test. The basic annotations used to run TestNG tests in Selenium RC: @BeforeClass: The annotated method with @BeforeClass will be run before the first test method in the current class is invoked. @AfterClass: The annotated method with @AfterClass will be run after all the test methods in the current class have been run. @BeforeMethod: The annotated method with @BeforeMethod will be run before each test method. @AfterMethod: The annotated method with @AfterMethod will be run after each test method. @Test: Marks a class or a method @Test with as part of the test. |
|