我在 SOAP UI 中编写了一个测试用例,它创建一个用户并返回 Id。这是 JsonResponse。通过一个 Groovy 脚本,我需要提取id
{
"schemas":["urn:hid:scim:api:ma:1.0:UserInvitation"],
"urn:hid:scim:api:ma:1.0:UserInvitation":
[
{
"meta":{
"resourceType":"UserInvitation",
"lastModified":"2015-12-22T07:45:30Z",
"location":"https://test-ma.api.assaabloy.com/credential-management/customer/663/invitation/2643209"
},
"invitationCode":"FBXO-SRWS-LKFI-ZKZI",
"status":"PENDING",
"createdDate":"2015-12-22T02:45:30Z",
"expirationDate":"2015-12-22T02:45:30Z",
"id":2643209
}
]
}
我对 Groovy 很陌生。请帮我解决一下这个。