Forum Discussion

srinivas_das_l's avatar
srinivas_das_l
Contributor
16 years ago

How to remove testcase using testSuite Teardown script ????

Hi All,         Can anyone tell me how to remove testcases using testSuite teardown script ? I can able to add a testcase using the following code , def pname = testRunner.testCase.testSuite.a...
  • omatzura's avatar
    16 years ago
    Hi!

    you need to specify the actual testcase, ie

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

    regards,

    /Ole
    eviware.com