Postman测试接口添加断言

利用Postman测试接口:   测试接口: https://www.v2ex.com/api/topics/hot.json   添加断言:   tests['状态码必须是200'] = responseCode.code ===200; var res = JSON.parse(responseBody); console.log(res.length); tests['必须返回9条数据'] 
相关文章
相关标签/搜索