-->Recovery Scenario manager (Cont...)

Test Run Error:
During the execution of the script, QTP throws an error if an object is not found (or) object description match more than one object (or) object not visible (or) item in the list or menu are not found (or) item in the list or menu are not unique, etc.
Steps to handle test run error:
1.Select Resources --> Recovery Scenario Manager
2.Click on New Scenario --> Click on Next
3.Select the trigger event as ‘Test run error’ --> Click on Next
4.Select the error message from the drop-down (if the exact message is not available, select any error) --> Click on Next
5.Select the recovery operation as “Function Call” --> Click on Next
6.Provide the library file path
7.Define the required function definition --> Click on Next
8.Select the post recovery operation as “Proceed to next step” --> Click on Next
9.Provide the name & description
10.Click on Finish --> Save the recovery file

Application Crash:
During the execution of the script, the application (AUT) crashes will interrupt the execution of the script.
Steps to handle Application Error:
1.Select Resources --> Recovery Scenario Manager
2.Click on New Scenario --> Click on Next
3.Select the trigger event as “Application Crash” --> Click on Next
4.Select the application from the “Running Process” list
5.Click on Add button (Then that application will be displayed in ‘Processes’ list --> Click on Next
6.Select the recovery operation as “Function Call” --> Click on Next
7.Provide the library file path
8.Define the required function definition --> Click on Next
9.Select the post recovery operation as “Proceed to next step” --> Click on Next
10.Provide the name & description
11.Click on Finish --> Save the recovery file

Object State\ Object Event:
The property value of an object in an application match with specific values can be specified at the object hierarchy.
Steps to handle Application Error:
1. Select Resources --> Recovery Scenario Manager
2. Click on New Scenario --> Click on Next
3. Select the trigger event as “Object State” --> Click on Next
4. Click on the hand icon & select the required object --> Click on Next
5. Click on ‘/Remove’ button to add or remove properties
6. Provide the expected values of the properties (Implement the Regular Expression if required) --> Click on Next
7. Select the recovery operation as “Function Call” --> Click on Next
8. Provide the library file path
9. Define the required function definition --> Click on Next
10. Select the post recovery operation as “Proceed to next step” --> Click on Next
11. Provide the name & description
12. Click on Finish --> Save the recovery file
On Error Resume Next: This option is used to proceed from the next line, when error occurs during the execution on the script without any interruption.
Eg: On error Resume next
- - - - - - - - - -
- - - - - - - - - -
Msgbox Err.number & Space(2) & Err.description & Space(2) & Err.Source
- - - - - - - - - -
- - - - - - - - - -
On Error go to 0
On Error Go to 0: It will turn off On Error Resume Next