How to setup Recovery scenarios in QTP/UFT
To handle unexpected errors, popup etc , QTP/UFT uses this feature (also when existing code is not designed to handle this issue)
1. Navigate to Resources > Recovery Scenario Manager

2. Click on below marked icon. Select the trigger (here is Pop up window)

3. Now record the trigger – if required Regular expression can be added. It will add window title automatically.

4. Now select the recovery operation.

5. After recovery operation go to post recovery operation as copied below
