Automatino Framework FQA
Automatino Framework FQA
|| SHREE ||
Which Automation Framework u have worked on?
Ans: Hybrid
2. Pages:
Here we have follows the Page object model, it’s a design pattern.
According to this: we have developed the separate .java class file for
each n every web page.
Ex:
Homepage --- Homepage.java
Login ---- Login.java
3. Resources :
Contains all the external excel file, jar files . we used to store under this
folder.
4. Config:
This folder we have used to store the properties file.
5. Test:
Here we used to convert the manual test cases into the automation
script
6. Utility:
All the methods those are common for all the page classes, we used to
store in Utility folder.
What is pageFactory.initElement(driver,this)?
Ans:
pageFactory.initElement, will initialize all the webElements present in that page
class.
This indicates, current class’s object.
Inheritance:
Baseclass contains the code for initializing the browser, now your page class
extends this baseclass, so here we have achieved the inheritance feature.
Encapsulation:
Here in page class, in which we have located all the webElements, we makes
it as Private. So these members are tighly binding with the page class. So here
we achieve the feature Encapsulation.
Abstraction:
In test class, we are using the method defined in the page classes. Here we
don’t know, how these methods implemented the logic. We simply calling
those by using the methodName.
We know only essential details: method name
But don’t know the internal implementation of the method.
So here we have achieved the concept, abstraction.
Polymorphism:
Here we achieved the polymorphism: method overloading.
Same method name but differ in number of paremeter or type of parameter.
Ex:
Frame(id)
Frame(index)
Frame(WebElement)
Another Example:
productDetails(String productName,int price)
productDetails(String productName,int price,String vendorName)
productDetails(String productName,int price, String color)
productDetails(String productName,int price, string vendorname, String color,
int pincode)
Q: How much you rate your self on Java/Manual Testing/SQL on scale of 1-5 or
1-10??
Ans:
out of 5: Max 3.8
Out of 10: 7.5