Service Virtualization

  • 1.  Value changing automatically in VSI

    Posted Aug 14, 2017 08:47 AM

    Hi team,

    I need a timestamp value in VSI response to be configured as "08\/16\/2017 17:14:56". But the response received contains an automatically modified value "08/16/2017 17:14:56". I tried many means like reading the value from request and mapping it to response, storing the value in property and reusing the property in VSI etc. but nothing helped out. Could you please help us on this.



  • 2.  Re: Value changing automatically in VSI
    Best Answer

    Posted Aug 14, 2017 11:26 AM

    Hi Yasaswani, 

     

    Can you please try using two backslash characters because in Java a single backslash is treated as an escape character

     

    To insert a backslash character in the test try using two backslashes - \\

     

    Thank you 

    Neelima K



  • 3.  Re: Value changing automatically in VSI

    Posted Aug 16, 2017 05:34 AM

    Hi Neelima, I am able to generate specified value based on your inputs but when I am trying to use it in the VSI, the value is again changing to the default manner in response and wrong format is responded back.



  • 4.  Re: Value changing automatically in VSI

    Posted Aug 22, 2017 06:06 AM

    Hi team, could anyone please help us on the issue. 



  • 5.  Re: Value changing automatically in VSI

    Broadcom Employee
    Posted Aug 22, 2017 09:35 AM

    Hi Yasaswani,

     

    Is it possible to share a sample project / VSI (after removing all sensitive data) to get a better understanding of the issue you are facing.

     

    Thanks