Forum Discussion

spiralilas's avatar
spiralilas
New Contributor
15 years ago

Using a field from a request to fill a response

My question is really simple: I have a mock service that receives an ID in a request and should send the same ID along with other information in the response. How can I reuse the same ID as I received in my response ? I guess I have to use some properties or scripts, but I could not get the syntax (I'm not a programmer). Thanks a lot.

3 Replies

  • sayana's avatar
    sayana
    New Contributor
    Hi,
    Try using property transfer. It is one of the test steps.Right click on test step and then click on property transfer. This enables you to capture the value in the response xml and use it in the request xml.
    hope it answers your question
  • spiralilas's avatar
    spiralilas
    New Contributor
    Thanks for the answer, but does this work even if the request is made by the software I want to test and not by SOAP UI ?
  • logiclife's avatar
    logiclife
    Occasional Contributor
    sayana wrote:
    Hi,
    Try using property transfer. It is one of the test steps.Right click on test step and then click on property transfer. This enables you to capture the value in the response xml and use it in the request xml.
    hope it answers your question



    can you do this for multiple test cases meaning, transfer the property value to a bunch of subsequent test cases that need that value rather than just one test case?