Friday, 9 March 2012

Test Library Architecture Framework,Hybrid Test Automation Framework

Test Library Architecture Framework:
In this framework,test scripts are initially recorded by "Record and Playback" method. Later, common tasks inside the scripts are identified and grouped into Functions. These functions are called from the main test script called Driven in different ways to create test cases.

For example, we can take the login feature.We'll have the following steps involved when using Test Library Architecture Framework.

Step#01: Recording steps by using Recording mechanism.
SystemUtil.Run "Flight.exe","","","Open"
Dialog("Login").WinEdit("UserName").Set "u_aaaa"
Dialog("Login").WinEdit("Password").SetSecure pwd

Step#02: Group the above steps and convert as a function.
Function Login()
SystemUtil.Run "Flight.exe","","","Open"
Dialog("Login").WinEdit("UserName").Set "u_aaaa"
Dialog("Login").WinEdit("Password").SetSecure pwd
End Function

Step#03:Call the function created in Step#02 in the main script as follows.
Call Login()

Like the above function call we can have calls for n-number of function in the main script.

We have the following advantages:
  • We can achieve the higher level of code reuse in Structured Scripting as compared to "Record & Playback".
  • Cost for developing the script is very less due to the higher code re-use.
  • We can maintain the script easily.
We have the following disadvantages:
  • More technical expertise is necessary to write  Scripts using Test Library Framework.
  • More time is needed to plan and prepare test scripts.
  • Test Data is hard coded within the scripts
Hybrid Test Automation Framework:

As the name suggests this framework is the combination of one or more frameworks by pulling the strengths and trying to mitigate their weakness. This framework is what most frameworks evolve into over time and multiple projects. Most of the industry uses Keyword framework in combination of Function decomposition method.

We can have any combination of the frameworks based on the requirements and application under test's behavior.


bala subramanian said...


Pavithra M said...

It is really a great work and the way in which u r sharing the knowledge is excellent.
Thanks for helping me to understand basic concepts. As a beginner in software testing your post help me a lot.Thanks for your informative article. software testing Training in chennai | Best software testing Training institute in velachery

Software Development Company said...

The Article on Software test Library architecture framework .thanks for Sharing the information about it Software Testing Company

Post a Comment

Back To Top