DevTest Console shows MQ VSE Transaction Count as zero always.

Document ID : KB000005368
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Recently upgraded DevTest server(s) from 7.5.1 to 9.1. The VSE is processing transactions fine, but in the DevTest Console shows VSE Transaction Count as zero always.

 

Environment:
DEVTEST versions 8.x , 9.x and 10.x
Cause:

The reason you are not seeing transaction count in the model is that, a change was made sometime in the 8.x-9.x time frame that basically means VSE only counts transactions when the VSM-based steps are used. The code that increments the transaction count now looks for a special testExec property that those steps set. 

 If a VSM is not recorded one or uses deprecated IBM MQ publish /consume steps and if it hascustom Java script steps you face this issue.

 

Resolution:

Here is something you can do to the existing model :

Include the following line in your script step just before the respond step and that should update the Transaction count.

testExec.setStateObject("lisa.vse.stateful.request.received", Boolean.TRUE); 

 

 

Additional Information:

Not applicable