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
What is the file extension of the code file and object repository file in QTP?
What is expert view in qtp?
How to attach a file to TD?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
How to add verification steps to tests?
What are the features and benefits of quick test pro (qtp 8.0)?
Can we Test Welcome Screens and Process Images with QTP
Explain the features of quick test pro(qtp)?
What is ‘object spy’ and what is the function of object spy in qtp?
What are the 3 main stages involved in testing with qtp?
Hi All, How to get repeated word in string . Thanks Balaji
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
What is accessibility check point?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?