I'm new to CA LISA and working on my first VS. My VS will consume a request via a HTTP POST and I'd like to match a piece of information from the body of the request message to the appropriate response message to return back. I've created the VSI/VSM using a request/response pair and am extracting the match data from the transaction.body of the incoming request. But I'm not sure how to match to the response. I've tried adding a Compare Strings for Response Lookup step using the Find in String comparison but it finds no match even though the string of data exists in at least one of the responses. I have the Compare String step after the VS Execution Router in the VSM. Is this the correct way to go about matching the request to the response?
Thanks in advance!
I'm missing what you are doing here. To map a specific request to a response, open VSI in the DevTest Portal (see below picture of a sample):
Now, find your signature (request) in the left column under "stateless signatures". Then under Specifics - find the specific request you need to match with a response. Here I'm showing 2 specifics "getNewToken" user name=admin, password=admin. The other specific is hidden but showing as "3 getNewToken". If i click on it, it will expand and show an different user name and password combination.
Back to editing the specific. Once you have the Specific correct - then edit the response to what you want it to be (under Response Data or the right column above).
Let me know if that helps - I can do a quick demo for you if you need as well.