haneef
17 years agoNew Contributor
How to get the value of the cnt?
Hi,
I'm doing loadtest for a webservice. For each test I want to send a unique number. The variable "cnt" shown in the statistics is enough for my task. I don't know how to get get the value of the variable in the groovy script.
Basically I want to do that following in my load
1) Create a property with initial value as 0
2) Update the value of the property via groovy with the value of "cnt"
3) Run the test with the value of the property
Don't know how to do 2). Any help is appreciated.
Thanks,
Haneef
I'm doing loadtest for a webservice. For each test I want to send a unique number. The variable "cnt" shown in the statistics is enough for my task. I don't know how to get get the value of the variable in the groovy script.
Basically I want to do that following in my load
1) Create a property with initial value as 0
2) Update the value of the property via groovy with the value of "cnt"
3) Run the test with the value of the property
Don't know how to do 2). Any help is appreciated.
Thanks,
Haneef