How to create Userdefined Function.Please write the steps
ans also provide example where exatcly we use it.
Answer / 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 |
What is the difference between two actions?
what is the use of VIRTUAL OBJECTS? explain ?
10 Answers ABC Infotech, IBM, TCS,
How will you check that your test cases covered all the requirements?
how to test Web application using QTP software
hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
What is the difference between client server application and web based application?
Tell me few important difference Between QTP and WinRunner?
Difference between keyword driven test and DDT?
where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code
when there is a task that gets repeated in multiple scripts what do you do in QTP?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
Wher to use DATA TABLE METHODS in Qtp?What is the use of it?