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, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
can u explain relative path architecture framework in qtp?
How can you close the second opened browser?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
How to add synchronisation points in qtp?
How do you synchronization point through DP?
what is run action?
how to prepared for first for the first interview?
What are the factors on which script execution time is dependent?
What are the challenges you faced during you entire life automation ?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
Difference between action & Reusable action?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]