How to pickup specific row based on index or id from given data source in soap response.
Hi,
I have defined one datasource in a Grid as below
id name city
-------------------
12 ABC Pune
15 XYZ Mumbai
18 EFG Delhi
Based on input request id = 15 xml response should get generated dynamically which will have all the detail of id 15
eg
id name city
-------------------
15 XYZ Mumbai
${#MockResponse#name} this syntax works perfectly but picks up any random value from given table. below is the response snippet
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:examples:helloservice">
<soapenv:Header/>
<soapenv:Body>
<urn:sayHelloResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<greeting xsi:type="xsd:string">${#MockResponse#id}</greeting>
<greeting xsi:type="xsd:string">${#MockResponse#name}</greeting>
<greeting xsi:type="xsd:string">${#MockResponse#city}</greeting>
</urn:sayHelloResponse>
</soapenv:Body>
</soapenv:Envelope>
How to pickup specific row based on index or id from given data source in soap response.
https://support.smartbear.com/readyapi/docs/soapui/steps/data-source.html#multirow
Above link has given example of how to pick the specific row.
To refer to the City property of the second row in the iteration, use ${DataSource#City::1}
but above syntax doesn't work.
can you please help with an example?