What is Framework?
A Test automation
framework is an integrated system that can have the rules, standards and
guidelines of automation of a specific application.
This system integrates the
generic libraries, test data sources, object details, configuration modules,
reporting and logs.
General Framework Structure:
Advantages:
1) Robust, flexible and
extensible and support test automation on diverse sets of web applications
across domains.
2) User-friendly interface
for creation and execution of test suites.
3) Re-usability of
code.
4) Increases test coverage
to enhance the quality and reliability of the end product.
5) Easy maintenance.
6)Automated HTML report generation and emailing of the same to all stake holders
6)Automated HTML report generation and emailing of the same to all stake holders
Types of Test Automation Frameworks
- Data Driven Testing Framework
- Keyword Driven Testing Framework
- Hybrid Testing Framework
- Page Object Model
1)Page Object Model
Now a days, Page Object Model become very popular test automation framework in Selenium, where web application pages are represented as classes, and the all the web elements on the page are defined as variables on the class. All possible user interactions can be implemented as methods on the class.
Now a days, Page Object Model become very popular test automation framework in Selenium, where web application pages are represented as classes, and the all the web elements on the page are defined as variables on the class. All possible user interactions can be implemented as methods on the class.
Please find the link for Page Object Model in Selenium.
2) Data Driven Framework
If you observe several times while testing an application, it may be required to test the same functionality multiple times with the different set of input data, In that situation, if you hard-coded the test data to automation test scripts will not useful for reusability. So instead of hard-coded test data you have to store it in external files like excel, xml, properties file, database, csv.
So in order to test the application, you have to connect with external files and get the test data from them.
Please find the link for Data Driven Framework in Selenium
If you observe several times while testing an application, it may be required to test the same functionality multiple times with the different set of input data, In that situation, if you hard-coded the test data to automation test scripts will not useful for reusability. So instead of hard-coded test data you have to store it in external files like excel, xml, properties file, database, csv.
So in order to test the application, you have to connect with external files and get the test data from them.

I will update the remaining Types of Test Automation Frameworks ASAP.
ReplyDeleteCan you send me this frane work code: my mail : rajendra.penumalli@gmail.com
ReplyDeleteThanks in advance
http://www.way2selenium.com/p/page-object-model-in-selenium.html
DeleteCan you send me this frane work code: my mail : rajendra.penumalli@gmail.com
ReplyDeleteThanks in advance
I already provided link for page object model.
DeleteCan you send me the frame qork code to my mail Id rajesh6052@gmail.com
ReplyDeletehttps://drive.google.com/open?id=0B0pJK3xnwFskb29ZNUhnekpHMEU
Delete