check if the response JSON includes certain text
Tests that the response JSON includes text:
Mobile Number
pm.test("Body matches string", function () {
    pm.expect(pm.response.text()).to.include("Mobile Number");
});
The response JSON
{
    "status": {
        "code": 400,
        "text": "Mobile Number is required"
    }
}
by Valeri Tandilashvili
4 years ago
Postman
postman tests
1
Pro tip: use ```triple backticks around text``` to write in code fences