postman——集合——执行集合——测试脚本——示例06——检查响应中是否包含某个header

检查响应中是否包含某个header:

 

pm.test("content-type is present",function()
{
pm.response.to.have.header("Content-Type");
});

 

===========================================================================

 

 

 

posted @ 2020-01-15 15:47  小白龙白龙马  阅读(182)  评论(0编辑  收藏  举报