How can I datasink all the values of a given parent when they have the same name?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I datasink all the values of a given parent when they have the same name?
I am currently trying to run a Data Source loop test that will pull multiple child values from one parent value:
Example:
<employeeList>
<employeeId>Z62376</employeeId>
<employeeId>Z37464</employeeId>
<employeeId>Z37104</employeeId>
<employeeId>Z32160</employeeId>
<employeeId>Z30336</employeeId>
<employeeId>Z30312</employeeId>
<employeeId>Z30288</employeeId>
<employeeId>Z30264</employeeId>
<employeeId>Z30240</employeeId>
<employeeId>Z30216</employeeId>
<employeeId>Z30192</employeeId>
</employeeList>
Is this possible to iterate through each of these employeeId values to then search based on each one with a different method?
Thanks for any help you can provide!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
Doesn't it work out of the box with the XML Datasource?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works if I know how many employeeIds will be returned, and I create a property for each. I was just hoping there was a way to retreive all the information without creating a property for each column. (See attachment)
Also, I tried using a wildcard for the "Column XPaths:" but it would not return any values.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had a similar situation recently and i just created a large number of properties to get around this which is NOT an efficient, rigorous way of doing it. So if anyone knows an approach to handle this in a more rigorous approach i'd be very grateful!
Cheers,
Richie
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Spent some time on it. I am pretty sure this is a bug. I created a support request for it. Will keep you posted!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Lucian - Will the fix be for using a wildcard value in the Column XPath of the DataSource test step?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still waiting for an answer for my support ticket...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @Lucian, Thanks for the update and i had a similar issue mentioned here.
expexcting a reply from smartbear on the bug and it would be great if they do a point release with the fix.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
This is the answer I received for my support ticket:
Unfortunately, it's a bug. We have registered it in our system - RIA-7733.
I've linked your case to it to be able to notify you when it's fixed.
Kirill Zakharov
SmartBear Customer Care
