How to differentiate between stub response and real response
Hi All,
We are trying to Parasoft Virtualize in our test env, use case is as follows,
If request data is found it in Data repository PS will send stub response back, but if data is not found it will forward the request to real endpoint, .
My query here is how to identify if the response came back is from PS (stub) or from real endpoint.
Is there a custom attribute we can add in the response to identify the diff.
thanks in advance
Comments
-
Hi,
Normally there is nothing in the response to indicate to the calling application if the response was from a virtual asset or from the live server. You could configure the responders in the virtual asset to add some extra data that doesn't come back in responses from the live service. For example an extra http header.1 -
thanks williammccusker, i will test it out
0