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 are the flaws in water fall model and how to overcome it?
How do know the number of browsers opened?
How can you exit from an action?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
How many types of status are there?
How to open a new test using quicktest professional?
How many types of recording modes in qtp?
How you calling actions in qtp?
For which type of project the iterative model is suitable?
Is any limitation to xml checkpoints?
How can you identify the browser and its information using the qtp script?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
explain abt dyanamic changing object with example?
what frame work you are following?