Use Live Execution Mode Whenever There is a Meta Match

Document ID : KB000107103
Last Modified Date : 19/07/2018
Show Technical Document Details
Introduction:
When a virtual service request has a meta match, the meta response is always returned. The stand-in mode will never be used because the meta response matched (against either OPERATION or SIGNATURE, whichever was selected).

Stand in works well when there is no match whatsoever, but it is sometimes desirable to have the same behaviour when there is no specific match.
Question:
How can I invoke the Live system whenever a service has selected the meta response?
Environment:
All supported DevTest versions 
Answer:
To address this, one may add a scripted assertion to the VS Image Response Selection step, as the last assertion. The purpose of this assertion is to detect whether the select response is the meta response or a specific response. 

This assertion should be configured to call the Live Invocation step when returning true.

The script used is 
if (testExec.getStateObject("lisa.vse.matched.transaction") instanceof com.itko.lisa.vse.stateful.model.TransactionNode)
    return true;
else 
    return false;