Forum Discussion
UPC_Broadband_L
11 years agoOccasional Contributor
Thanks for the reply. That does work.
I also managed to work around it (without replacing it) by using the following to transfer variables I wanted:
I also managed to work around it (without replacing it) by using the following to transfer variables I wanted:
import groovy.json.JsonSlurper
def response = context.expand( '${name#Response}' )
log.info "response: "+response
def slurper = new JsonSlurper()
def json = slurper.parseText response
def String stringExecutionId = json.executions.id[0]
log.info "ExecutionId: "+stringExecutionId
testRunner.testCase.testSteps["Properties"].setPropertyValue( "executionId", stringExecutionId );
Related Content
- 4 years ago
- 2 years ago
- 11 years ago
- 3 years ago