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 architecture of your project? Can any one answer for this question plz........
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
What is the Difference between copy to action and call to action?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
What is the basic concept of quicktest professional (qtp)?
when u script reveiwing in which area u more concentrates?
What will be happen if i load object repository at run time, but it has already associated.
What is regular expression?
How to use checkpoints in qtp ?
How many types of Automation frameworks are there in UFT? Describe them.
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
Explain how you can find length of array in qtp?
How would you export a script from one pc to another in qtp?
Why is Client side image is preferred over server side image?