Service Virtualization

  • 1.  Service virtualization - Dynamic response

    Posted Apr 05, 2017 09:57 PM

    Hi All,

    I have created a Virtual Service which communicates over HTTPs protocol and deployed the image file in a server. 

    Now the case id's inside the response are hard coded. But for my testing, I need to update those case id's in the response on the fly every time when I run my tests.

     

    is there any way I can pass those case id's on the fly through any input file, so every time the endpoint hit, it will get new case id's?

     

    I am using Lisa 7.5.1.

     

    Thanks in advance!



  • 2.  Re: Service virtualization - Dynamic response

    Posted Apr 05, 2017 10:16 PM

    if the case id is part of your request, then you can use magic string to copy the case id from request and return dynmaic response based on the request. 



  • 3.  Re: Service virtualization - Dynamic response

    Posted Apr 05, 2017 10:18 PM

    or use string patterns to generate random case id

     

    String Patterns - DevTest Solutions - 8.0 - CA Technologies Documentation 



  • 4.  Re: Service virtualization - Dynamic response

    Posted Apr 05, 2017 10:33 PM

    Hi Annalakshmi,

    Thanks for your prompt answer.

     

    The only issue with this is, the response get feed into another system which process the response based on the case id.

    So, i need to create the cases in that system before hand.

     

    If i use the string pattern to generate random case ids, then i will not have the exact case ids to create the case.



  • 5.  Re: Service virtualization - Dynamic response
    Best Answer

    Posted Apr 05, 2017 10:53 PM


  • 6.  Re: Service virtualization - Dynamic response

    Posted Apr 17, 2017 11:33 AM

    Soumick,

    Did Annalakshmi's last response help you out with this issue?

    Regards,

    Reid