|
多谢兄弟们的回复,我是一个初学者,昨天研究了一下,按照帮助手册写了下面的代码:
parameter list 中file path:excel2.dat中的数据格式是:
A B
1 10
2 11
3 12
4 13
5 14
设置如下:
Select next rows:Sequantial;
Update value on:Each iteration;
By number:2
First data line:1
运行以下代码
Action()
{
lr_output_message("Iteration %s, A %s,B %s",
lr_eval_string("{Iteration}"),
lr_eval_string("{A}"),
lr_eval_string("{B}"));
lr_advance_param("A");
lr_advance_param("B");
lr_output_message("Iteration %s, A %s,B %s",
lr_eval_string("{Iteration}"),
lr_eval_string("{A}"),
lr_eval_string("{B}"));
}
结果是:
Starting iteration 1.
Starting action Action.
Action.c(4): Iteration {Iteration}, A {A},B {B}
Action.c(16): Iteration {Iteration}, A {A},B {B}
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
按照帮助说的,结果应该是
Starting iteration 1.
Starting action Action.
Action.c(4): Iteration {Iteration}, A {1},B {10}
Action.c(16): Iteration {Iteration}, A {2},B {11}
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
请大家帮我看下,是什么原因啊? |
|