I am just a beginner in QTP. Could any one explain me in
detail how to automate adding two numbers and getting the
result in QTP. Also I would like to parameterize the
inputs. I have tried but getting an error like 'Can't use
sub.....'(can't recollect the exact error)
Answer Posted / ram
you can write function to add two numbers and call in qtp.
file-->New-->function Library
Public function add(a, b)
add=a+b
End Function
Save it where ever u want with add.vbs
Now File-->settings-->Resources-->Add function library--
>click at add(+) button below one button will appear click
that and add the saved library file(add.vbs).
in qtp normal file
write print add(4,5) and u can parameters as your wish.
add this in
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
What are the technics follow in writing VB script?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
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.
Explain types of descriptive programming?
Explain advantages and disadvantages kdf?
Explain the parameter in qtp?
Is it possible to change the values of analog recording?
what is ODC and GDC?
How to creating an output value using quicktest professional (qtp)?
What is data driver in qtp? Where we use it?
What is expert view in qtp?
What are the different types of checkpoints?
what are the utilities and drivers