|
奇怪咯,Iteration是LoadRunner自带的参数啊,为什么我是在输出时的不到想要的结果呢
迭代次数: 5次
Action()
{
lr_output_message("Iteration %s :",lr_eval_string("{Iteration}"));
return 0;
}
输出结果:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.1.0 for WINXP; Web build 4788 [MsgId: MMSG-27143]
Run-Time Settings file: "C:\DOCUME~1\~~~~1\LOCALS~1\Temp\noname6\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(3): Iteration {Iteration} :
Ending action Action.
Ending iteration 1.
Starting iteration 2.
Starting action Action.
Action.c(3): Iteration {Iteration} :
Ending action Action.
Ending iteration 2.
Starting iteration 3.
Starting action Action.
Action.c(3): Iteration {Iteration} :
Ending action Action.
Ending iteration 3.
Starting iteration 4.
Starting action Action.
Action.c(3): Iteration {Iteration} :
Ending action Action.
Ending iteration 4.
Starting iteration 5.
Starting action Action.
Action.c(3): Iteration {Iteration} :
Ending action Action.
Ending iteration 5.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
为什么每次都是输出:Iteration {Iteration}
而不是我预想的 Iteration 1、Iteration 2.。。。Iteration 5 呢
以前用的时候曾经正常输出过,后来再使用就无法正常输出的,请问是需要做哪些设置吗?麻烦明了的前辈给予指点哦,万分感谢 |
|