Service Virtualization

  • 1.  JSON response gets corrupted in VSI when adding {{}} to any element

    Posted Jun 27, 2017 07:31 AM

    Say form the request, I have an argument InputA. I'm trying to incorporate that value into the JSON response which is in JSON format by giving {{response_InputA}} in the 'value' field of the JSON Tree. 

     

    When I return back to the request after toggling to other images or when re-logging into workstation, theJSON response vanishes, leaving behind only a '{}' . 

    Same is the issue when using a returned value from Match Script as a property in response.

     

    It shows an error "Payload types incompatible." ----Suggesting that the {{}} is making the JSON response incompatible to protocol.

     

     

    Response Meta Data:

     

    HTTP-Response-Code200
    HTTP-Response-Code-TextOK
    ServerLISA/Virtual-Environment-Server
    Date{{=httpNow()}}
    X-Powered-ByLISA/{{=lisaVersionString()}}
    Content-Typetext/json
    Content-Length39


  • 2.  Re: JSON response gets corrupted in VSI when adding {{}} to any element
    Best Answer

    Posted Jun 27, 2017 02:09 PM

    It may be best for you to open a ticket as this is unusual and unexpected. Someone from the support team will need to see a demonstration of this behavior.