16 years ago
Looping based on response
I have to create a test where I send a request and am returned an xml document containing (among other things) a list of item ids in this format:
<Inventory>
[information about inventory]
<Item itemid="someid1"/>
<Item itemid="someid2"/>
<Item itemid="someid3"/>
[more unnecessary info]
</Inventory>
I need to extract those item ids then loop through them calling "DescribeItem" request for each one.
I'm thinking a scripting step that extracts the information from the response to a previous request and then loops calling the "runTestStepByName" for each Itemid but I can't figure out how to do that. How can I do this? I'm using OpenSource soapUI 3.5.
-MichaelJ
<Inventory>
[information about inventory]
<Item itemid="someid1"/>
<Item itemid="someid2"/>
<Item itemid="someid3"/>
[more unnecessary info]
</Inventory>
I need to extract those item ids then loop through them calling "DescribeItem" request for each one.
I'm thinking a scripting step that extracts the information from the response to a previous request and then loops calling the "runTestStepByName" for each Itemid but I can't figure out how to do that. How can I do this? I'm using OpenSource soapUI 3.5.
-MichaelJ