Validate dynamically response if its from meta

book

Article ID: 76623

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

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

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



<Please see attached file for image>

height="228" src="https://communities.ca.com/servlet/JiveServlet/downloadImage/2-241912048-94263/pastedImage_2.png" width="636">
 



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



<Please see attached file for image>

height="425" src="https://communities.ca.com/servlet/JiveServlet/downloadImage/2-241912048-94264/pastedImage_3.png" width="296">



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