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
Can we create a qtp test from qc?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
what is impact analysis on regression testing?
hi nani my doubt is how does qtp process metrix related to software process.
if numbers are always changing write a script for that
In qtp, explain what is qrs file?
Explain the concept of object repository and how qtp recognises objects?
How to data driven test for Win objects in QTP ?
What is test object?
What is the script for database check point, bitmapchek point, regular expression ?
What are the advantages of parameterization ?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
How do Parameterization and Data-Driving relate to each other in QTP?
wt is the use of multiple questions in QTP
Explain runtime dynamic settings?