我收到一个图像形式的 API 响应,目前我需要 2 件事。
在邮递员上,我正在验证测试中的响应,如下所示。
pm.test("Content-Type 存在", function () { pm.response.to.have.header("Content-Type","image/png"); });
我想知道在收到响应后如何在赛普拉斯代码中验证标头响应。
javascript postman cypress
cypress ×1
javascript ×1
postman ×1