Recovery scenarios are used to handle the unexpected events that might occur while test execution is going on by QTP.
Please find below the steps that have to be followed to create the recovery scenario in QTP.
First of all You have to open the recovery scenario manager. In resources menu you will find recovery scenario manager option. Click on that and you will get to see below window.
Step1: Open Recovery Scenario Manager.
Using recovery scenario manager you can create new recovery scenarios and store it in a file with .qrs extension.
One qrs file may contain multiple recovery scenarios.
To create new recovery scenario, click on the button circled with red color. It will open recovery scenario wizard.
Step 2: Open Recovery Scenario Wizard.
Recovery scenario wizard shows the steps involved in creating the recovery scenario. Click on Next
Step 3: Select Trigger Event.
There are 4 types of the trigger events.
- Pop up window
- Object State
- Test Run Error
- Application Crash
Step 4: Specify the trigger Details.
In this step you have to specify more details about the trigger. For example if you selected pop up window in trigger event above, you will have to provide the title or text of the pop up as shown below.
Step 5: Recovery Operation.
After specifying the trigger event, you have to provide the recovery operation. There are 4 types of the recovery operations.
- Keyboard or mouse operation
- Close application process
- Function Call
- Restart Microsoft Windows
In Post Recovery You can tell what step should be executed after recovery is done by QTP.
You have to give the name to recovery scenario in this step
This is last step. You can add this scenario to current test in this step.
Please note that to activate recovery scenario, you have to go to test settings.
You may also like below topics on Recovery Scenarios.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs