Recovery Object
Description
Represents the Recovery pane of the Test Settings or Business Component Settings dialog box, which enables you to configure which recovery scenarios to associate with a test or business component.
Object Model
Recovery ObjectRecoveryScenario Object
Remarks
Tip: When working with tests, you can click the Generate Script button in the General pane of the Test Settings dialog box to automatically generate an automation script containing the current global testing options, including those represented by the Recovery object. 
Example
Public Methods
Public Method AddAdds the specified recovery scenario to the specified position.
Public Method FindThe position of the specified recovery scenario.
Public Method MoveToPosChanges the order of the recovery scenarios by moving a recovery scenario from its current position to a specified position.
Public Method RemoveRemoves the recovery scenario that is located in the specified position.
Public Method RemoveAllRemoves all recovery scenarios from the Recovery collection.
Public Method SetActivationModeSets the activation mode for all the recovery scenarios associated with the test or component.
Public Method SetAsDefaultSets the current list of recovery scenarios as the default recovery scenarios for all new tests or business components.
Public Properties
Public Property CountThe number of the recovery scenarios associated with the open test or business component.
Public Property EnabledIndicates whether the recovery mechanism is enabled.
Public Property ItemReturns the recovery scenario item located in the specified position.