Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHi,
Actually, we can't decide if this is a bug or intended behaviour. The reason your script isn't working is that testRunner.runTestStepByName only works while the test is running, and the TearDown script runs after the test has completed, and thus is not running any more. A workaround that you can use it to manually run the teststep, which you can do with the following line of code in your TearDown script:
Regards,
Dain
eviware support
Actually, we can't decide if this is a bug or intended behaviour. The reason your script isn't working is that testRunner.runTestStepByName only works while the test is running, and the TearDown script runs after the test has completed, and thus is not running any more. A workaround that you can use it to manually run the teststep, which you can do with the following line of code in your TearDown script:
testRunner.testCase.testSteps['TestStepName'].run(testRunner, context)
Regards,
Dain
eviware support