【发布时间】:2021-03-06 04:47:18
【问题描述】:
我正在编写 Postman 测试用例。我从以下测试用例中收到错误
pm.test("Response to have expected data", function () {
pm.expect(documentIdArray).to.have.members(['5868', '4', '5874']);
});
There was an error in evaluating the test script: Error: expected [ '4837', '4', '5874' ] to have the same members as [ '5868', '4', '5874' ]
【问题讨论】:
-
documentIdArray的值是多少,如何设置?您在这里遗漏了一半的信息。
标签: testing postman postman-testcase