08-28-2009, 06:32 PM
I have created a recovery scenario for pop-up window. In the 'Recovery' tab of the Recovery Scenario Manager Wizard, I have added call to a VBS file which simply prints that 'Error has occured".
I have ENABLED the scenario in the File-->Settings-->Recovery tab with the option of 'On Every Step'.
I have written a sample script in which I pop up the same window through the menu item of our tool.
When I run the script, the window is popped up but the recovery scenario is not getting invoked.
Note: I know this is not the best scenario which would call for a recovery mechanism. But since I am new to QTP, I want to learn how the recovery mechanism works.
Regards,
Amol
I have ENABLED the scenario in the File-->Settings-->Recovery tab with the option of 'On Every Step'.
I have written a sample script in which I pop up the same window through the menu item of our tool.
When I run the script, the window is popped up but the recovery scenario is not getting invoked.
Note: I know this is not the best scenario which would call for a recovery mechanism. But since I am new to QTP, I want to learn how the recovery mechanism works.
Regards,
Amol