Forum Discussion

pawanpadma's avatar
pawanpadma
Occasional Contributor
14 years ago

Capturing actual Soap Request sent

Hi I request some one to help me in this below issue.

Following is the PayLoad submitted:

<xyz xsi:schemaLocation="https://abc.abc.xsd" schemaVersion="1.0" xmlns="https://abc.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>
<campaign>${#TestCase#campaign}</campaign>
<deliveryType>NORMAL</deliveryType>
<description>${#TestCase#description}</description>
<division>${#TestCase#division}</division>
<friendlyFrom>${#TestCase#friendlyFrom}</friendlyFrom>
<fromName>${#TestCase#fromName}</fromName>
<fromDomain>${#TestCase#fromDomain}</fromDomain>
</name>
</xyz >

In the above given payload(Rest Service) i pass the values from test properties file .When i submit the above payload i want to capture the payload with actual values appended to the above payload tags.



def request = testRunner.testCase.testSteps["XML-TC21657"].testRequest
// get the actual messages
def SOAPrequestContent = request.requestContent
log.info("SOAPrequestContent>>>>>>>>>"+SOAPrequestContent)


when i use above script i get payload with $ signs but not the values appended from the properties file.I request any one to help me out in this regard capturing with values added from the properties file

Expected output should be as follows
<xyz xsi:schemaLocation="https://abc.abc.xsd" schemaVersion="1.0" xmlns="https://abc.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>
<campaign>abc</campaign>
<deliveryType>NORMAL</deliveryType>
<description>pqr</description>
<division>mno</division>
<friendlyFrom>efg</friendlyFrom>
<fromName>qwe</fromName>
<fromDomain>omn</fromDomain>
</name>
</xyz >
pawanpadma
Newbie


Posts: 1
Joined: 12 Mar 2012 13:39