Selenium RC Question:

Download Job Interview Questions and Answers PDF

Which are the annotations generated with JUnit 4 tests in Selenium IDE?

Selenium Remote Control Interview Question
Selenium Remote Control Interview Question

Answer:

The annotations generated with JUnit 4 tests in Selenium are:
1. @Before public void method() - Will perform the method() before each test. This method can prepare the test
2. @Test public void method() - Annotation @Test identifies that this method is a test method.environment, e.g. read input data, initialize the class)
3. @After public void method() - Test method must start with test@Before - this annotation is used for executing a method before.

Download Selenium Remote Control Interview Questions And Answers PDF

Previous QuestionNext Question
Why do you use assert and verify statements in Selenium RC without referring to selenium?What are the challenges with Selenium RC test suites when running in JUnit?