通过空手道,我如何断言节点不存在?

时间:2020-08-12 08:18:40

标签: karate

在json净荷下方,如何断定像空手道那样不存在D节点。

{
DTO:{
content : [
A: "";
B: "";
C:""
]
}
}

1 个答案:

答案 0 :(得分:1)

阅读文档:https://github.com/intuit/karate#fuzzy-matching

* def response = { foo: 'bar' }
* match response == { foo: '#present', baz: '#notpresent' }

您的示例不是格式正确的JSON,请不要再这样做。