Answer Posted / navin
I have seen an umpteen no of posts in every QTP group I
visited asking about Test Automation frameworks. Here I
would like to collate the useful inputs i received from
various QTP groups and discussion forums.
1) Key Word Driven Testing:
The Keyword Driven framework consists of the basic
components given below
1. Control File
2. Test Case File
3. Startup Script
4. Driver Script
5. Utility Script
1. Control File a)Consists details of all the Test
scenarios to be automated b)User will be able to select a
specific scenario to execute based on turning on or off a
flag in the Control File c) Control File is in the form of
an excel worksheet and contains columns for Scenario
ID,Execute (Y/N),Object Repository Path, Test Case File Path
2. Test Case File a)Contains the detailed steps to be
carried out for the execution of a test case b) It is also
in the form of an excel sheet and contains columns for
Keyword, Object Name, Parameter
3. Startup Script a) The Starup script is utilised for the
initialization and reads the control files b) It then calls
the driver script to execute all the scenarios marked for
execution in the control file
4. Driver Script a) It Reads the Test Case files. Checks
the keywords and calls the appropriate utility script
functions based on specific keyword b) Error Handling is
taken care of in the driver script.
5. Utility Scripts a) Perform generic tasks that can be
used across applications. It should not be application
dependent Advantage of Framework.
•The main advantage of this framework is the low cost for
maintenace. If there is change to any test case then only
the Test Case File needs to be updated and the Driver
Script and Startup script will remain the same.
•No need to update the scripts in case of changes to the
application.
ALSO
Keyword-driven testing is a Software testing technique that
separates much of the programming work from the actual test
steps so that the test steps can be developed earlier and
can often be maintained with only minor updates, even when
the application or testing needs change significantly.
Read full article here
2) Data-driven Testing:
Data-driven testing is a framework where test input and
output values are read from data files (datapools, ODBC
sources, csv files, Excel files, DAO objects, ADO objects,
and such) and are loaded into variables in captured or
manually coded scripts. In this framework, variables are
used for both input values and output verification values.
Navigation through the program, reading of the data files,
and logging of test status and information are all coded in
the test script.
Read Full article here
3) Modularity-driven testing
The test script modularity framework requires the creation
of small, independent scripts that represent modules,
sections, and functions of the application-under-test.
These small scripts are then used in a hierarchical fashion
to construct larger tests, realizing a particular test case.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How many types of recording modes in the qtp?
How many types of trigger events are there in qtp?
What is meant by Output Value in UFT?
How to export quicktest professional (qtp) results to an .xls file?
Explain the concept of how quicktest professional (qtp) identifies object?
How did you use regular expressions in QTP and also in WR?
How to interact tool & application build in QTP?
How to check which add-ins are associated with a test in qtp?
how u will evaluate the tool for test automation?
what is run action?
Can U Explain about QTP tool from older version to latest version also its differences?
what is run-time data?
How to associate function library at a run time?
What is the short cut keys for the following?
How to analyzing the checpoint results?