【发布时间】:2019-02-25 15:23:41
【问题描述】:
我正在使用带有 groovy 的 soapui 进行自动化 api 测试,我发布了一个请求 REST,这是我的回复:
{`enter code here`
"firstname": "aaa",
"lastname": "bbb",
"address": "test",
"city": "city",
"country": "country",
"default": "false",
"id": "326"
}, {
"firstname": "ddd",
"lastname": "eee",
"address": "test",
"city": "city",
"country": "country",
"default": "True",
"id": "67"
}, {
"firstname": "hhh",
"lastname": "yyy",
"address": "test",
"city": "city",
"country": "country",
"default": "false",
"id": "345"
}, {
"firstname": "ooo",
"lastname": "hh",
"address": "test",
"city": "city",
"country": "country",
"default": "false",
"id": "3211"
},
我想恢复默认为“true”的用户的id
【问题讨论】:
-
搜索 JsonSlurper 示例
标签: api groovy automation soapui