Is there an inbuilt option in DevTest to have the test case to navigate to the first step upon encountering an Error in any of the steps or assertions?

Document ID : KB000094919
Last Modified Date : 03/10/2018
Show Technical Document Details
Question:
The test case has multiple steps and multiple assertions in each of the steps.
Is there an inbuilt option in DevTest to have the test case to navigate to the first step upon encountering an Error in any of the steps or assertions?
Answer:
Out of the box, with a test case, all the test steps have the built-in assertion 'If environment error' and with this option we can specify the action to take or the step to go to if the test fails because of an environment error.
The default is Abort the test, but we can also select a different test step.
The environment error is more about the test step in case it fails to connect to the end-point or if it uses a custom extension that is not available.
The assertions, itself, should not return an error. Depending on the test flow, the assertion will be fired and return true or false, and then decide what will be the next step.
We can also try to use the assertion to verify the HTTP response code. It helps to identify if the response of that step is valid or not and then decide if it should return to the first step.