In Tsung you can substitute variables like this: %%_counter%%
. But how do I do something like %%_counter * 2 + 1%%
?
Asked
Active
Viewed 477 times
1 Answers
1
Here's an example of adding %%_tsung_userid%%
and %%_counter%%
into the variable %%_total%%
.
<setdynvars sourcetype="eval" code="fun({Pid,DynVars})->
{ok,Tsung_userid} = ts_dynvars:lookup(tsung_userid,DynVars),
{ok,Counter} = ts_dynvars:lookup(counter,DynVars),
Tsung_userid + Counter end.">
<var name="total" />
</setdynvars>
I don't know if there's a more concise way.

bcoughlan
- 25,987
- 18
- 90
- 141