Ask a Question

How to send empty value from xml (jdbc response) in Property transfer?

OleksandrNone
Regular Visitor

How to send empty value from xml (jdbc response) in Property transfer?

Hello, please help with property transfer step.

If response of JDBC request contains any tag with text (for example, <description>Text</description>), I can use property transfer step to send value "text" to my next steps ("Transfer text content" checkbox)

But if this tag is empty (like <description/>, property transfer step sends full tag name (even if checkbox "Transfer text content" is enabled). How can I send empty value in this case?

Thank you

1 REPLY 1
richie
Community Hero

Hey @OleksandrNone,

Do you want your teststep to be able to handle both empty elements and populated ones, or do you know from your test setup if youre gonna get an empty element or not?
Is this a looping testcase or just a single execution testcase?
Could you alter your query filter to only return populated tags?
Rather than a direct transfer you can transfer to a Properties step and then use groovyscript to manipulate the values extracted if needed

If you can provide more background around what you need, forum users should be able to help

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
cancel
Showing results for 
Search instead for 
Did you mean: