CCHATTERTON
12 years agoOccasional Contributor
Property transfer from response based on element value
The system I am currently testing returns a list of results for several insurance scheme quote results in each SOAP response. Results are grouped into several <result> elements. Each <result> element contains several child elements with a breakdown of the quote results for that particular insurance scheme. One of these child elements is <schemeCode>, which is a unique two digit identifier. The <result> elements are ordered by price, so the order of insurance scheme <result> elements changes in each response.
I would like to create a property transfer to grab several of the child element values from a <result> element based on the <schemeCode> value that is returned. e.g. I would like to have a property transfer that grabs several child element values from the <result> element which contains a child <schemeCode> element with the value 'SB', regardless of whether the <result> element is the 1st, 2nd, 3rd etc in the response.
Is this possible with xpath? If so how would I go about setting this up?
Hope that makes sense, I am quite new to all this so if I need to clarify anything please let me know.
Thanks
I would like to create a property transfer to grab several of the child element values from a <result> element based on the <schemeCode> value that is returned. e.g. I would like to have a property transfer that grabs several child element values from the <result> element which contains a child <schemeCode> element with the value 'SB', regardless of whether the <result> element is the 1st, 2nd, 3rd etc in the response.
Is this possible with xpath? If so how would I go about setting this up?
Hope that makes sense, I am quite new to all this so if I need to clarify anything please let me know.
Thanks