51Testing软件测试论坛

标题: 为什么我重装LR后,就录制不了脚本了呢 [打印本页]

作者: sbdhqcl_i    时间: 2008-9-25 09:10
标题: 为什么我重装LR后,就录制不了脚本了呢
为什么我重装LR后,就录制不了脚本了呢?,输入的网址点击了开始录制后,也不会自动打开网站,显示为0events,请哪位大侠可以帮帮我呢,谢过
作者: sbdhqcl_i    时间: 2008-9-25 09:34
我在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
作者: sbdhqcl_i    时间: 2008-9-25 14:33
哪位好心人可以告诉我解决方法吗?
作者: archonwang    时间: 2008-9-25 14:50
录制不到脚本有几个原因,不知道是哪个
1. 选择协议错误
2. ie的设置问题,启用了不合适的或未启用第三方插件。
作者: 026300    时间: 2008-9-26 09:17
一般重装好像还记录原来的一些设置,最彻底的办法就是重装系统然后再装LR




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2