srinivas_das_l
16 years agoContributor
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.addNewTestCase("Success Case")
Waiting for the response ..
Thanks & Regards,
Srinivas
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.addNewTestCase("Success Case")
Waiting for the response ..
Thanks & Regards,
Srinivas
- Hi!
you need to specify the actual testcase, ie
testSuite.removeTestCase( testSuite.getTestCaseByName( "TestCase 1" ))
regards,
/Ole
eviware.com