Skip to main content

Test Automation Frameworks


Automation Selenium Training in Hyderabad
Automation Selenium Training in Hyderabad


Test Automation Frameworks



What is a Framework? 

 


Framework defined as a set of guidelines which when followed produce beneficial results.


What is a TEST Automation Framework? 



The guidelines like coding standards, test-data handling, object repository treatment. When automation scripting produces beneficial outcomes. Like, increase code re-usage, higher portability, reduced script maintenance cost.



What are the various Automation Frameworks available?




1) Linear Scripting

2) The Test Library Architecture Framework.

3) The Data-Driven Testing Framework.

4) The Keyword-Driven or Table-Driven Testing Framework.

5) The Hybrid Test Automation Framework.



1) Linear Scripting - Record & Playback




It is the simplest of all Frameworks know as Record & Playback. In this Framework, Tester records each step, Inserts Checkpoints in the first round. He then plays back the recorded script in the next rounds.



Advantages


  • The fastest way to generate a script.


  • Automation expertise not required.


  • The easiest way to learn the features of the Testing Tool.


Disadvantages

  • Little reuse of scripts.

  • Test data is hard coded into the script.

  • Maintenance Nightmare.



2) The Test Library Architecture Framework

 


It is also known as "Structured Scripting" or "Functional Decomposition".


In this Framework, test scripts recorded by "Record & Playback" method. The common task inside the scripts identifies and grouped into Functions. These Functions called by main test script called Driver.



Advantages



  • A Higher level of code reuse in Structured Scripting as compared to "Record & Playback".

  • The automation scripts are less costly to develop due to higher code re-use.

  • Easier Script Maintenance.



Disadvantages


  • Technical expertise is necessary to write Scripts using Test Library Framework.


  • More time needs to plan and prepare test scripts.

  • Test Data is hard coded within the scripts.

3) The Data-Driven Testing Framework



In this Framework Test case logic resides in Test Scripts. The Test Data separates and kept outside the Test Scripts. Test Data read from the external files loaded into the variables inside the Test Script. Variables use both for Input values and for Verification values. Test Scripts themselves prepared either using Linear Scripting or Test Library Framework.


Advantages


  • Changes to the Test Scripts do not affect the Test Data.

  • Test Cases execute with many Sets of Data.

  • A Variety of Test Scenarios executed by varying the Test Data in the External Data File.



Disadvantages

  • More time needs to plan and prepare both Test Scripts and Test Data.


4) The Keyword-Driven or Table-Driven Testing Framework



The Keyword-Driven or Table-Driven framework requires the development of data tables and keywords. It independent of the test automation tool used to execute them. Tests design with or without the Application. The test in the step-by-step functionality of keyword-driven test.

There are 3 basic components of a Keyword Driven Framework viz. Keyword, Application Map, Component Function.


What is a Keyword?


The keyword is an Action that performs on a GUI Component.

What is Application Map?


An Application Map Provides Named References for GUI Components. Application Maps are nothing but "Object Repository"


What is Component Function?


Component Functions are those functions that manipulate or interrogate GUI component. A function would click on web button with all error handling, enter data in a Web Edit with all error handling. Component functions could be application dependent or independent.


Advantages

  • Provides high code reusability.

  • Test Tool Independent.

  • Independent of Application Under Test, the same script works for AUT (with some limitations).

  • Tests design with or without AUT.


Disadvantages


  • Initial investment being pretty high. The benefits of this realized if the application is big. The test scripts are to maintain for quite a few years.

  • High Automation expertise to create the Keyword Driven Framework.

5) The Hybrid Test Automation Framework



As the name suggests this framework is the combination of one or more frameworks. It discussed above pulling from their strengths and trying to mitigate their weaknesses. This hybrid test automation framework is evolving into overtime and many projects. Largest industry uses Keyword Framework in the combination of Function decomposition method.

Comments

  1. Very good post.
    All the ways that you suggested for find a new post was very good.
    Keep doing posting and thanks for sharing
    Informatica training in hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

Selenium Uses of Manual Testing Training in Hyderabad

Manual Testing Manual Testing is referred to the process in a software tester sits. The through an end user software to determine the various flaws and bugs in the software. The process is generally carried out official launch of the app or website or software. The forms an integral part of the quality assessment of a software.   Selenium Uses of Manual Testing Training in Hyderabad software testing was done using automated methods. Developers tend to use automated scripts. The computers for the purpose of the process made easy. The graphical interface, games, e-commerce sites and interface of apps, manual tests preferred. These tests preferred user experience is matters and to ensure the end user use the service. The testing using manual methods is quite important. the e-commerce and game developers use manual testers . their app or site is working as per the convenience of the public and not causing any bug during use. How does one

Web Driver Architecture​ | Best Selenium Online Training in Hyderabad

Best Selenium Online Training In Hyderabad Introduction​ Selenium WebDriver is one of the most powerful and popular tools of Selenium toolkit. WebDriver extended version to Selenium RC. WebDriver extends its support to many latest browsers and platforms, unlike Selenium IDE . WebDriver also doesn’t need Selenium server to start before execution of the Selenium RC . Selenium RC in aggregation with WebDriver API is Selenium 2.0 . Selenium was so developed to support dynamic web pages and Ajax calls . It also supports various drivers to exercise web-based mobile testing. Architecture​ WebDriver is a web-based testing tool with Selenium RC . The tool built on the fundamental where isolated clients create for each of the web browsers. WebDriver makes direct calls to the Web browser . The entire test script executes in this fashion. WebDriver uses the browsers support and capabilities to automation. Seleni

Selenium Browser Automation Testing Tool

    Selenium Browser Automation Testing Tool Testing professionals use a variety of automation testing tools to the web applications. Automated testing has made the testing processes much simpler than manual testing. It has accelerated the testing process and improved efficiency. The most powerful open source automation tool available at the moment is Selenium . Advantages of Selenium Browser Automation Testing Tool Based on Java scripting to a large extent tests run in the browser. Like Mozilla, Firefox, and Internet Explorer. Various operating systems like Mac, Windows, and Linux. There is hardly any tool that covers such assortment of platforms. This tool has made it easier to check web applications without putting in extra effort and time. Here are some important advantages of the Selenium automation testing tool Flexibility and Ease of Use: Selenium is an interface creating and executing testing suites. Selenium ’s open source allows the user to write ex