Service Virtualization

Expand all | Collapse all

Can anybody give me the solution for saving the REST POST content in a variable?

Jump to Best Answer
  • 1.  Can anybody give me the solution for saving the REST POST content in a variable?

    Posted 01-31-2017 10:22 PM

    I would like to store REST API Content in a variable and want to use after invoking the API.



  • 2.  Re: Can anybody give me the solution for saving the REST POST content in a variable?

    Posted 02-01-2017 08:07 AM

    Hi Venkata, 

     

    In which product are you trying to do this in?

     

    Best regards,

    Taylor



  • 3.  Re: Can anybody give me the solution for saving the REST POST content in a variable?
    Best Answer

    Posted 02-06-2017 09:50 PM
      |   view attached

    Hi Siva,

     

       Create a simple step call "Output log message" and add REST POST content, create a filter to save response to a property. Then you can use this property in REST step content tab and also in further test steps where you want to call the REST Post content details.

       I have attached sample test case with the details. Hope it will address your issue.

     

    Thanks

    Srikanth

    Attachment(s)



  • 4.  Re: Can anybody give me the solution for saving the REST POST content in a variable?

    Posted 02-07-2017 11:40 PM

    Thanks Srikanth, it worked for me.



  • 5.  Re: Can anybody give me the solution for saving the REST POST content in a variable?

    Posted 02-07-2017 06:46 AM

    Did Srikanth's recommendation and sample test case answer your question?

     

    Regards,

    Reid