空手道断言响应匹配断言失败

时间:2020-07-10 18:58:01

标签: karate

And match response.error.details[*].message contains <message>
Examples:
  | status | code | programId         | description | id       | type            | message                                                        |
  | 404    | 404  | maxProgramId      | Not Found   | NotFound | validationError | "The value is not found."                                      

Cucumber report showing response matching is failing even though they are same text.

1 个答案:

答案 0 :(得分:0)

尝试使用get [0] response.error.details [*]。message

as response.error.details [*]。message返回一个数组