通过空手道,我如何断言节点不存在?
Through karate , how can I assert for not existence of node?
在下面的 json 有效载荷中,我如何通过空手道断言 D 节点不存在作为响应。
{
DTO:{
content : [
A: "";
B: "";
C:""
]
}
}
阅读文档:https://github.com/intuit/karate#fuzzy-matching
* def response = { foo: 'bar' }
* match response == { foo: '#present', baz: '#notpresent' }
您的示例不是well-formedJSON,请不要再这样做。
在下面的 json 有效载荷中,我如何通过空手道断言 D 节点不存在作为响应。
{
DTO:{
content : [
A: "";
B: "";
C:""
]
}
}
阅读文档:https://github.com/intuit/karate#fuzzy-matching
* def response = { foo: 'bar' }
* match response == { foo: '#present', baz: '#notpresent' }
您的示例不是well-formedJSON,请不要再这样做。