Forum Discussion

deepakiran's avatar
13 years ago

How to pass response of one service as request of another

Hi All,
I get a response like below from one service:
<systemEvents>
<eventType>
<eventTypeId>providerEdited</eventTypeId>
<description>Provider Edited</description>
</eventType>
<eventType>
<eventTypeId>usernameChanged</eventTypeId>
<description>User Name Changed</description>
</eventType>
</systemEvents>

I need to pass all the xml showing in <systemEvents> to another service in Request.

Can you please tell me how do i store all this xml and pass to another service as request.

Thanks for help

Deepa

2 Replies

  • how about setting it directly?


    def RESPONSE = testRunner.testCase.testSuite.project.testSuites['YourTestSuiteName1'].testCases['YourTestCaseName1'].testSteps['YourRequestName1'].getProperty('Request').getValue();

    testRunner.testCase.testSuite.project.testSuites['YourTestSuiteName2'].testCases['YourTestCaseName2'].testSteps['YourRequestName2'].getProperty('Request').setValue(RESPONSE);