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.
Solved! Go to Solution.
from an old thread
testSuite.removeTestCase( testSuite.getTestCaseByName( "TestCase 1" ))
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.