what is functions in qtp?i know the userdefind &bulit
funation or i know that Private public function ?plz tell
me what is funations in qtp?how to create a funation in qtp
Answer Posted / pankaj sharma
1.Function in QTP : Function in QTP if nothing but the set
of line of code written in .vbs , .txt or in .qfl format to
which we pass n number of parameters and it return one
value .
You can add function in QTP using navigation as :
Setting > Resources
Where we can add user defined function which will be
accesible every where in QTP Suite .
To create funtion in QTP we can use funtion generator
option given in in QTP where we can set input and output
values also insert > Function Defination Genetator
Check a small example below
Call sum(8,4)
Function sum(x,y)
sum=x+Y
MsgBox sum
End Function
For any further doubt you can directly come to me on my
blog
http://quality2deliver.blogspot.com/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is checkpoints for quicktest professional (qtp)?
Explain the benefits of quick test pro(qtp)?
What are the 3 main stages involved in testing with qtp?
How smart identification works in qtp ?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
what is the frame work in J-meter?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
How to find the length of the string in qtp?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
How is UFT 11.5 version different from UFT 12.0?
Is it possible to call from one action to another action in qtp?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
How to create runtime property for an object?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?