postman——集合——执行集合——测试脚本——示例09——检查响应体的json值

pm.test( "your test name",function() {
var JSONDate = pm.response.JSON();
pm.expect(JSONDate.value).to.eql(100)                       注意:JSONDate.value中value可以换成count、start等json的键
});

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