Selenium WebDriver - What are Junit annotations?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - What are Junit annotations?
at the method annotated as @Test is a test method. There can be multiple test methods in a single test script.
@Before: Method annotated as @Before lets the system know that this method shall be executed every time before each of the test method.
@After: Method annotated as @After lets the system know that this method shall be executed every time after each of the test method.
@BeforeClass: Method annotated as @BeforeClass lets the system know that this method shall be executed once before any of the test method.
@AfterClass: Method annotated as @AfterClass lets the system know that this method shall be executed once after any of the test method.
@Ignore: Method annotated as @Ignore lets the system know that this method shall not be executed.
(Continued on next question...)
Other Interview Questions
|