krogold
7 years agoRegular Contributor
TearDown script not executed
Hi,
I have two testSuites, TS1 and TS2
I'm currently trying to update a TS1 property after a TS2 testCase execution.
If I set a groovy script in TS2 with the following code, it works fine:
def response = context.expand( '${Request 1#Response#$[\'result\'][\'uid\']}' ) testRunner.testCase.testSuite.setPropertyValue("SEQUENCE_UID", response) def target = "TS1" def ts = testRunner.testCase.testSuite.project.getTestSuiteByName(target) ts.setPropertyValue("SEQUENCE_UID", response)
If I set it in TS2 testCase's teardown script area, it does not work ...
any idea ?
sorry, I missed a step.
not a problem any more
does anyone know how to delete obsolete posts ?