How many ways we can parameterize data in QTP ?

Answer Posted / kondalu

parameterize three ways in qtp
1.keywordview
2.experview(parameterisation)
3.manually scripting


1.expertview(parameterisation):
any application open for example calculator
and recording that application
vbwindow("form1").activate
vbwindow("form1").vbedit("value1").set "10"
vbwindow("form1").vbedit("value2").set "20"
vbwindow("form1").vbbutton("add").click
data table as import or automatically created
v1 v2 ev
10 20 30
20 30 50
30 40 70 datatable to be created
in tools option datadriver(no recording script
datadriver is disable and recording script data driver is
enable)
datadriver is selected after (for example

10 1 0) go parameterise and select parameterise option
and select v1 click on ok button first v1 is parameterised
(parameterise means 1 value changed in 0 and 0 value
changed in 1) and same as v2
finally click on recording as go to checkpoint and
select standard check point click on result and to go
parameterise and parameterise options select ev click on ok
button
(second recording in checkpoint in result in script as
beging cursor checkpoint as begining statement but finally
datatable 3 lines created first line will be correct ,2nd
and 3rd line will be error.
but cusor will be ending means 2nd recording as
chekpoint and select standard checkpoint selecting result
option "vbwindow("form1").check checkpoint("result")"
this statement as ending data table in 3 lines are passed
and result willbe passed

(this is one type of method)

vbwindow("form1").vbedit("value1").set datatable
("v1",dbglobalsheet)
vbwindow("form1").vbedit("value2").set datatable
("v2",dbglobalsheet)
global sheet means in qtp datatable in
first in globalsheet (dbglobalsheet=1)
vbwindow("form1").check checkpoint("res")


vbwindow("form1").vbedit("value1").set datatable
("v1",1)
vbwindow("form1").vbedit("value2").set datatable
("v2",1)

datatable("v1",1) as given in a
datatable("v2",2) as given in b


MANAUAL SCRIPT IN PARAMETERISATION
a=datatable("v1",1)
vbwindow("form1").vbedit("value1").set a
b=datatable("v2",1)
vbwindow("form1").vbedit("value2").set b
vbwindow("form1").check checkpoint("res") IN THIS statement
begining datatable in 3 lines 1 line pass 2nd and 3rd line
failed
ending three lines will be passed

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1424


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1488


How to export quicktest professional (qtp) results to an .xls file?

593


What is the pros and cons between QTP and Rational Robot

3281


how to disable the pop ups through QTP using a script

1720






How does qtp identify the object in the application?

533


Can anybody post some real time scenario in qtp? please its very urgent.

1799


Have you faced any problems with object repository?

590


What is difference between design time and run time data table?

585


How is a Step generator used in UFT?

653


What do you mean by checkpoints in qtp?

556


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1949


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1443


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1419


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?

572