Service Virtualization

  • 1.  how to read response returned by VSI

    Posted Dec 11, 2017 01:03 PM

    I want to retrieve the json response that vsi is ending for particular request in my VSM so that i can modify it accordingly and respond as per my request

     

    When i checked value of lisa.vse.response property its set to [TransientResponse{binary=false, body=<null>, charset=UTF-8, metaData=HTTP-Response-Code=200, transaction=null}]

     

    how can i store this response into a property and modify it?



  • 2.  Re: how to read response returned by VSI
    Best Answer

    Posted Dec 13, 2017 08:21 AM

    Is there a specific issue in the VSI that is preventing it from returning the response data you need?

     

    lisa.vse.response is an object of type List. Within this list are the transient responses (objects) that were selected by the vsi.

     

    This link shows some techniques: How to manually set property "lisa.vse.response"?  

    Also, search using lisa.vse.response may provide additional techniques for manipulating the responses.