Run test steps depending on overall verdict

Hallo,

We have the following situation that we cant find a nice solution for:

In a testplan we want to include steps that should always run, usally near the end of a testplan. These test steps have to perform a different task depending on the verdict of all previous steps. For example to print a ‘pass’ or ‘fail’ label. Or to make a http request.

We have tried the following:

  • Make a result listener, this way it can reach the test plan verdict, but handling failed attempts gave us issues.
  • Put every test steps where it was dependent on, in a sequence. It technically works, but limited to only one of these cases. Or leads to much bloat in the testplan
  • Retriever the ‘current’ plan verdict from the result listener. This did not cover all steps/sequences since it is limited to what we handle by our result listener.

None of these attempts do cover our needs. Nor have we been able to find a different way with an instrument/teststep.

What could be our best approach to the problem?