How to map repeating elements from xml response to datasink
I've been scouring the doc, and I can't seem to find a good answer here.
Is there a way to map a repeating element from a response into a datasink automatically, rather than having to click getData and manually clicking each one?
So, if I have 25 repeating elements. Widgets again. They all have the same attributes. A1, A2, A3. I want my sink to collect each of the attributes from each of the widgets, but I don't want to have to map it explicitly in the data sink property and the every one of the 25 widgets (x3 attributes) in my response.
example:
<widgets> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> ... </widgets>
In my datasink, I'd like to map these out 1 element to 1 row in excel:
excel row 1 (first widget): att1: abc, att2: xyz, att1: asd
excel row 2 (second widget): att2: abc, att2: xyz, att1: asd
Is there a way to do that?
I've added a feature request. I wasn't sure if I was using the tool correctly, or if I needed to request an enhancement; either way, I put it in! If someone is reading this, please go upvote the feature. ;)
Other similar issues:
- https://community.smartbear.com/t5/SoapUI-Pro/ReadyAPI-Datasink-How-to-save-multiple-rows-from-response-into/td-p/171403
- https://community.smartbear.com/t5/SoapUI-Pro/How-can-I-datasink-all-the-values-of-a-given-parent-when-they/m-p/171466/highlight/false#M39014