Hi Iakiv,
I guess the question is, how much time you "waste" there.
Normally, the idea is to check all assertions as being independent of each other.
You might either put more stuff into one step – losing transparency about what really caused the problem on the report level.
Or, to get around this might also think of creating a FailFasterPlugin that can let subsequent steps fail if a previous step failed.
Basically in code it could look like:
using "FailFaster"
then "the super criteria must be fulfilled", {
// …
}
and "a subordinate step is checked", {
ensureSuccessOf "the super criteria must be fulfilled", {
// … Do check your stuff …
}
}
Basically, your code in other steps would then only be executed, if the important step succeeded. Otherwise ensureSuccessOf would throw an exception.
Well, just a rough idea … there are different ways, you could implement for such a plugin – and I don't know the specifics of your problem. ;-)
Cheers
Jürgen