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
What is debugging? How you debug your script?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
what is meant by source control?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
Why to use descriptive programming?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
What are the benefits of qtp?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
What are the advantages of qtp?
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
What is object spy in quicktest professional?