09-01-2009, 11:09 AM
Hi Ramesh,
I don't think we can add repository at runtime as we do for library file. but this can be done without from the GUI if you are launching your test using a vbscript.
I don't think we can add repository at runtime as we do for library file. but this can be done without from the GUI if you are launching your test using a vbscript.
Code:
Dim App
Set App = CreateObject("QuickTest.Application")
App.Test.Settings.Recovery.Enabled = True
App.Test.Settings.Recovery.SetActivationMode "OnEveryStep"
App.Test.Settings.Recovery.Add "C:\QTP\Recovery\Navigation.qrs", "Navigation", 1
App.Test.Settings.Recovery.Item(1).Enabled = True