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.

How to extract empty tag values into a data bank

Neil
Neil Posts: 38

Hello,
tool: SOA test 9.9

PART 1
I am extracting a value to data data, sometime the data is expected to be empty.
The data bank throws an exception that: No nodes found.

I want to retrieve some value even though the value is empty.

I tried to go into option of data bank and set extract empty value as 'a' - But it did'nt work

PART2

for the below x-path , The assertion returns - No nodes as the value is empty.
/root/documents/item[1]/note/text()

what will be the x-path to extract some 'x' when value in the tag is empty.

regards,
neil

Comments

  • OmarR
    OmarR Posts: 231 admin

    Hello Neil,

    Have you had a chance to look over the example in the SOAtest Userguide? There is a great example on how to handle empty/missing elements:

    The example may also be found in the help content with in the tool!