add custom counter in stats

Hi,

is there a way to add some custom counter in the ending stats of a simulation ?

Here is my use case :

I’ve a simulation that sends request on a four node cluster, at this point i’m able to extract the node by using a regexheader on the JessionID that contain the node name in its value.

The question is, is it possible to add in the final stats the number of request send on each node by displaying a custom incremented counter ?

Thanks by advance on any help.

Ludovic

Hi,

You can use EL to compute request names with the node name, and wrap the requests into groups so you can get consolidations per request.

.group(“foo”) {
exec(request(“foo - ${nodeName}”)…)
}

Got it?

Stéphane

It works like a charm and gives us a nice tool to analyze our tests.

thanks

Glad to hear.

Have fun!