|
2#
楼主 |
发表于 2008-3-30 12:08:42
|
只看该作者
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!");
}
}
日志: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.
结果是对的,但是为什么不能录制脚本呢?? |
|