In the following example, there are three parameters defined. *Iteration *is an Iteration Number type parameter, and *Param1* and *Param2* are defined in file Params.dat.The values of *Param1* and *Param2* are:

This script shows the effect of lr.advance_param. *Param1* advances at each call to lr.advance_param, and at each new iteration. With **Select next row **set to "sequential" in the Vuser parameter list dialog for *Param2*, *Param2* advances only by iteration, though it is in the same file. However, with **Select next row s**et to "Same line as Param1", *Param2* advances with *Param1*.

lr.output_message "Iteration " + lr.eval_string("<Iteration>") _ + ", Param1 " + lr.eval_string("<Param1>") _ + ", Param2 " + lr.eval_string("<Param2>") lr.advance_param "Param1" lr.output_message "Iteration " + lr.eval_string("<Iteration>") _ + ", Param1 " + lr.eval_string("<Param1>") _ + ", Param2 " + lr.eval_string("<Param2>")

Example:Output: WhenSelect next rowis set to "sequential":

Starting iteration 1.

Iteration 1, Param1 P1_a, Param2 P2_a

Iteration 1, Param1 P1_b, Param2 P2_a

Starting iteration 2.

Iteration 2, Param1 P1_c, Param2 P2_b

Iteration 2, Param1 P1_d, Param2 P2_b

WhenSelect next rowis set to "Same line as Param1":

Starting iteration 1.

Iteration 1, Param1 P1_a, Param2 P2_a

Iteration 1, Param1 P1_b, Param2 P2_b

Starting iteration 2.

Iteration 2, Param1 P1_c, Param2 P2_c

Iteration 2, Param1 P1_d, Param2 P2_d