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 |
Define Error Pane of UFT?
What is the difference in the global and action sheet in qtp?
Actually How do we use this Smart Identification Technology during Recording mode.
what is test data
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What are "Ordinal Identifiers" and where it is used in QTP. AS FAR AS i KNOW, its is used to identify the object. but i want clarity regarding this.
How are actions and functions different in QTP?
How to retrive XML file data in QTP ? using Script(Chandana)
How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)
In what situations QTP will not recognize the Objects?
In QTP whether is it possible to call a function from one action to another action?