What's new

How to verify a particular text in response body usinf postman

Fever

Active member
Staff member
Response Body { "message": "Hi I am 'lakshmi' from 'India'" }

The text 'lakshmi' is provided in pre-request script and I need to verify the same in the response. I don't want to verify like this below

Var message = "Hi I am 'lakshmi' from 'India'"

Since I mentioned lakshmi as global variable how do I verify in the test like " Hi I am "{{name}}" from 'India'"

Continue reading...
 
Top