Nagravision_SA__1
12 years agoContributor
[R]Need to execute the loop on XML Node values
Hi,
In my test scenario, i have a property transfer test step. In this test step i am transferring a publicId value from XML response to another test step. Actually in the xml response there are more than one publicId . My question is that i want to transfer all the publicId values in the XML response to another test step in a loop (one by one). How can i do that ?? Following is the xml response example with more than one id values:-
<ProductTOType xmlns="http://...">
<total_records>2</total_records>
<offset>0</offset>
<version>Unknown</version>
<Product>
<publicId>1206</publicId>
<title>title_CFG</title>
</Product>
<Product>
<publicId>1205</publicId>
<title>title_TBD</title>
</Product>
</ProductTOType>
Thanks in Advance !!
Regards
In my test scenario, i have a property transfer test step. In this test step i am transferring a publicId value from XML response to another test step. Actually in the xml response there are more than one publicId . My question is that i want to transfer all the publicId values in the XML response to another test step in a loop (one by one). How can i do that ?? Following is the xml response example with more than one id values:-
<ProductTOType xmlns="http://...">
<total_records>2</total_records>
<offset>0</offset>
<version>Unknown</version>
<Product>
<publicId>1206</publicId>
<title>title_CFG</title>
</Product>
<Product>
<publicId>1205</publicId>
<title>title_TBD</title>
</Product>
</ProductTOType>
Thanks in Advance !!
Regards