Skip to the content.

Stop on error

For each action it is possible to indicate if the script needs to stop when the status of the action is evaluated as an error.

Note: the stop on error flag keeps in mind expected errors, an approach which is commonly used for negative testing.

Below are some examples where the stop on flag has been set to Y

Number Expected error Stop on error Run 1 Run 2 Run 3 Run 4 Run 5
1 N N SUCCESS SUCCESS SUCCESS SUCCESS SUCCESS
2 N Y SUCCESS WARNING ERROR SUCCESS SUCCESS
3 N N SUCCESS SUCCESS red ERROR SUCCESS
4 N N SUCCESS SUCCESS   ERROR SUCCESS
5 N Y SUCCESS SUCCESS   ERROR SUCCESS
6 Y Y SUCCESS SUCCESS   red ERROR
END             red