for a test in QTP i had choose the object repository as
shared.after completion of some days i want to conduct the
same test again,now the question is HOW TO LOAD THE OBJECT
REPOSITORY. is it possible by descriptive programming.could
any one tell me how many ways we load it and what is the
process?

Answer Posted / capriguy

Dim qtApp 'As Application
Set qtApp = CreateObject("QuickTest.Application")
Set qtRepositories =
qtApp.Test.Actions("Action1").ObjectRepositories

qtRepositories.Add "C:\Documents and
Settings\n\Desktop\arun.tsr", 1

it will work 101% :)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

606


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1346


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

1540


Differences between text and test area checkpoints?

572


Explain different recording modes?

574






How many number of actions possible in qtp?

598


How to get popup error message.

1025


What is the virtual object?

636


How to test results for qtp ?

780


What does mean by Scope of Automation?n How we defined it?

1568


What are the advantages of a Hybrid framework?

595


Explain the difference between check point and output value?

488


Without using gui map editor we can recognize the application in winrunner ?

600


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

519


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

1632