How to load the object repository at run time?

Answer Posted / sarath

Tried with QTP 9.1 and it works....

Dim qtApp
Set qtApp = CreateObject("QuickTest.Application")
'Add
qtApp.Test.Actions(1).ObjectRepositories.Add "C:\ObjRep.tsr"

'Remove
qtApp.Test.Actions(1).ObjectRepositories.Removeall

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of recording facility are available in quicktest professional (qtp)?

599


Explain types of output values?

559


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1711


how to test load test and block box testing an a web based application pls give ans briefly

1348


What is action? How many types of actions are there in qtp?

607






Explain measuring transaction.

579


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1538


What is the parameterization? Give one example?

587


Explain how Does Run time data (Parameterization) is handled in QTP?

550


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1540


What is qtpro? What is quick test pro? What is a quick test professional?

582


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1675


Is the qtp course will help to create a virtual object?

1512


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

1479