How to create Userdefined Function.Please write the steps
ans also provide example where exatcly we use it.
Answer Posted / chandu
Hi,
u can create user defined functions in notepad by saving
the file with .vbs extention.
eg:
public function add
x= 20
y= 30
z= x+y
msgbox z
end function
paste the above code in notepad and save it as .vbs ext.
then go to QTP file>settings>resources tab
add the .vbs file there. and then write-- call add---in ur
QTp editor.the use of this is u can reuse the same function
wherever u want. so u can call it multiple times in ur
test.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
In qtp, explain what is crypt object
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
How to save your test using quicktest professional?
What test you perform mostly? Regression or retesting in your testing process?
Explain the check points in quicktest professional (qtp)?
What is fragmentation and paging?
what frame work you are following?
How do know the number of browsers opened?
How to test background color and dynamic images during run time can you put the check point for moving objects?
How to break the object spy ?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
What is the meaning Work bench?
What is post recovery scenario?
I want to do QTP Certification what is the pattern of Question paper.
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..