0
我得到以下JSON响应:断言在JSON响应
{"participantUID": "000000000004871"}
我想要做的participantUID断言。
我的代码:
def ResponseMessage = messageExchange.response.responseContent
def jsonSlurper = new JsonSlurper().parseText(ResponseMessage)
assert jsonSlurper.participantUID == expectedparticipant
,但我得到的错误:groovy.lang.MissingPropertyException: No such property:
请帮助我。感谢
'println''ResponseMessage'来验证您是否得到预期的结果。 – Opal