Mock/Virtualise only when real service is down
Hi All,
I am newbie to Service V Pro/Virtualization, currently working on a POC to virtualize one of the critical backend services.
For our dev environment, we are planning to mock response, only when back-end service is down i.e. route always to real service at first and if the service returns a specific fault type, then overwrite with mock response.
Can anyone guide me on how to implement the above using Service V Pro?
Thanks
Panneer
Hi,
You can try the conditional routing feature for this. It lets you script. So you have to make a http request to the real server using groovy script and then return route true/false based on the response. This feature is described here http://readyapi.smartbear.com/servicev/routing/script . Hope this helps!
Regards,
Shadid Chowdhury