How to call .vbs functions in QTP? plz Explain indetail
Answers were Sorted based on User's Feedback
Answer / kavs
to call function in QTP go to
test--->settings-->resorces-->add the .vbs file
correct me if am wrong.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / bfakruddin
Above two answers are correct but they forgot to explain
about the differences of those?
1. Call .vbs file
Test Settings-->Resources-->+ button-->show the path of .vbs
file-->Click OK button
Click the "Check Syntax button"
It is available for all actions in the test. If you click
"Set as Default" It will be available for all the new Tests.
In Test Pane.
Call functionname(parameters)
or
var=functionname(parameters)
msgbox var
2. Executefile "path of .vbs" file
It is used to execute the function dynamically but it is
used for only particular action,
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nandishpatil
You can execute a VB Script function using the statement
ExecuteFile "File"
Eg: If you have the .vbs (MyVBScript.vbs) file in the
path "C:\Temp" then the following statement will call the
same:
ExecuteFile "C:\Temp\MyVBScript.vbs"
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anonymous
You can Load the function into the test dynamically using the statement
LoadFunctionLibrary "Path of File"
Is This Answer Correct ? | 0 Yes | 0 No |
How do function returns a value?How can we pass one function value to other function as input
General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?
what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.
Hi, Can any one explain what is mean by Driver Script? is it AOM?
Generic function to search for the unique link in webtable and click on it
hi friends can anyone tell me where can i find descriptive programming material please send me the link also,from which i can download the material
what is risks of testing a project?
1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
how can we return a value from userdefined function for eg 2 functions in func1 iam getting 2 values(a,b) and storing in var(C). now i want to pass that var(c) to another func2 give me the script
what skills needed to be good test automation?