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 |
Explain how you can find length of array in qtp?
i have qtp 9.5 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com
i am unable to select an item from combobox using Descriptive programming. can any one give me code for scheduling the ticket using Descriptive programming.
how much space occupies in object respository by default?
In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit?
Hey friends i m facing a problem when i m running my script in qtp it waits for about 5-10 secs before starting execution why it is so can any one solve my problem .Previously it was running fine
in one page we have 100 links i have to click the 99th link how can i click the 99th link.
4 Answers GK Technologies, IBM,
When Object Repository is available what is the necessity of having Descriptive programming which needs more scripting efforts.
How to save your test using quicktest professional (qtp)?
WHO IS THE BEST FACULTY FOR QTP IN HYDERABAD? A) NAGESHWAR RAO- MINDQ B) SURESH REDDY -SMART SOLUTIONS C) SURESH BABU- Q EDGE D) VENKAT - LIVE TECH E) GC.REDDY - HI-TECH CITY F) NONE OR OTHERS
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
how to click on object? (with out knowing the object details) for ex: in a webpage one link is available.i want to click that link by using one menthod through qtp?