Service Virtualization

  • 1.  How to get two different custom response  with a single identical request?

    Posted Jun 15, 2017 04:29 PM

    I have got a request message with me.When I invoke it for the first time,I should get  response-1 back and when I invoke the same request second time,I should get response-2.How can it be achieved?



  • 2.  Re: How to get two different custom response  with a single identical request?
    Best Answer

    Posted Jun 15, 2017 05:12 PM

    I believe you need to enable the "allow duplicate specific transactions" during recording and playback.

    Transactions Tab for Stateless Transactions - DevTest Solutions - 10.0 - CA Technologies Documentation  

     

    Some other resources that might help you on this:

    How to respond with Response 2 of  2 in VSE 

    Two responses for one request  



  • 3.  Re: How to get two different custom response  with a single identical request?

    Broadcom Employee
    Posted Jun 15, 2017 05:42 PM

    You can also do this by creating a stateful conversation in your service image.  Pick a field in the request, and use the Request Data Manager to copy that field to "lisa.session.key"  I've used that technique in the past in "retry" situations where the first call fails and the second call succeeds.

     

    --Mike