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 many types of recording modes in qtp? Which will be used when?
How will you check that your test cases covered all the requirements?
How would you export a script from one pc to another in qtp?
Is QTP supports Unix. If yes, then how the test automation is done?
How to analyzing the checpoint results?
How to explain a banking project in interview as a test engineer???
when to start the automation?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
How often were they executed?
Object repositories types, which and when to use?
Without using gui map editor we can recognize the application in winrunner ?
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Are Shared ORs read-only?
Does Low-level recording capture mouse movements?