How to load the object repository at run time?

Answer Posted / krishna reddy

Hi We can call the TSR file in runtime and in 8.2 and 9.0
also.

How means.. i am giving one function

Public Function UDF_ORUpdate(g_ActName,sv_qtFileName)
Dim qtApp
Dim qtRepositories
Set qtApp = CreateObject("QuickTest.Application")
Set qtRepositories = qtApp.Test.Actions
(g_ActName).ObjectRepositories
qtRepositories.removeall
qtRepositories.Add sv_qtFileName

End Function

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

UFT 12.02 which ALM version will support

965


How do you configure QTP AND Test director?

1466


How can i initiate the objects to find uniquely in OR

1440


Shall we add Local Repository to shared object repository,if yes,how we add

5615


What does it mean when a check point is in red color? What do you do?

546






What is object repository in qtp?

540


when will you do debug your script? and explain that process?

1420


Whats the realtime QTP testing process

1973


How can i check items sorted or not in a weblist ? Give me the script for this...

1551


give me the code to save all messages of inbox of gmail into a folder and notepad

1594


what QTP Options do you know?

2901


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

1605


What is QTP scenario.

1704


How to use actions in qtp ?

567


How do you create regression test packs?

588