Service Virtualization

 View Only
  • 1.  Looped responses for a single Request XML

    Posted Jul 30, 2018 01:59 PM

    I'm looking to setup looped responses for a specific request XML for REST protocol. 

    For a single request XML, for the first trigger, Response A has to be sent back, for the second trigger, Response B, and for the third trigger, Response C. For the fourth trigger, it has to loop back to Response A. 

    Is there a way to achieve this with/ without scripting?



  • 2.  Re: Looped responses for a single Request XML

    Posted Jul 30, 2018 02:56 PM

    Hi,

     

    please enable "Allow Duplicate Specific Transactions" in the meta of the logical transaction like below. And follow the below pattern,

    First Trigger:      Response A----from Exact/Specific transaction 1

    Second Trigger: Response B----from Exact/Specific transaction 2

    Third Trigger:     Response C----from Exact/Specific transaction 3

    Fourth Trigger:   Response D----from Exact/Specific transaction 4

     

    Hope it will for you.

     

    Best Regards,

    Venkata Yedida 



  • 3.  Re: Looped responses for a single Request XML

    Posted Jul 30, 2018 02:59 PM

    Good example shown above.

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

     

    DevTest controls the response loop using an internal mechanism; therefore, redeploying the service, stop/start of the running service, and stop/start of the VSE manually resets the response loop to 1.