Return Live response dynamically if its from meta Match
search cancel

Return Live response dynamically if its from meta Match

book

Article ID: 76623

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

In the Virtual Service, If there is a META match, the response from the live system should be returned. Is there a way to accomplish this? 

Virtual service returns a virtual response when exact conditions are met and META response for Signature match. 

Environment

All supported DevTest environments

Cause

N/A

Resolution

Add a new key/value to the META response meta data - IsMeta = true, and then in the VSM/ VS Image Response Selection step you can add an assertion to verify if you got the value isMeta=true.

Steps to follow:
**********************
In the VSI META response  add new meta data key to be returned -> isMeta=true

 



and then in the VSM/ VS Image Response Selection step you can add an assertion to verify if you got the value isMeta=true.



 

Change  the next step to go to the Live Invocation Step when it finds the string "isMeta=True".

Expected Result:
When the META response is returned, the assertion will be fired and the request will be sent to the live system. 

Attachments

1558693777293000076623_sktwi1f5rjvs16mcp.png get_app
1558693775329000076623_sktwi1f5rjvs16mco.png get_app