Forum Discussion

krogold's avatar
krogold
Regular Contributor
7 years ago

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 ?

  • krogold's avatar
    krogold
    Regular Contributor

    sorry, I missed a step.

    not a problem any more

     

    does anyone know how to delete obsolete posts ?