Selenium RC Question:
Download Questions PDF

Why do you use assert and verify statements in Selenium RC without referring to selenium?

Answer:

SeleneseTestCase is the class which is having
1. assertTrue
2. verifyTrue
3. assertEquals
4. verifyEquals
We use SeleneseTestCase class to extend the selenium test class file.
For Ex: the test class is declared as follows
public class BookFlightSel1 extends SeleneseTestCase
In the above example SeleneseTestCase is the base class and BookFlightSel1 is the derived class. So, we can directly call and use the parent class methods verify and assert without instantiating the class in BookFlightSel1 class.

Download Selenium Remote Control Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between Thread.Sleep() and Selenium.setSpeed()?Which are the annotations generated with JUnit 4 tests in Selenium IDE?