Test Automation Frameworks

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

Types of Test Automation Frameworks
  1. Data Driven Testing Framework
  2. Keyword Driven Testing Framework
  3. Hybrid Testing Framework
  4. 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.

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


7 comments:

  1. I will update the remaining Types of Test Automation Frameworks ASAP.

    ReplyDelete
  2. Can you send me this frane work code: my mail : rajendra.penumalli@gmail.com
    Thanks in advance

    ReplyDelete
    Replies
    1. http://www.way2selenium.com/p/page-object-model-in-selenium.html

      Delete
  3. Can you send me this frane work code: my mail : rajendra.penumalli@gmail.com
    Thanks in advance

    ReplyDelete
  4. Can you send me the frame qork code to my mail Id rajesh6052@gmail.com

    ReplyDelete
    Replies
    1. https://drive.google.com/open?id=0B0pJK3xnwFskb29ZNUhnekpHMEU

      Delete