postman——集合——执行集合——测试脚本——示例05——检查响应时间是否小于某个值

检查响应时间是否小于某个值;

 

pm.test("response time is less than 1200ms",function()
{
pm.expect(pm.response.responseTime).to.be.below(1200);
});

 

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

 

 

 

 

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