Selenium interview Q/A Part-1

Selenium interview questions


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?


10.Explain any of the challenging scenario while working with Selenium webdriver

Hints:-
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.

4.
  • 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.
5.Date/Time API improvements, default method in interface, lambda expressions, javascript engine.

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.

API testing interview Questions-1 ?

api TESTING interview Questions


Do follow us for more updates on  Fb,G+,Twitter.

Basic API Testing interview questions:

1.What is the meaning of HTTP protocol?

2.What are the range of methods available in HTTP?

3.What is the difference between PUT and POST method?

4.What are the different  HTTP status codes?

5.Why we use 5XX error code?

6.How we can filter the Head of the response?

7.What is the difference between UI and API testing tools?

8.How to test code coverage using API testing?

9.How we can implement reporting structure in Soap UI(Free version)

10.Range of tools that can we used to test API?

Hints:-

1.HTTP (Hypertext Transfer Protocol) provides a network protocol standard that Web browsers and servers use to communicate.Both SOAP and Rest API internally uses HTTP.
2.GET,POST,PUT,DELETE,HEAD,OPTIONS,CONNECT,TRACE
4. 1xx- information error, 2xx-Success, 3xx-Redirection,,4xx-Client Error(most common is page not found,401-bad request),5xx-Server Error
6.By using HEAD method 🙂
9.By using Groovy scripting and making our hands dirty with creating a robust framework for reporting.
10.SOAP UI(Soap,Rest), Robot Framework(Rest) , Postman(chrome plugin, mostly used by developers ), HP UFT