I would like to check the value from a concrete response header ("Location") as Test Results in Postman. In the Postman's documentation I found examples of how to check the existance of headers with
pm.test("Content-Type is present", function () {
pm.response.to.have.header("Content-Type");
});
But what I'm looking for is something like
pm.test("Location value is correct", function () {
CODE HERE THAT CHECKS "Location" HEADER EQUALS TO SOMETHING;
});
Aucun commentaire:
Enregistrer un commentaire