Break test run if a specific step fails

How can I stop executing a test run if some of its steps are being failed? For example, it doesn’t make any sense to send further requests that require authentication, if auth request was failed.

You can use the if condition to check if a step fails and skip further execution when needed. This helps avoid unnecessary requests after a failure. See the docs for examples: Flow control conditions - Apidog Docs

Yes, I thought about it. But if you have, let’s say, 20 requests and 10 of them requires authentication, another 10 don’t and all of them are in a random order - it’s not really convenient to add if condition to every step. It would be far more useful if there was some sort of constraint for every step, e.g. execute a step only if it passes all constraints. This way we could just add a constraint for the step to run only if auth request was successful. Does it make any sense?

You can try setting “On Error” to “End execution” to see if it meets your expectations.

This setting would end the execution completely whereas I’m looking for the ability to run steps selectively depending on the result of another step.

You can wrap the entire scenario in a loop component (set to run once) with a variable to determine if the scenario should exit. Set post-step actions for key steps to update this variable if they fail, then use breakif to end the scenario when the variable meets the exit condition.

Thanks for the ideas!