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



how can we call an external library file in QTP apart from using the Executefile statement..?? is ..

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 can we call an external library file in QTP apart from using the Executefile statement..?? is ..

Answer / mogal

LoadFunctionLibrary "LibraryNameWithPath"

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Define Error Pane of UFT?

0 Answers  


What is the difference in the global and action sheet in qtp?

0 Answers  


Actually How do we use this Smart Identification Technology during Recording mode.

1 Answers  


what is test data

4 Answers   Wipro,


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,






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.

0 Answers  


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.

2 Answers  


How are actions and functions different in QTP?

0 Answers  


How to retrive XML file data in QTP ? using Script(Chandana)

6 Answers   Wipro,


How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)

6 Answers   Wipro,


In what situations QTP will not recognize the Objects?

6 Answers   Wipro,


In QTP whether is it possible to call a function from one action to another action?

1 Answers  


Categories