how can we call an external library file in QTP apart from
using the Executefile statement..?? is there any other way
we can call the external library file in QTP..??
Answers were Sorted based on User's Feedback
Answer / nath t
Yes we can associate the library files with out
using "Executefile" statement. But you should use AOM method
Example:
Dim qApp
Dim qLibs
Set qApp = CreateObject("QuickTest.Application")
qApp.Launch
qApp.Visible = True
qApp.Open "E:\Test1", False, False ' Open a test
Set qLibs = qtApp.Test.Settings.Resources.Libraries ' Get
the libraries collection object
qLibs.Add "C:\Utilities.vbs", 1 ' Add the library to the
collection
qApp.Test.Save
qApp.Quit
Set qLibs = Nothing
Set qApp = Nothing
First of all you have to create Quick Test object after
that open the test with the help of Quick Test Object and
also create Libraries object after that you can add ".vbs"
files.
| Is This Answer Correct ? | 5 Yes | 3 No |
How to Analyze the Checpoint results with Standard Checpoint ?
How to perform action on objects, If two objects have the almost the same name ? example : Object 1 : "Entry of Items" Object 2 : "Items" Whenever I ask QTP to perform an action on Object 2 it performs action on Object 1. Note: The two objects are present in an Oracle Application tree.
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
HOW CAN QTP AND TEST DIRECTOR CONNECTED TO THE DATABASE AND WHAT R THE OPTIONS?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
What issues come up in test automation, and how do you manage them?
what are the mandatory properties for a tex boxc (scenario?)
explain all the check point in QTP?
How to use checkpoints in qtp ?
If already everything is tested using White-Box testing, then what is the need of using Black box testing?
What is difference between version 6.5 and 8.2 in QTP?
How to retrive the property of an object?