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 |
wht is Automation testing frame work. pls explain it
What is the difference between property and method?
what is the advantages and disadvantages of using functions instead of re usable actions
Hi every body, I am new to QTP.pls help me if anybody knows the solution. Here is my doubt: I have 3 excel sheets in my local drive out of which one is password protected and i want to get the data of all these xL's either by importing or by reading the data finally i have to update this data in the website.(and the site is secured site) I tried by importing all XL"s one by one but couldn't do so. plss send me the code or atleast suggest me the approach. Thanks in Advance Padmaja
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp
Explain Different types of Checkpoints in Quick Test Professional?
How to add verification steps to tests?
How to execute a WinRunner Script in QTP?
Give me brief idea about QTP automation object model?
How to execute a winrunner script in quicktest professional (qtp)?
There is a name "AJAY" how do u count no.of. "A" in that name ?
What is the latest version of qtp?