Can u explain about QTP framework

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


Please Help Members By Posting Answers For Below Questions

What are private functions in QTP? How they can be called from the function library?

632


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

572


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1577


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2799


Explain the concept of object repository & how qtp recognizes objects?

566






how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1825


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2260


What test you perform mostly? Regression or retesting in your testing process?

574


What are the different types of qtp test assets and their extensions?

593


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2448


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2565


how to prepared for first for the first interview?

1792


What the differences are and best practical application of Object Repository?

583


can test automation improve test effectiveness?

1484


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

3421