- 博客(2)
- 收藏
- 关注
原创 postman断言
1、断言响应码为200pm.test(“Status code is 200”, function () {pm.response.to.have.status(200);//括号内可为其他响应码});或者使用tests[“Status code is 200”] = responseCode.code == 200;注:“Status code is 200”:此处的文字信息可以任意定义(填写)2、断言响应码包含指定的字符串pm.test(“Status code name has str
2022-03-22 21:03:54 801
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人