apt.test("响应码为 0", function () {
apt.response.to.have.status(0);
});
报错:响应码为 0: Cannot read properties of undefined (reading 'to')
你响应码是200 不为0 报错很正常 其次 你可以用我们正则的断言 容易很多 或者ai自动生成断言
https://wiki.apipost.cn/docs/http_debug/assertion
https://wiki.apipost.cn/docs/AI/genassertion