空手道API自动化工具:断言SOAP响应

时间:2020-04-23 07:59:31

标签: automation karate

SOAP响应当前已从预期文件中断言。

有什么办法可以排除一些动态字段?

* def soap_response = read("expected.xml")
* match response == soap_response

断言失败:path / soap:header / soap:time

1 个答案:

答案 0 :(得分:0)

是的,只需使用#ignore

<foo>#ignore</foo>

请阅读文档:https://github.com/intuit/karate#ignore-or-validate