03-06-2009, 03:28 PM
Hi,
The below code works for load the OR dynamically.
-------------------------------------------------
The below code works for load the OR dynamically.
Code:
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
LoadOR="C:\Documents and Settings\vmotukuri2\Desktop\Resource.tsr"
Set qtTestResources = App.Test.Settings.Resources
qtTestResources.ObjectRepositoryPath = LoadOR
qtTestResources.SetObjectRepositoryAsDefault
Set qtTestResources = Nothing
Set App=NOTHING