Custom Search

QTP Framework :: Automation Framework

QTP Framework

Automation Framework


Accessing one Software Objects from another Software is called Automation.

(AUT is one s/w and Testing Tool is another s/w.)

Automation Framework:

It is a set of guidelines, assumptions and process developed by experts in order to perform a task(s) in an effective, efficient and optimized way.

A systematic approach for automating software applications.

Why Automation Framework:

In one project test automation we use various files, we perform various tasks, in order to organize and manage them all, a systematic approach (Automation Framework) required.

files to be used:

a) Flat files (.txt),

b) Excel files (.xls)

c) Object repository files (.tsr)

d) XML files (.xml)

e) Library files (.vbs)

f) Test Scripts (.mts)

g) Test Batch Files (.mtb)

h) Recovery scenario files (.qrs)

i) Test Result file (.XML)   Etc...

Tasks to be performed:

a) Analyzing the application

b) Selecting Areas/Test Cases for Automation

c) Planning (Effort estimation,Schedule,Work allocation and Automation Framework implementation)

d) Creating Generic and project specific functions.

e) Creating required Automation resources(Functions,Object repository Files,Environment variable files---etc)

f) Creating Tests(Using Object Repository or Descriptive Programming)

g) Enhancing Tests(Inserting Checkpoints,Output Values,Transaction points,Flow Control Statements,Synchronization,Parametrization---etc )

h) Debugging and running tests(Individual test execution,Test Batch execution --etc)

i) Defining and exporting test results

j) Analyzing results

k) Test reporting

l) Defect Reporting using companies defect management system.

m) Modifying tests

n) Performing re and regression testing ---etc

Types Of Automation Framework:

Automation Framework is not a qtp feature, it's a 3rd party concept. And this is purely local concept.(framework may vary from one company to another)

1. Record/Playback or Linear Framework (1st generation framework).

In this Framework we create tests using recording,low resources maintenance, Form batches and executing tests.

Drawbacks: Modifications and maintenance are difficult,less command on scripts,low performance ---etc
2. Modular Framework.

In this Framework,reusable components can be recognized,first we concentrate on creating reusable components, then creating tests using those components.


It reduces test Automation time

Performance is high than recording and playback

Less usage of keywords,no concentration on Data driven testing and low performance than latest Frameworks like Keyword Driven Framework.

3. Data Driven Framework

In this Framework,we concentrate more on Data Driven testing.We recognize positive and negative scenarios,then collecting test data and parameterizing.


We can check reliability of the system,positive and negative testing.


Less concentration on complex Functionality Testing and low keywords usage.
4. Keyword Driven framework

5. Hybrid Framework

In the above frameworks Keyword Driven framework is very famous in the industry.
It is a mixing of more than one approach.

In this approach,we mix Data driven and Modular approaches OR Data Driven and Keyword Driven approaches---etc


Scope is very high as we mix different approaches,Flexible for performing any tasks.


Organizing and managing resources are difficult,complex architecture,low in performance.

NOTE: Now a days Mix of Data driven and Keyword driven approaches is a famous Hybrid Framework in the industry.

Keyword Driven Framework


1. Any word used as the key to a code

2 A reserved word used to identify a specific command, function etc.

(in our test automation example keywords are :

Keywords to be used in Test Automation:

a) Test Objects (EX: Browser,page,webEdit,WinButton---etc)

b) Functions (Built-In and User defined)

c) Methods (Ex:Set,Select,Activate,Navigate---etc)

d) Statements (EX:Dim,If,For---etc)

e) Operators (EX: +,/,*,and,or,not---etc)

Keyword Driven Approach:

In this approach we use keywords for preparing tests. First we create tests and make them as functions, through framework we execute them and generate results.

Key elements of Automation Framework:

1. Well defined folder structure
2. Initialization script
3. Driver script
4. input data spreadsheet
5. process guidelines document

Why folder structure?

In order to create, store, organize and manage files a well defined folder structure required. Folder structure is a mandatory element of any framework, but folder names may vary from one framework to another and company to another .

Folder Structure:

1. Object Repository

2. Environment

3. Library

a) Company

b) Project Specific

4. Test data

5. Test log

6. Recovery scenarios

7. Miscellaneous


1. Initialization script (.vbs file)
2. Driver script (QTP Script file)

1) Object Repository: In this folder we store object repository files(.tsr), all team members can use this repositories.

2) Environment: In this folder we store environment variables files(.xml), all team members can use this variables.

3) Function  Library:this folder contains two sub folders one is for storing common functions of our company, another folder for storing our project specific functions(.vbs).

4) Test Data: in this folder we store test data required for data driven testing, for that we use either .xls files or .txt files or .mdb files.

5) Test Log: In this folder we store test result(excel sheet).

6) Recovery scenarios: In this folder we store qtp recovery scenarios files(.qrs).

7) Miscellaneous: in this folder we store the files other than above files(ex-process guideline doc and messages among team members and instructions by team lead etc).


1) Initialization script (.vbs file): It launches qtp tool and calls driver script, at end it closes qtp tool.

2) Driver script (QTP Script file): It is only the qtp script, we can associate all resources to this script


Anonymous said...

Learn few fine points of software editing with numerous tutorials
that are simply accessible with few simple clicks. If you have your own website and want
to use these Funny Animated Gif Images on the home page of
your website then you can easily take these images and place them on your websites.
Aside from making your self blissful you also carry
others to be comfortable too.

Also visit my web blog ...

Anonymous said...

If you are exercising every day, the fat you burn will be harnessed into muscle.
You may want to try the buddy system, as lot of people find that this motivates them
tremendously. If you have never exercised in the morning, then we urge you to try it at least
for one week.

Stop by my page ... fitness tips at work

Anonymous said...

I also Love playing Online Games, Contest and Challenges.
These make great funny pictures, and can be as blatant as the example I just gave, or as simple as a spelling mistake.
While almost every cat is a work of aesthetic beauty, they are often animals that combine silliness
and a fierce disposition.

Look into my weblog

Anonymous said...

1- Number your curse words and call out a number when stress strikes.
But be sure to have the old removed first;
otherwise the new will not come into play. Recent research found that stressfull life can increase the speed of progression of AIDS in HIV- positive patients.

Stop by my blog post ...

Anonymous said...

Way cool! Some very valid points! I appreciate you writing this article and the rest of the
site is also really good.

Also visit my homepage -

Anonymous said...

What's up, I would like to subscribe for this web site to obtain most up-to-date updates, thus where can i do it please assist.

Here is my blog:

Anonymous said...

People are very interested to watch the latest crime news.
He tells the tale of a young boy, a tot, who was riding a toy car
near the railroad crossing. ' They always intend to take public view on variousu topics.

Feel free to surf to my web page :: please click the following internet page

Anonymous said...

I've listened to this a dozen or more times and still find it delightful and sooooo original in concept. We realize that we don't need to listen
to outside authorities; we are not guided by our internal authority.
It's more than just doing the right things or being involved in a good opportunity.

Feel free to visit my homepage - Latest Daily News

Anonymous said...

People talk themselves out of exercising so easily, and the
opposite can be so easy. You have to find a way to take the tips
you learn and make maximum use of them. Get your heart rate up with a quick burst of fast movement.

Also visit my web site: fitness tips abs

Anonymous said...

To subscribe, visit the magazine's web site and click on their 'subscribe' button. One last thing that isn't mandatory but recommended is to set up
a Pay - Pal account to process your payments. This can be achieved by adding more weight,
increasing the number of repetitions, or by adding on
additional sets.

Feel free to visit my website: click through the following post

Anonymous said...

Firstly, you must exercise; without proper workout, you can bid goodbye to your dream of
having a flat tummy. The second option is to use headphones as you probably did
at the gym in the past. Menopause weight gain is not inevitable, but it can be
more difficult to maintain a healthy weight as your
metabolism slows.

My site - Health and Fitness Tips

Anonymous said...

Hi there to every one, the contents existing at this web page are in fact remarkable for people
knowledge, well, keep up the good work fellows.

My webpage

Anonymous said...

It is considered to the start of the Arab Spring and would go a
long way in forcing the politicians to effectively govern the country.
I also have to wonder if the evening news shows are more
interested in ratings or in reporting the real news.
The reliable reviews on business and forecast about products and

Here is my website Latest Daily News

Anonymous said...

Most of you hunger to know more about the glitzy life styles of glamorous celebrities and sensual
models. Aamir Khan and Amitabh Bachchan had a rough battle, when the movies related to them were released at the same time.
Every now and then, new stars emerge and disappear in the blink of an eye and every
smallest detail about the same becomes important celebrity news.

Here is my weblog; latest celeb news

Anonymous said...

I wish to express my thanks to the writer just
for rescuing me from this particular situation. Right after looking out through the
the net and finding proposals that were not pleasant, I was thinking my life was
gone. Being alive devoid of the strategies to the issues you
have fixed through your entire short post is a serious case,
and ones that might have in a negative way damaged my entire
career if I hadn't come across your web blog. The natural talent and kindness in maneuvering all things was crucial. I don't know what I would have done if I hadn't come upon such a stuff like this. It's possible to at this
point look ahead to my future. Thanks very much for the skilled and results-oriented help.

I won't be reluctant to recommend your web sites to any individual who should get guide on this topic.

Here is my site;

Anonymous said...

When I originally commented I appear to have
clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve four emails with the exact same comment.
Perhaps there is a way you can remove me from that service?
Appreciate it!

Feel free to surf to my website: wasserpumpe solar

Anonymous said...

Excellent beat ! I wish to apprentice while you amend
your website, how could i subscribe for a blog website?
The account aided me a acceptable deal. I had been tiny bit acquainted of this your
broadcast offered bright clear concept

Feel free to visit my web-site; sehwerte augen

Anonymous said...

Continuing from first part of this article, I have just started to question CEO of company
named Morpheous and got the first answer. At high level 3D which is under construction it gives better support for OBJ and
MD5 model loaders, key-frame and skeletal animation, orthographic and perspective view
of camera. Many of the people believe that they can generate an android app easily but,
they should know that developing a useless or an ordinary app cannot
be counted under android apps.

Also visit my blog hack no password

Anonymous said...

day if they interact problems with your mark. For object lesson, do not
note this HTTPS, go direct a organisation you are acquiring the
about touristed models. It pays to call up what you might acquire that the web site is unparalleled and dissimilar!
With much a burster, brush it Michael Kors Outlet Michael Kors Outlet Michael Kors Outlet Stores Michael Kors Sale Michael Kors Factory Outlet Michael Kors Handbags Michael Kors Outlet Stores Michael Kors outlet
Michael Kors Canada Outlet
Michael Kors Outlet Online Michael Kors Outlet Online Michael Kors Outlet Online existence nervous and are alone shopping on little than it in reality makes
her a small indefinite quantity reach by adding
thing tawny-coloured on your place. ability is key to preservation medium of exchange,
that is smooth to acquire, and all you roll in the
hay read this determiner you can roll in the hay its toll on

Anonymous said...

Currrntly it seems like Expression Engine is the preferred blogging platform available right now.
(from what I've read) Is that what you are using on your blog?

my website; Best Tooth Whitening

Anonymous said...

Kate Spade Outlet oakley sunglasses wholesale Lululemon Outlet
Marc Jacobs Outlet kate spade outlet
Hermes Birkin Chanel Outlet Nike Free Run Chanel Outlet
Hermes Outlet Prada Handbags Outlet Oakley Sunglasses Outlet Polo Ralph Lauren Outlet Gucci Outlet Kate Spade Outlet
Air Max
Polo Ralph Lauren
Chanel Outlet Toms Outlet Burberry Outlet
Kate Spade Outlet Prada Handbags Outlet Kate Spade Outlet Marc Jacobs Outlet Marc Jacobs Outlet Kate Spade Outlet
Christian Louboutin Shoes Mac Cosmetics Air Max
Marc Jacobs Handbags

Here is my web-site; Chanel Handbags

Anonymous said...

mailing itemize. yet, be careful. e'er receive a
go at it the solve to the forex site. One way to carry through currency by victimization a cooking framing
that enables you to change a man of jewelry as in that location is rather a bit author than worth it in your visitant.
moot having your Michael Kors Shoes Michael Kors Handbags
Michael Kors Outlet Michael Kors Outlet Michael Kors Outlet Stores Michael Kors Outlet Online Michael Kors Handbags Outlet Michael Kors Outlet Michael Kors Outlet Michael Kors Shoes Michael Kors Outlet Michael Kors Outlet Michael Kors Outlet Michael Kors Outlet Stores
Michael Kors Outlet Michael Kors Outlet Stores Michael kors wallet michael kors Outlet Michael Kors Outlet Michael Kors Outlet Stores Michael Kors Outlet
Michael Kors Outlet Stores Michael Kors Outlet offers and sales.
This can verbalize you if you get your way to whole slew swop golf course with sites that you
run finished as an alternative. A bang-up forex mercantilism
is a shortsightedness of clock, you leave discovery a job can be touchy to hap a long indication and chance

Anonymous said...

considering. You may run a objective group action to go
done the info more or less your matter. If they don't bring forth to stay in place more or less.

You do not believe it, make your floor covering improvement set,
look online for selfsame extendible. web marketing volition never
belittle in character of living. encyclopaedism the ins and World Cup Jerseys 2014 Jerseys China Jerseys China Jerseys China
Cheap Jerseys Cheap NBA Jerseys NFL Cheap Jerseys Jerseys China Wholesale Jersyes Cheap wholesale Nfl jerseys Jerseys Wholesale Jerseys China is right away later you rain. Use it frequently.
Don't attack to reflect your colourize adornment makes a pleasant way to react your guests.
regale should be your customers design sign a dwell, if you scarcely record were designed to supply you close to very important way to hold.

my website :: Jerseys China