Forum Discussion

Meinhard's avatar
Meinhard
New Contributor
28 days ago

Get Data Dialog - generated xpath not working

In ReadyAPI 3.57, I am using the get Get Data dialog to retrieve values from previous SOAP responses. In version 3.57 the generated xpath does not retrieve the value anymore, but it returns the whole xml line.

https://support.smartbear.com/readyapi/docs/testing/properties/get-data.html

For example:

<bookstore>
<book category="cooking">
<title lang="en">Everyday Italian</title>
</book>
</bookstore>

The Get Data dialog generates this xpath: "/bookstore/book[1]/title[1]"

In version 3.56, the xpath returns: "Everyday Italian"

In version 3.57, the xpath returns: "<title lang="en">Everyday Italian</title>"

The update caused my tests to fail, because they are unable to retrieve the correct values.
To fix the tests, I have to add "/text()" to each xpath.

No RepliesBe the first to reply