Deepak Gupta
Deepak Gupta

Reputation: 21

How do I assert an Integer value against a String value

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

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58058

Here you go:

* def responseA = { "auditId": 100 }
* def responseB = { "message": "auditId 100" }
* match responseB.message contains responseA.auditId + ''

Upvotes: 1

Related Questions