Reputation: 21
I have
responseA = {"auditId": 100}
and
responseB = {"message": "auditId 100"}
How do I assert responseB
(string value) contains responseA
(integer value)?
Upvotes: 1
Views: 536
Reputation: 58058
Here you go:
* def responseA = { "auditId": 100 }
* def responseB = { "message": "auditId 100" }
* match responseB.message contains responseA.auditId + ''
Upvotes: 1