Service Virtualization

 View Only

 Getting diferents reponses with the same request

Jump to Best Answer
Julio Ramos's profile image
Julio Ramos posted Feb 17, 2021 12:53 PM
Hi SV Community.

How i can create a SV using RRPairs loading one request and various responses? and then send the requests to the SV getting ramdonly or in a sequence the responses loaded?
Vaibhav Jain's profile image
Vaibhav Jain Best Answer
Hi Julio,

There are multiple ways to achieve this, refer to below link for one of such implementation
https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=dc4e0386-4132-41cd-8873-c92ae352f93d&CommunityKey=94bda077-625b-4914-8ac3-c88a06c2cc23&tab=digestviewer#bmdc4e0386-4132-41cd-8873-c92ae352f93d

Thanks
Julio Ramos's profile image
Julio Ramos
Thanks Jain,

The content in the link is very helpful and an interesting way to handle this escenarios.

Regards.

Julio Ramos
Vaibhav Jain's profile image
Vaibhav Jain
Glad to hear it was helpful.

Happy to help :)

Thanks
Premalatha Gadde's profile image
Broadcom Employee Premalatha Gadde
You can also select "Allow Duplicate Specific Transactions" in the META transaction as in below screenshot to get round robin responses when you have same specific transaction but different responses.

Also look at the community post https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=ba0b6ad3-8175-4a9e-884b-111403f31a83&CommunityKey=94bda077-625b-4914-8ac3-c88a06c2cc23&tab=digestviewer#bmba0b6ad3-8175-4a9e-884b-111403f31a83.
Julio Ramos's profile image
Julio Ramos
Hi Premalatha, thanks for you adding your answer to my question.

Yes, this is rigth, i have been testing just selecting this allow duplicate transactions config but when i send my request the four responses to my single request are arriving in a sequencial order, one behind other. We need the one more dynamic behavior and also can work it when set the learning mode on execution.

Regards,

Julio C. Ramos