bc1234
13 years agoNew Contributor
how to SOAP respose based on criterion then send to next
Hi,
I have the following response from one of SOAP Request:
<Resposne>
<Planname>test1<Planname>
<Price> 20<Price>
<Country>VT<Country>
<Planname>test1<Planname>
<Price> 23<Price>
<Country>US<Country>
<Planname>test1<Planname>
<Price> 200<Price>
<Country>IR<Country>
<Planname>test1<Planname>
<Price> 200<Price>
<Country>BR<Country>
<Planname>test2<Planname>
<Price> 2<Price>
<Country>US<Country>
<Planname>test2<Planname>
<Price> 2<Price>
<Country>BR<Country>
<Resposne>
I need to scan SOAP resposne where <Price> 200<Price> and then send corresponding Country name to next teststep of country field.
If there is two conury having <Price> 200<Price> then any one is fine.
Please note that Response is not always Ordered and sometimes it could be happed that there is no <Price> 200<Price> and in that case we need to send NULL/BLANK to next teststep of country field.
I know this could be acived by Groovy script but not sure how?
I have the following response from one of SOAP Request:
<Resposne>
<Planname>test1<Planname>
<Price> 20<Price>
<Country>VT<Country>
<Planname>test1<Planname>
<Price> 23<Price>
<Country>US<Country>
<Planname>test1<Planname>
<Price> 200<Price>
<Country>IR<Country>
<Planname>test1<Planname>
<Price> 200<Price>
<Country>BR<Country>
<Planname>test2<Planname>
<Price> 2<Price>
<Country>US<Country>
<Planname>test2<Planname>
<Price> 2<Price>
<Country>BR<Country>
<Resposne>
I need to scan SOAP resposne where <Price> 200<Price> and then send corresponding Country name to next teststep of country field.
If there is two conury having <Price> 200<Price> then any one is fine.
Please note that Response is not always Ordered and sometimes it could be happed that there is no <Price> 200<Price> and in that case we need to send NULL/BLANK to next teststep of country field.
I know this could be acived by Groovy script but not sure how?