1.What is the meaning of Page object Model pattern?
2.What is the difference between data/keyword driven frameworks?
3.Difference between TestNG and Junit?
4.Major components of OOPS?
5.What are the new features in Java – 8?
6.Key components of white box testing?
7.Meaning of headless browser?
8.What is the advantages and disadvantages of headless browser testing?
9.Difference between implicit and explicit wait Selenium?
10.Explain any of the challenging scenario while working with Selenium webdriver
1.Page object model is a design pattern which separates “What we need to test” and “How we are going to test it”.This provides readable, easy to maintain and reduces duplicate code. Corresponding classes are created for each page, with UI webelements properties and methods.
2.Data drives the test cases, example testing gmail login with 10 set of username.Keyword driven, english like keywords are created which defines the actions that user need to perform on application. Example open browser, login to gmail.
- Object – entity with state and behaviour example laptop, pen
- Class – blueprint for object, call it collections of objects with members(state) and methods(behaviour)
- Inheritance – child(sub class) inherits from parent(super class), provides code resuablity.Class A extends Class B.
- Polymorphism – many form of the same function Types: method overloading+ method overriding.
- Abstraction – hiding the implementaiton details – interface or abstarct class
- Encapsulation – objects encapsulate their state and hide it from the outside using private, protected, public and default.
6.Unit and Integration testing. Diving deep into code to perform testing.
7.Browser without having any UI. Drivers like HTMLUnit, PhantomJs
8.Advantage – Faster,platform independent.Disadvantages:-Difficult to pin point errors say on page loading, ajax calls.