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
How to use descriptive programming?
Explain in brief about the quicktest professional automation object model?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What are the views available in quicktest professional?
How you will rate urself in QTP in the range of 0 to 5
In qtp, how you can exit for loop?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
What is smart identification in QTP?
How will you check that your test cases covered all the requirements?
what are the utilities and drivers
What is fragmentation and paging?
is it possible to add sheets to excel at runtime
How do we analyze the checkpoint results?
How many add-ins comes by default with quicktest professional?