Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to differentiate between stub response and real response

Options

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

  • williammccusker
    williammccusker Posts: 643 ✭✭✭
    Options

    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.

  • VirtualizeMe
    VirtualizeMe Posts: 3
    Options

    thanks williammccusker, i will test it out