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
- 5 years ago
- 2 years ago
- 11 years ago
- 4 years ago
Recent Discussions
- 18 hours ago
- 17 days ago