Forum Discussion
Revathi1522
8 years agoNew Contributor
assert context.request, 'Request is empty or null'; assert context.response, 'Response is empty or null'; def parsedJsonResponse = new groovy.json.JsonSlurper().parseText(context.response); def testSuite = messageExchange.modelItem.testStep.testCase.testSuite; def linkFromProperties=testSuite.getPropertyValue("links"); String link = parsedJsonResponse.links log.info "$link" def id = link.substring(link.indexOf("communication-interface/")+24, link.length()) log.info id //set newly generated id to test suite properties testSuite.setPropertyValue("id", id); This the code i hav eused
nmrao
8 years agoCommunity Hero
Based on the information provided in the script, there is no way to get error mentioned in the question as there is no where "testRunner" is present in the script.