Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain different types of action in qtp?

1086


How to import a test case present in ".xls" file to TD under a Test set?

1227


when to start the automation?

1940


What is the recovery scenario in qtp?

1061


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?

1151


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

2923


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

8179


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?

2036


What is the difference in testing a client-server application and a web application?

1114


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

2097


How to handle the exceptions using recovery secnario manager in quicktest professional?

1143


What are the general steps involved in the data driven framework?

1023


how to test Web application using QTP software

1801


What is the file extension of the code file and object repository file in QTP?

1109


What is qtpro? What is quick test pro?

1058