http://www.softwaretestinggenius.com A Storehouse of Complete Knowledge on Software Testing & QA under one Roof
An Automation Framework primarily comprises of elements like:
A) Function Library
B) Object Repository
C) Database
D) Application Scenario Files
E) Initialization VBScript
F) Sequence File
G) Driver Script
H) Test Case List File
While creating automation framework the entire coding is done by using VBscript functions that are user defined. We store these VBscript functions in function library files with (*.vbs) extension. Apart from Driver Scripts, there is no need of doing any script creation beyond the function library.Every application consists of following two types of function libraries
2) Containing functions, which are specific, the application.
The script designer strives to utilize the common functions, which are independent of the application, to the maximum possible extent. However there is no hard & fast rule to always use common functions only. Whenever there is absolute necessity of using some functions, which are essential for the application, the same are created on the spot & are stored in the concerned function library.
B) Object Repository:
C) Database:
The subject matter experts (SME’s) who usually don’t have much of programming knowledge are able to easily use these application scenario files for creating automated tests by making quick selection of keywords from the dropdown lists.
We can save tremendous amount of automation effort by creating maximum number of common which can be reused again & again thereby getting the maximum benefit.
The application scenario files with (*.xls) extension are stored in the application folder corresponding to the particular application.
MS Access database module of MS Office is used to store all the test data. While designing the structure of the database the designer tries to keep one independent table for every screen of the application. Test Case ID field is usually designated as the primary key for every table. Test Case ID is unique for every record used by the program for iteration. Test Case ID identifier is quite helpful in navigating through some particular type of data stored in the table. QTP establishes a link with database by building its system DSN and using the same DSN in the script. As a best practice, every application should have an independent database file; however for the sake of conserving the space on the hard disc, multiple applications can share the same database.The MS Access database files with (*.mdb) extension are stored in the Database folder.D) Application Scenario Files:
This is a typical MS Excel spreadsheet file, which contains records with information on different keywords, objects & many other parameters representing a test scenario. QTP accesses the information from this application scenario file & performs the defined actions over the application. The MS Excel spreadsheet file serves the purpose of test case documentation as well & there remains no need to create another set of test case documentation. The application scenario files are the most versatile features of keyword driven framework.
The Sequence File with (*.xls) extension are stored directly in the root folder.
E) Sequence File:These are initialization settings files for the Driver QTP Script and are similar to the conventional configuration files. This is also a typical MS Excel spreadsheet file, which contains records with information like:
1) Name of Application Scenario file
2) Name of Object Repository
3) Name of Function Library
4) List of Test Cases to be executed
5) Details of Data Source
6) Details of script development work area
7) Details of script execution work area
Every application carries a "Run" or "Ignore" flag specifying the application scenario being executed. This sequence file in the form of spreadsheet is used by the Initialization VBScript uses & decides as to which application & which scenario is to be executed, for getting the information on the concerned Application Scenario file & for doing the initialization settings for the application.
F) Initialization VBScript:
It carries out the following settings for the Driver Script.
1) Setting the Work Area according to user input.
2) Setting the application scenario file for the current run.
3) Setting the object repository.
4) Setting the function libraries.
5) Setting the data source.
6) Setting the test case list.
Once the above settings are completed, Initialization VBScript launches the Driver Script in read only mode, & makes it ready for execution by the user. Thereafter the Driver Script takes over the entire control.
The Initialization VBScript with (*.vbs) extension are stored directly under the root folder.
Initialization is the starting point for the execution of a script. QTP gets launched by Initialization VBScript & the work area is set either as development or production depending upon the inputs from the user. We can use the same Initialization VBscript for doing the initialization settings for multiple web applications.G) Driver Script:
These Driver Scripts call the "ExecuteScenarioFile" function for accessing the keywords, various objects and all other parameters from the Scenario File and making calls to suitable functions in the function library.
The Driver Scripts are stored directly under the root folder.
These Test Case List Files are stored directly under the root folder.
These are test scripts of QTP meant for driving the script execution after Initialization VB Scripts complete their task. These driver scripts reside outside the function library.H) Test Case List File:These files contain the list of all Test Case ID’s for execution under the present run. With the help of these files, the user gets an option for selecting only a subset of the data from the database for executing in the present run.
A) Function Library:
1) Containing common functions that are not dependent on the application functions.
"ExecuteScenarioFile" is a function present in our common function library & is called from the Driver Script or from outside the function library. This function is used for accessing the keywords, various objects and all other parameters from the Scenario File. This is also used to call other relevant functions as well from the function library.
The function library files with (*.vbs) extension are stored in the Function Library folder.
- Related Videos
- Related Articles
- Ask / Related Q&A
- Thirteen Top Questions about QTP Certification
- After Testing with QTP or LoadRunner, Manage your tests with HP- Quality Center
- In QTP Keyword Driven Testing versus Recording – Which one to choose?
- What setup is needed for Keyword Driven Testing in QTP?
- Want to win over excessive stress in your present IT Job?
- Hone Your Functional Test Automation Skills through Quality Quick Test Pro Training
- Typical Architecture of Automation Frameworks




IBM 40Y7003 Battery Introduction and Tips
By: Laptoptraveller | 04/01/2010A ThinkPad 40Y7003 battery can replace 40Y6999, 40Y7001 and it can work with IBM X60, X61, X61s laptops
Slow Windows 7 Fix - How to Make Your Windows 7 Fly Again
By: Alex | 04/01/2010Are you getting a slow Windows7? Are you looking for tips on how to run your Windows 7 at its optimal performance in cheap and fast way? I do hope I could help you resolve your computer problems here. You can make your Windows7 fly again in just minutes.
Amazing History Of Laptop Batteries
By: Rainco | 04/01/2010Whenever you power up your laptop you may not think about the history that has gone on to help us get to where we are today. Our laptops have come a long way to become as powerful as they are, but what we do not think about is how far the laptop batteries have come.
Exporting Data from Dynamics GP Notes for Consultant
By: Andrew Karasev | 03/01/2010There might be situations, where you need to extract info from Microsoft Dynamics GP (formerly known as Great Plains Dynamics or Microsoft Great Plains) table. In this small publication we will describe you two scenarios. First, when you need one tame data export for following data conversion into future Corporate ERP accounting system (when you are walking away from Dynamics GP to something like SAP Business One, Oracle eBusiness Suite, etc.), and second - when you need ongoing data export
PS1 Emulator Macintosh
By: Brad Press | 03/01/2010This year's best (or worst) kept secret in the world of portable video games, and gaming as well, is the new Sony device called PSP GO. Software used to manage and organize your files (saved on the PSP GO console) is PSP GO software, which is also brand new (developed by Sony too) and rumoured to be very easy to use. This phenomenon has become a popular franchise for 21 years.There, the annual NFL Draft, players create their own shots of a new team almost immediately.TV shows soft M...
PS1 Emulator Mac Sites
By: Brad Press | 03/01/2010The PSP has never really been the must have gadget. When it was released several years ago it was a gaming device with extras. But since then the consumer changed and other features become important. Sometimes it is a bad cable can cause them to think the console hardware has failed.Make sure that there is no visible damage to the AV cable or a power cable (and power bricks).Disconnect all cables and reinsert them.Step 2 If that did not work, turn off the console and let it cool fo...
The Xbox Gamertag Search
By: Brad Press | 03/01/2010One of the most common problems that you will more likely encounter with your game console is the red ring of death, otherwise known as the E73 error; hence, as owner of the unit, you should know how to repair this problem by reading various Xbox 360 E73 error fix-it-yourself guides and tutorials. This will equip you with sufficient knowledge and skills on how to resolve this trouble, and do precautionary measures on how to prevent it from happening again in the future. Power play ...
Xbox Gamertag Search Blogs
By: Brad Press | 03/01/2010You must have notices Xbox 360 two red lights flashing when you are playing with the console for a long period of time. You might wonder what the problem is. If you are not sure and you continue playing, there can be serious consequences and you will have to spend a lot of money on the issue. Here are the console games, Xbox Live account, you should be able to update.File update instructions to start the search process and the end of the wait.Now ready to play this game first love....
What is Software Testing - An Introduction
By: yogindernath | 25/11/2009 | E-LearningWhat is Software Testing - An Introduction
How to Manage Software Testing Effectively By Business management Approach
By: yogindernath | 25/11/2009 | SoftwareHow to Manage Software Testing Effectively By Business management Approach
Understanding the Typical Structure of Software Testing Process
By: yogindernath | 25/11/2009 | ProgrammingUnderstanding the Typical Structure of Software Testing Process
What is the Motive Behind Software Testing - An Overview
By: yogindernath | 25/11/2009 | Information TechnologyWhat is the Motive Behind Software Testing - An Overview
Who should test? and what? – An Overview
By: yogindernath | 17/09/2009 | Information TechnologyWho should test? and what? – An Overview
Tips for Creating Good Test Automation Approach
By: yogindernath | 06/08/2009 | DatabasesTips for Creating Good Test Automation Approach
Typical Architecture of Automation Frameworks
By: yogindernath | 06/08/2009 | Information TechnologyTypical Architecture of Automation Frameworks
Guidelines to create Best Test Automation Frameworks?
By: yogindernath | 06/08/2009 | Computer ForensicsGuidelines to create Best Test Automation Frameworks?