Service Virtualization

 View Only

  • 1.  How to save the message sent by REST Step

    Posted Jun 16, 2026 10:44 PM

    Hi Team,

    I want to save the request message sent by REST step in VSM. Not able to find any property set in TestEvents/Property sections in ITR.

    Have tried few filter options but no luck.

    Could you please suggest a way to save the request.

    Regards

    Rajasekhar



  • 2.  RE: How to save the message sent by REST Step

    Broadcom Employee
    Posted Jun 17, 2026 02:04 AM
    Hi Rajasekhar

    Would you like to save the message (lisa.vse.request or lisa.vse.response)
    as another variable/property or persist it to a file? This could be done
    using a scriptable DPH. Please let me know your exact requirement and I
    will share a sample implementation.

    Regards
    Sankar Natarajan




  • 3.  RE: How to save the message sent by REST Step

    Posted Jun 17, 2026 07:57 AM

    Thank You Sankar.

    I have a REST step in my VSM. After responding from VSI, i will be sending another message to an API using REST step. Want to store the message sent using REST step. Below is the sample json message with variables. Variables will be replaced by actual values before sending. I want to store the actual message sent by REST step. Please suggest a way to store as a variable/property.

    Sample Message:

        {
          "transaction_date": "2021-04-22T18:27:54.057Z",
          "payment_status": "{{status1}}",
          "notification_status": "{{Status}}",
          "status_memo": "string",
          "participant_reference": "{{ref_Value}}"
        }

      Regards

    Rajasekhar




  • 4.  RE: How to save the message sent by REST Step

    Posted Jun 18, 2026 12:53 PM

    Hi Sankar,

    Could you please share the details for this issue.

    Thank You 

    Rajasekhar




  • 5.  RE: How to save the message sent by REST Step

    Broadcom Employee
    Posted Jun 18, 2026 01:13 PM

    Hi Rajasekhar,

    The request sent by the REST step is in Step Request Event but not in a property. I think you configured the request in the REST step which uses some properties from your VS and evaluates before executing the step.

    As the request is not stored in a property, you can use "Output Log Message step" before your REST step and have the same message what your REST step has. When the "Output Log Message step" is executed, its response is in a property and you can use that. This workaround doesn't need any code. See the below screenshots.

    Hope the information helps.

    Regards,

    Prema




  • 6.  RE: How to save the message sent by REST Step

    Posted Jun 18, 2026 02:50 PM

    Thank you Prema. it worked.

    Regards,

    Rajasekhar




  • 7.  RE: How to save the message sent by REST Step

    Broadcom Employee
    Posted Jun 18, 2026 02:54 PM

    Good to hear that it worked Rajasekhar.