Paramanand_Ghod
15 years agoContributor
Can we use groovy scripting in property transfer?
Hi
Through property transfer I have transferred the result in the response to Property created in test suite. But the results itself is another response, from which I have to transfer the number '17430' only. Is it possible to write the groovy script in the property transfer? Or is there any other way to transfer '17430' value.
SOAP Response:
<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 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns1:executeBOResponse xmlns:ns1="http://webservice.bis.com/">
<result xsi:type="xsd:string"><AddCandidateBOResponse><CandidateId>17430</CandidateId></AddCandidateBOResponse></result>
</ns1:executeBOResponse>
</soapenv:Body>
</soapenv:Envelope>
Through property transfer I have transferred the result in the response to Property created in test suite. But the results itself is another response, from which I have to transfer the number '17430' only. Is it possible to write the groovy script in the property transfer? Or is there any other way to transfer '17430' value.
SOAP Response:
<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 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns1:executeBOResponse xmlns:ns1="http://webservice.bis.com/">
<result xsi:type="xsd:string"><AddCandidateBOResponse><CandidateId>17430</CandidateId></AddCandidateBOResponse></result>
</ns1:executeBOResponse>
</soapenv:Body>
</soapenv:Envelope>