|
2#
楼主 |
发表于 2008-9-25 09:34:10
|
只看该作者
我在action中输入Action()
{
int MyCPSScore = 100;
if(MyCPSScore < 75)
{
lr_output_message(">>>>>>>>>>> Bad luck, try again!!");
}
else if((MyCPSScore >= 75) && (MyCPSScore <= 85))
{
lr_output_message(">>>>>>>>>>> Good Job!");
}
else if((MyCPSScore > 85) && (MyCPSScore <= 100))
{
lr_output_message(">>>>>>>>> Excellent, Keep up the good work!");
}
else
{
lr_output_message(">>>>>>>>>>> Invalid score!");
}
}这段代码执行后是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:\Documents and Settings\sammy.SINOHUB\Local Settings\Temp\noname11\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(16): >>>>>>>>> Excellent, Keep up the good work!
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
但就是录制不了一直event 一直都是0 |
|