I have a similar case as this one: https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/ServiceV-selective-routing/idi-p/106004
Initially I was asked to route the request to a virtual/real service depending on a query string value. I was able to get that done with no problem. Routing option and dispatcher made it to work as expected but now that it's set up like that I have another request.
Dev Team wants me to send the request over real service and if response return a code such as 404, 500, 504 then re-route to virtual service instead.
I just want to confirm if there will be a tool limitation or if is something feasible to create. To be honest I'm not even sure if Smartbear would be able to capture the reponse from the real service to eventually place the values into a dispatcher scripts.
I don't want to say NO! without giving a try.
Feel free to give your opinion!
Check if any method of the MonitorListener event (https://support.smartbear.com/readyapi/docs/testing/handling-events.html) works for your case.
/Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.