DevTest Console shows MQ VSE Transaction Count as zero always on custom models

book

Article ID: 5368

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction

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.

 

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 has custom Java script steps you face this issue.

 

Environment

DEVTEST versions 8.x , 9.x and 10.x

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