ReadyAPI 3.1.0 - Property Transfer with xQuery throws issue
With the latest update to ReadyAPI 3.1.0, I am getting issues on property transfer steps that used the XQuery path language.
[java.lang.NoSuchMethodException: org.apache.xmlbeans.impl.xquery....
Nastya_Khovrina To give a little background, as I'm not sure that the screen shot will provide significant value. We have a login page (html) that I am scraping to pull a URL that is needed for submitting a form. The expression we are using is
//form[1]/@action
(technically more of an XPath expression); however, this worked in prior versions.
A slightly different example that I'm seeing within assertions. We are making a call to an API and getting back data such as:
Within this API the values can come back in either order, so we use xQuery assertion to check it:
The XQuery Match assertion failed for the following path: [declare namespace ns1='[REDACTED]';
<Response>
{
for $x in //ns1:phoneNumbers/ns1:e/ns1:type/text()
where $x='${#TestSuite#phoneNumberTypeWork}'
return data($x)
}
</Response>]. Class name: RuntimeException; Error Message: java.lang.NoSuchMethodException: org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.<init>(java.lang.String,java.lang.String,java.lang.Integer,org.apache.xmlbeans.XmlOptions).