Hi Team,
I use Postman scripts the HTML and JSON response.
My Script looks like below
var jsonData = pm.response.json();
pm.test(“Database Connection”, function() {
pm.expect(jsonData.HealthCheck[0].status).to.eql(“success”);
});
How do I create a custom message if the above assert condition is failed.
Something like “Database is not up” or “Database is not available”
Can we do that ?