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

Who uses qtp tool?

568


What is the difference between local and shared object repository in qtp?

547


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1617


What is difference in global and action sheet in qtp?

596


How to use descriptive programming?

600






What is difference between run time object and test object?

545


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

591


can anyone tell me from where i can download qtp demo or crack version

1617


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

1546


What are the different attributes used with regular expression?

537


What is the difference between per-action and shared?

578


What is expert view in qtp?

573


What is checking bitmaps?

544


what is the diffrence bw qtp architectute and qtp framework?

1532


How many types of recording modes are there?

587