postman——集合——执行集合——测试脚本——示例04——检查响应状态码中是否包某个字符串

检查响应状态码中是否包某个字符串:

 

pm.test("status code name has string",function()
{
pm.response.to.have.status("OK");
});

 

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

 

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