4

遇到实际值和预期值相似的单元故障。预期值和实际值都是 json 格式。
但唯一不同的是它们的字节数组。实际值有 419 个字节,预期值有 600 个字节。你能帮助我们如何解决这个问题。谢谢

java.lang.AssertionError: The response payload is not correct! expected:<[
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  },
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  }
]> but was:<[
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  },
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  }
]>
    at post:/products/search:application/json:api-config-200-application/json-FlowTest.munit:assert-on-equals{doc:name=assert that - payload is as expected, actualValue=[
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  },
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  }
], expectedValue=[
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  },
  {
    "type": "abc",
    "customerAccount": "111",
    "id": "ABC"
  }
], message=The response payload is not correct!}(api-apikit-test.xml:31)
4

0 回答 0