测试目标,例如https://mysite.xyz
这是我在邮递员中的测试代码:
pm.test("Response time is less than 200ms", function () {
pm.expect(pm.response.responseTime).to.be.below(200);
});
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
可以将其粘贴在Postman客户端中。但是在Postman Monitor云中失败了。从日志中得到以下消息:
4 15:25:48 Error: ESOCKETTIMEDOUT
5 15:25:48 Failed: Response time is less than 200ms
6 15:25:48 expected undefined to be a number or a date
7 15:25:48 Failed: Status code is 200
8 15:25:48 expected { Object (id, _details, ...) } to have property 'code'
已经在设置页面中选择了Disable SSL validation
。
为什么?