I use SOAP UI for testing a REST API. I have a few test cases which are independent of each other and can be executed in random order.
I know that one can disable aborting the whole run by disabling the option Fail on error
as shown in this answer on SO. However, it can be so that the TestCase1
has prepared certain data to run tests first and it breaks in the middle of its run because an assertion fails or for some other reason. Now, the TestCase2
starts running after it and will test some other things, however, because TestCase1
has not had its all steps (including those that clean up) executed, it may fail.
I would like to be able to run all of the tests even if a certain test fails however I want to be able to execute a number of particular test case specific steps should a test fail. In programming terms, I would like to have a finally
where each test case will have a number of steps that will be executed regardless of whether the test failed or passed.
Is there any way to achieve this?