postman——集合——执行集合——测试脚本——示例02——检查响应状态码是否为200

检查响应状态码是否为200:

pm.test("status code is 200",function()

{
pm.response.to.have.status(200);
});

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

猜你喜欢

转载自www.cnblogs.com/xiaobaibailongma/p/12196929.html
今日推荐