Tell me what are the basic annotations used to run TestNG tests in Selenium?
Submitted by: AdministratorThe basic annotations used to run TestNG tests in Selenium RC:
1. @BeforeClass: The annotated method with @BeforeClass will be run
before the first test method in the current class is invoked.
2. @AfterClass: The annotated method with @AfterClass will be run after
all the test methods in the current class have been run.
3. @BeforeMethod: The annotated method with @BeforeMethod will be run
before each test method.
4. @AfterMethod: The annotated method with @AfterMethod will be run
after each test method.
5. @Test: Marks a class or a method @Test with as part of the test.
Submitted by: Administrator
1. @BeforeClass: The annotated method with @BeforeClass will be run
before the first test method in the current class is invoked.
2. @AfterClass: The annotated method with @AfterClass will be run after
all the test methods in the current class have been run.
3. @BeforeMethod: The annotated method with @BeforeMethod will be run
before each test method.
4. @AfterMethod: The annotated method with @AfterMethod will be run
after each test method.
5. @Test: Marks a class or a method @Test with as part of the test.
Submitted by: Administrator
Read Online Selenium Job Interview Questions And Answers
Top Selenium Questions
☺ | Which is the command used for displaying the values of a variable |
☺ | Can you please explain Selenium vs Imacros? |
☺ | Tell me what is the difference between an assert and a verify with Selenium |
☺ | Explain if a Selenium function requires a script argument, what would that |
☺ | What is Selenium WebDriver or Google WebDriver or Selenium 2.0? |
Top Software Testing Categories
☺ | Selenium Interview Questions. |
☺ | Soft Skills Interview Questions. |
☺ | Automation Testing Interview Questions. |
☺ | Software Quality Control Interview Questions. |
☺ | Testing Estimation Interview Questions. |