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
How are actions and functions different in QTP?
Explain the concept of object repository and how quicktest professional recognises objects?
1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible
Where is the Bitmap checkpoint information stored?
What is the basic concept of quicktest professional?
What is a programmatic description?
What are the key elements available in test result window?
What are benefits of qtp?
Explain how Selenium is different from UFT?
How to find array size in qtp?
How does quicktest professional identifies the object in the application?
What is business process testing(bpt) in qtp?
How does qtp identify gui object?
explain abt dyanamic changing object with example?
How can you write the scripts that operate on different objects depending on run-time information?