Strange error
Hello!
I want to extract a resopnse from a previous test and to use it in the next test.
This is the code:
import groovy.json.JsonSlurper
import com.eviware.soapui.support.types.StringToStringMap
import groovy.json.JsonOutput
responseContent = testRunner.testCase.getTestStepByName("CreateGroup").getPropertyValue("response")
slurperresponse = new JsonSlurper().parseText(responseContent) //this is the line where the erroe occurs
def confId = slurperresponse.response.toString()
log.info confId
testRunner.testCase.getTestStepByName("DeleteGroup").testRequest.setPropertyValue("groupId", confId)
However when I try to run it an pop-up error appears "groobj.json.internal.Exception$JsonInternalException: unexpected character d" (there's no d charachter at that line and this makes me very confused)
I've saved the code and I've even restarted the aplication.
I don't have much experience with this application but I'm sure this is not normal