Create and use a global variable
When the TruClient Runtime Settings > Replay > Simulate a new user for each iteration is selected, variables are cleared between iterations. You can create a global variable whose scope exists between iterations.
-
Add an Evaluate JavaScript step. In the Arguments sections add code to define the variable in the Init Block.
For example:
Global.Number=5;
The
Globalprefix defines a global variable namedNumber.

