Ask a Question

How to use testSuite.removeTestCase

SOLVED
jkrier
Regular Contributor

How to use testSuite.removeTestCase

Does anyone know the syntax for testSuite.removeTestCase? I've tried several things and none work. I just want to be able to remove a test suite from inside a testsuite startup script and the code completion shows this method as available.

 

I have a startup script in a testsuite that imports a testcase. After it runs I would like to add to a teardown script testSuite.removeTestCase("mytestcase") or however it works.

2 REPLIES 2
PaulMS
Super Contributor

 

from an old thread

testSuite.removeTestCase( testSuite.getTestCaseByName( "TestCase 1" ))

 

https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-remove-testcase-using-testSuite-Teardow...

jkrier
Regular Contributor

Thanks Paul, I tried searching "remove testcase from testsuite" and was unable to find anything. Maybe I am searching incorrectly. Anyways, I really appreciate it, this works just as I need it to.

cancel
Showing results for 
Search instead for 
Did you mean: