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
how can we do the frame work in qtp
Is qtp supports uni-code?
How will you find the current time of the remote machine using QTP script?
Where you get the run time data table?
Why do we use breakpoints in QTP?
Explain about the quicktest professional (qtp) automation object model?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
How many types of run modes are there in qtp?
Where can I find and view run-time data table?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
What is a checkpoint? How many check points are there in qtp?
What is the process of synchronizing qtp and aut?
What are the features and benefits of quick test pro (qtp 8.0)?