Forum Discussion
skjoldan
14 years agoOccasional Contributor
I have found a fix which seems to work.
Through a groovy script I'm using af JSON.Parser for getting the correct information, code is here:
import grails.converters.*
def testRequest = testRunner.testCase.testSteps["bestilling med kunde - W"].testRequest.response.contentAsString
log.info testRequest
//def file = new File("c:/array.txt")
//def text = file.getText().trim()
def text = testRequest
def jsonArray = JSON.parse(text)
def result = jsonArray."array-init"
log.info result
return result
But you need to have the grails files in your soapUI lib.
Through a groovy script I'm using af JSON.Parser for getting the correct information, code is here:
import grails.converters.*
def testRequest = testRunner.testCase.testSteps["bestilling med kunde - W"].testRequest.response.contentAsString
log.info testRequest
//def file = new File("c:/array.txt")
//def text = file.getText().trim()
def text = testRequest
def jsonArray = JSON.parse(text)
def result = jsonArray."array-init"
log.info result
return result
But you need to have the grails files in your soapUI lib.
Related Content
- 10 months agoKimdoengart
- 3 years agomrarkapravo
- 3 years agoprekar
- 2 years agoKellyWiegand
Recent Discussions
- 6 days agoemoya