hai friends
i'm learning qtp now where we r using only record &playback
frame work.and people r saying in realtime they won't use
this frame work. if so what frame work actually using in
realtime .and could you give explanation comaparing the
record &play back fm and what ever FWyou r using in your
organization.
hoping cool response.
thanx in advance
Answers were Sorted based on User's Feedback
Answer / madhusudan
Using Descriptive Programming you can write the code for
(Using VBScript) requirement.
There are 4 types of Frame works supported by the QTP
1.Linear Programming
2.Modular Programming Frame work
3.Key word driven FW
4.Hybrid FW
Hybrid is the combination of 1 or more framworks listed the
above.
Differences between Record&Playback and Descriptive
programming are
1.Record&Playback required application build where as its
not mandatory in Descriptive programming.
2.Without ObjectRepository also we can execute the
Programme in Descriptive programming.
3.Fast execution in Descriptive programming.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sharad garg
A framework is a mechanism to run the test cases and store
the test results such that they can be further used for
manipulation. There are various types of framework:
Record and Replay - U cant enhance the tests and can record
only static objects in application,It fails where dynamic
objects or application in which values are constantly
changing are encountered.
Keyword Driven- This is a table driven framework which
stores keywords as parameters to parameterise the qtp
scripts or business functions which are called by a business
function script (as a result of functional decomposition of
business functions). There are three scripts:
1.Input script
2.Main Script
3.And Output script
Data Driven: Input and output parameters to parametrise the
qtp scripts, Imput parameters like enviornment variables, or
global variables which are set during the launch of qtp are
used.output parameters return values through means of
business functions. At first input script launches qtp and
set the paths like reporting areas, folder structures and
test results folder and return the control to controller
script or main script.
Main script is a business function script which loads the
Test cases list in qtp, selects a corresponding row in
keyword table for an object and pass the parameter value
(from test data.xls) to the functions by calling functions.
These functioons take input variable from test data.xls and
returns the values in form of output variables which are
then manipulated, either stored in data table or send to
test results folder through output script.
These functions/ business scripts provide modularity to the
test cases as same function is reusable across application,
and multiple test cases can be tested by one function, Hence
there is no need to write multiple qtp scripts to test
multiple test scenarios. You can parameterise one BFS
(business function script) like this for different values
and fields in your application.
There are methods for fetching values from /to application
and also set them in datatable which can be accessed through
datatable methods in qtp.
For more details : email: sharadgenius@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chandu
thats not completely correct.coz in some cases we use
record and playback.but any how if u record it u need to
enhance the script for multiple data testing.so here there
are
1. data driven FW
2. keyword driven FW
3. Hybrid FW
3=2+1
if u are using 1. we used to import an excel sheet(it
contains the input data for the application)so that we can
test for multiple data.
if its 2. then we need to create some some actions and make
it reusable and also create some functions and with these
we can use where ever u want.
so for example:if uu write a function like "login"
so this is the keyword:
so just call the keyword.
like call login in ur script.
if its 3. its a combination of both 1 and 2.
in most of the cases we use 3.
| Is This Answer Correct ? | 0 Yes | 1 No |
Analyzing the Checkpoint results ?
can any one tell me how to select some text.i need the script for that
what is the object properties settings in the QTP
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
what is verification & validation?
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
what is the general issues faced while using automation tool Qtp9.0
WHAT IS SMATR IDENTIFICATION? plz EXPLAIN BRIEFLY? IS IT POSSIBLE in QTP? HOW AND WHEn THE SITUATION U R USING EXPLAIN WITH EXAMPLE?
It is given in the help of QTP 9.2 that we cant debug the scripts. Is there any other way to VIEW, PAUSE and make modifications in the scripts during execution???
How to open a new test using quicktest professional (qtp)?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
How many tabs are available to view your test in a test pane and what are they?