| 1. |
Why Do You Use Assert And Verify Statements In Selenium Rc Without Referring To Selenium? |
|
Answer» SeleneseTestCase is the class which is having
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. SeleneseTestCase is the class which is having 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. |
|