Tricentis Tosca: Recovery & Clean Up Scenario
Recovery Scenarios
A Recovery Scenario is a collection of TestSteps that Tosca executes if particular tests fail.
You can create Recovery Scenarios for one of the following objects:
TestCase folders
TestCases
Recovery Scenarios during execution
You create your Recovery Scenarios in the TestCases section. Tosca automatically applies them during execution ( Recovery). A Recovery Scenario is successful if all TestSteps there in return a positive result.
During execution, Tosca looks for applicable scenarios on the closest level.
If there are several applicable scenarios, Tosca executes them top-to-bottom.
If there is no applicable scenario, or if none are successful, Tosca looks for applicable scenarios on the next-higher level. If there are none, or if none are successful, Tosca moves on to the next-higher level until there are no more levels left.
Tosca moves back to the closest level and looks for the next-higher Recovery Scenario.
Define a CleanUp Scenario
CleanUp Scenarios are alternate scenarios that Tosca executes if Recovery fails, i.e. if the TestSteps in your Recovery Scenarios don't return a positive result.
The goal of Recovery is to fix failing TestStepValues or TestSteps by employing "corrective" TestSteps. CleanUp Scenarios, on the other hand, are geared towards resetting the environment so that the next TestStep has a chance of being successful.
For instance, if your Recovery Scenario closes a browser tab and reopens it, a possible CleanUp Scenario could be:
log out of site
close and reopen browser
navigate to the page
log in
CleanUp Scenarios during execution
You create your CleanUp Scenarios in the TestCases section. Tricentis Tosca automatically applies them during execution. A CleanUp Scenario is successful if all TestSteps therein return a positive result.
If a *** Recovery Scenarios *** folder contains more than one CleanUp Scenario, Tricentis Tosca processes them top-to-bottom.
If none are successful, Tricentis Tosca processes the CleanUp Scenarios on the next-higher level. If there are none, or if none are successful, Tricentis Tosca moves on to the next-higher level until there are no more levels left.
Comments
Post a Comment