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..??

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the different actions types of qtp.

571


What are metrics and matrix?

1363


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1487


what is the difference between the modular framework and datadriven frame work

1909


Is the qtp course will help to create a virtual object?

1516






How to export quicktest professional results to an .xls file?

568


Hi ,Can any one pleas explain how to test splash objects using QTP?

1903


Whats the realtime QTP testing process

1991


Describe synchronization point.

577


Explain object spy in qtp.

583


what is the advantages and disadvantages of using functions instead of re usable actions

1426


What are the technics follow in writing VB script?

1529


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1604


how will you load the test cases in ddt?

1596


In qtp, how you can remove the spaces from string?

546