Forum Discussion
ilovechiku
10 years agoContributor
Can you use
messageExchange.modelItem.testStep.testCase.setPropertyValue( "My property", "The new value" )
to get properties back to next request and next assertion of the response?
wjblazek
9 years agoOccasional Contributor
Script assertions can also access property step properties through the messageExchange object:
def var = messageExchange.modelItem.testStep.testCase.getTestStepByName("propertyStepName").getPropertyValue("propertyName")
messageExchange.modelItem.testStep.testCase.getTestStepByName("propertyStepName").setPropertyValue("propertyName", propNameNewValued)
It would be good to add this to the "Tips & Tricks" page too.