FredrikWiden
10 years agoNew Contributor
Removing test suites and test cases in groovy
Hello!
I was recently handed a little project to generate some unit tests in SoapUI automatically for REST requests. We want to do this automatically since the services beeing tested can be called on many different levels which means there will be alot of test cases needed where alot of them will contain more or less the same assertions etc.
Now I think I have/can figure out most of this on my own.
But as a first step I would like to "clean up" any old test suites and test cases that have previously been generated in case there have been changes to the services beeing tested. This is likely to happen as they are still under development. Can this be done? Can you remove test suites and test cases in a groovy script?
I have been trying to google removing test cases and test suites using groovy for a few hours now and can't find anything except removing listeners or properties.
I could try to edit the existing ones but some of them might not be needed anymore and I'd like to avoid having manual removal steps if possible.
In case it makes a difference, my workplace doesn't run SoapUI Pro (sadly).
I was recently handed a little project to generate some unit tests in SoapUI automatically for REST requests. We want to do this automatically since the services beeing tested can be called on many different levels which means there will be alot of test cases needed where alot of them will contain more or less the same assertions etc.
Now I think I have/can figure out most of this on my own.
But as a first step I would like to "clean up" any old test suites and test cases that have previously been generated in case there have been changes to the services beeing tested. This is likely to happen as they are still under development. Can this be done? Can you remove test suites and test cases in a groovy script?
I have been trying to google removing test cases and test suites using groovy for a few hours now and can't find anything except removing listeners or properties.
I could try to edit the existing ones but some of them might not be needed anymore and I'd like to avoid having manual removal steps if possible.
In case it makes a difference, my workplace doesn't run SoapUI Pro (sadly).