【问题标题】:Karate assertions response matching assertions are failing [duplicate]空手道断言响应匹配断言失败[重复]
【发布时间】:2020-07-12 14:44:35
【问题描述】:
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."                                      

【问题讨论】:

标签: karate


【解决方案1】:

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

因为 response.error.details[*].message 返回一个数组

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多