Peeeetertje
5 years agoVisitor
XQuery assertions are broken with SoapUI 5.6.0
Hi all,
Since SoapUI release 5.6.0 it seems like the XQuery assertions are broken. The following error is displayed.
XQuery Match Assertion failed for path [ { for $z in //item order by $z/id return {data($z/price/text())} } ] : RuntimeException:java.lang.NoSuchMethodException: org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery. (java.lang.String,java.lang.String,java.lang.Integer,org.apache.xmlbeans.XmlOptions)
Steps to reproduce
- Ensure the SoapUI releases are installed 5.5.0 and 5.6.0 including the example projects.
- In SoapUI 5.5.0 open the example project named Sample SOAP Project Core
- Select the following testcase Expanded TestSuite - More Than Less Than TestCase
- Start the ServiceSoapBinding MockService
- Run the testcase and verify the run was successful.
- Open the request named Test Request - search in the testcase.
- Add a XQuery Match assertion with the following XQuery expression:
<Result>
{
for $z in //item
order by $z/id
return <price>{data($z/price/text())}</price>
}
</Result>
- Click the Select from current button and verify the following expected result is displayed:
<Result>
<price>1</price>
<price>1.99</price>
<price>2.99</price>
<price>4.99</price>
<price>349</price>
</Result>
- Click the Test button and verify the popup message shows it is Successful
- Save the project
- Redo the steps listed above (except the installation step) with SoapUI 5.6.0
- Verify the testcase will fail on the XQuery assertion with the Error message listed above.
Environment used:
MacOS Cataline (10.15.7)