How to call the userdefined functions to script? If i am
stored 'add()' function in Library functions folder. i want
to cal that function in my script.
Answer Posted / murali raju
Instead of add name put the add1 as ur function
name...because add is keyword
Function add1(a,b)
c=a+b
add1=c
End Function 'put the function .vbs file and save it c
drive with the file name addition.vbs
write the below script in ur qtp
ExecuteFile "c:\addition.vbs"
x=add1(2,4)
msgbox x 'it will be prints 6 in the msgbox
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the features of quick test pro(qtp)?
I want to do QTP Certification what is the pattern of Question paper.
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
how will load the object during runtime?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Hi, how can we check or avoid the memory leakage in QTP9.2?
Define virtual object?
What are private functions in QTP? How they can be called from the function library?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
terminal services client
What is keyword view?
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
How to use checkpoints in qtp ?
How to find the path of folder in which the test is saved in qtp?
What is Curd testing?