Printer FriendlyEmail Article Link

iTest: How to do response mapping when one parent has multiple children in tabular format

Answer

Sometimes the response from the device looks like below. Here one left-side value needs to be mapped with multiple right-side values.

 

In this scenario, first we need to create a table-response map locating columns as Column width.

 

Using custom query (XPath) we can do one-to-many mapping.

mapped/Tabular/table1/table/row[(col1=' ') or (col1="" and (preceding-sibling::row/col1[.!=""])[last()]=' ')]//col2[.!=""]

Attached a sample response map to demonstrate this scenario.

 

 

Attachments

Product : Velocity Portfolio,Velocity iTest