AnsweredAssumed Answered

Matched Response ID from VSI

Question asked by sdabbiru on Oct 11, 2017
Latest reply on Nov 6, 2017 by sdabbiru

Hi SupportListeners,


I enabled log level to info to capture the logs in the virtual service specific log file but for some reason, the Stateless Match Transaction: line gives the meta response ID instead of the specific transaction id of the matched transaction for all the calls. I tried implementing the below logic which I got from an other post to pull the matched transaction id


import com.itko.lisa.vse.stateful.model.Transaction;

Transaction txn = new Transaction();
txn = (Transaction) testExec.getStateObject("lisa.vse.matched.transaction");

long id = 0;
if( txn != null ) {
id = txn.getResponses().get(0).getId();
} else {
//In this case, the response you got is one of the responses for unknown requests,
// so you'll need some logic that knows how to deal with that situation. I'll just call it an ID of -1 for demonstration purposes.
id = -1;
},"ResponseID","RspID: " + id);


But is it not logging anything. I added it in a scriptable DPH and tried in both listen step as well as in the respond step in the VSM. (Process Response selected)


I tried running in ITR and what I observed in the events is , below properties are removed. Is there anything I'm missing. BTW I'm using CA DevTest 10.



Any help is much appreciated.