pm.test("Body is correct", function () {
pm.response.to.have.body('{"status":{"code":400,"text":"Mobile Number is required"}}');
});
The response JSON{
"status": {
"code": 400,
"text": "Mobile Number is required"
}
}
The test returns true
because the text passed to the test is the same as the response JSON