Test by passing data to different attribtes of same xml through excel
i am having a scenario where i have same response for below two type of request.
So i need to pass the two types of request data through excel using groovy ,pls help asap
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://schemas.microsoft.com/LiveSearch/2008/03/Search">
<soapenv:Header/>
<soapenv:Body>
<sear:SearchRequest>
<sear:parameters>
<sear:Country>India</sear:Country>
<sear:City>BH</sear:City>
<sear:Sources>
<!--Zero or more repetitions:-->
<sear:Key></sear:Key>
</sear:Sources>
<!--Optional:-->
</sear:parameters>
</sear:SearchRequest>
</soapenv:Body>
</soapenv:Envelope>
request 2
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sear="http://schemas.microsoft.com/LiveSearch/2008/03/Search">
<soapenv:Header/>
<soapenv:Body>
<sear:SearchRequest>
<sear:parameters>
<sear:Country></sear:Country>
<sear:City></sear:City>
<sear:Sources>
<!--Zero or more repetitions:-->
<sear:Key>23</sear:Key>
</sear:Sources>
<!--Optional:-->
</sear:parameters>
</sear:SearchRequest>
</soapenv:Body>
</soapenv:Envelope>
Respnse
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<sear:Respnose>
<sear:Country>India</sear:Country>
<sear:City>BH</sear:City>
</sear:Respnose>
</soapenv:Body>
</soapenv:Envelope>