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
Mention the different actions types of qtp.
What are metrics and matrix?
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
what is the difference between the modular framework and datadriven frame work
Is the qtp course will help to create a virtual object?
How to export quicktest professional results to an .xls file?
Hi ,Can any one pleas explain how to test splash objects using QTP?
Whats the realtime QTP testing process
Describe synchronization point.
Explain object spy in qtp.
what is the advantages and disadvantages of using functions instead of re usable actions
What are the technics follow in writing VB script?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
how will you load the test cases in ddt?
In qtp, how you can remove the spaces from string?