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
Explain different types of action in qtp?
How to import a test case present in ".xls" file to TD under a Test set?
when to start the automation?
What is the recovery scenario in qtp?
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
What is the difference in testing a client-server application and a web application?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
How to handle the exceptions using recovery secnario manager in quicktest professional?
What are the general steps involved in the data driven framework?
how to test Web application using QTP software
What is the file extension of the code file and object repository file in QTP?
What is qtpro? What is quick test pro?