Submit and vote on feature ideas.

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)

Options

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:

Answers

  • williammccusker
    williammccusker Posts: 643 ✭✭✭
    Options

    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.

  • MarcosGuedesPwC
    Options

    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.

  • williammccusker
    williammccusker Posts: 643 ✭✭✭
    Options

    Great new! Glad it worked!

Tagged