AnsweredAssumed Answered

How to select a response from multiple responses in virtual service?

Question asked by JUNPINGLI81981123 on Aug 20, 2015
Latest reply on Aug 21, 2015 by JUNPINGLI81981123

Hi,

 

I created a image from multi-response request/response pair hoping to return a regular response when the request is an exact match (all fields/values are exact the same as the request for the image) otherwise returning an error response (like a real service no record found).   My problem is even a different request is used in test client, it returns the regular answer.  My question is 1) where can the exact match be checked? 2) how to return the second response (error)?  If this exact match is checked in the match script, how to check incoming request (hopefully no need to check each field one by one) and it be nice to provide sample script?  Thanks.

Outcomes