Answers

Question and Answer:

  Home  Selenium Remote Control

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

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.

 173 views

More Questions for you: