markgholland
9 years agoOccasional Contributor
Delete Test Suite (and test cases) via groovy script?
Hi, I've searched everywhere and tried SEVERAL approaches, but I haven't had any luck with any of them. Hoping someone may be able to help me out! Here is what my test case looks like: ...
- 9 years ago
Though I've not actually had to do this myself, but assuming that your project object is of the class WsdlProject I think you can just use the following line in your if statement:
testRunner.getTestCase().getTestSuite().getProject().removeTestSuite(genReportTS)
Note: The remove method does not appear in the Groovy editors code completion, but I've seen that a lot. I've always found it easiest to refer the JavaDocs