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
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
Explain different checkpoints in qtp.
Which functionalities of QTP used in banking project?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What are the different types of recording modes?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
How can i check items sorted or not in a weblist ? Give me the script for this...
How to suppress warnings from the test results page?
What Folder Structure following in Keyword Driven Frame work?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
What is Curd testing?
What are the steps involved in recovery scenario wizard?
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
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
In what occasion we can specify global sheet and action sheet?