Hirschniesel
10 years agoOccasional Contributor
executing Teststep in error case
Hi,
I worked now for some month with soap-UI. I build my tests allows like the following pattern:
1. create the needed testdata
2. execute the test
3. delete the testdata
This works very fine for me as long as the test ist executed successfully. But if it does not, the test data will be left in the database (I had to test a webservice, which does some work against a RDBMS). And this is not good for me, because some test need a clean databse or at least a database, where the testdata are not stored in. So I searched for a possibilty to execute a teststep independent from the fact, of all assertions are passed successfully or not. Something like a finally block in java. Is there something like this in soap-UI? I currently use version 4.5.1.
Thanks and greetings,
Andreas
I worked now for some month with soap-UI. I build my tests allows like the following pattern:
1. create the needed testdata
2. execute the test
3. delete the testdata
This works very fine for me as long as the test ist executed successfully. But if it does not, the test data will be left in the database (I had to test a webservice, which does some work against a RDBMS). And this is not good for me, because some test need a clean databse or at least a database, where the testdata are not stored in. So I searched for a possibilty to execute a teststep independent from the fact, of all assertions are passed successfully or not. Something like a finally block in java. Is there something like this in soap-UI? I currently use version 4.5.1.
Thanks and greetings,
Andreas