Test counters

Used for value generation in the test specification, as Session-Id. These counters are not reflected in the statistics. Each counter represents an unique generator per node, global for all the users on that node.

New counter

The counter-new action defines a new counter.

Name Type Required Action Info
counter string Yes No Counter identifier.
value integer No No Initial value.

Example

{"counter-new" : {
                   "counter" : "Session-Id"
                 }
}

Counter increment

The counter-inc action increments a counter with the specified value.

Name Type Required Action Info
counter string Yes No Counter identifier.
increment integer Yes Yes Counter increment.

Example

{"counter-inc" : {
                   "counter" : "Session-Id",
                   "increment" : 1
                 }
}

Counter value

The counter-value action retrieves the current value of the counter.

Name Type Required Action Info
counter string Yes No Counter identifier.

Example

{"counter-value" : {
                     "counter" : "Session-Id"
                   }
}