4.3.4.XQuery assertion
XQuery assertion (找出XML中的特定元素, 使用XQuery)
Operations
Add Assertion -> Property Content -> XQuery Match
Target
Use XQuery expression to select content from target property and compares the result to an expected value. Applicable to any property containing XML.
e.g.,
declare namespace soapenv='http://www.w3.org/2003/05/soap-envelope'; declare namespace ns1='http://thomas-bayer.com/blz/'; <bic> { for $detail in //ns1:details return data($detail/ns1:bic/text()) } </bic>
Previous4.3.3.Assertions - Compliance,Status & StandardsNext4.3.5.Handling CDATA - using XPath and Groovy
Last updated
Was this helpful?