Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Modify Databank element value (number)
MarcosGuedesPwC
Posts: 7 ✭
in Virtualize
Greetings,
I'm using a REST Data Bank to get a row number from the Endpoint URL (for example /Row/1), and then I need to subtract it by one to use it in a JSON Databank to get the first item (index 0) from a Messaging Client Response.
How can I modify that value before using it?
Thanks
Tagged:
0
Answers
-
Hi,
In XPath the first item in an array should be index 1, not zero. So passing 1 through from the example URL to an XPath should select the first item.
1 -
Greetings,
I was checking the pva response against old data that I had in a txt file. Now I checked against the live data and it's working fine.
Thanks William.0 -
Great new! Glad it worked!
0