51Testing软件测试论坛
标题:
安装loadrunner8.1后录制web脚本时,LR不能自动生成脚本
[打印本页]
作者:
sky_zhouw
时间:
2008-3-30 11:09
标题:
安装loadrunner8.1后录制web脚本时,LR不能自动生成脚本
如题,那位高手请帮我解决下。谢谢了
作者:
sky_zhouw
时间:
2008-3-30 12:08
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.
结果是对的,但是为什么不能录制脚本呢??
作者:
rickyzhu
时间:
2008-3-30 21:33
协议对不对?
作者:
sky_zhouw
时间:
2008-3-30 22:26
我选择了web(http/html)协议。协议应该没问题吧!
作者:
sky_zhouw
时间:
2008-3-30 22:34
标题:
回复 3# 的帖子
我录制的是163邮箱登录,我选择协议为web(http/html)协议!
不管我怎么录, 代码永远都是这些
vuser_init()
{
return 0;
}
等待大家解答。。。。先谢谢了
作者:
云层
时间:
2008-3-30 22:38
写的太简单了,你录制的开始页面是什么
作者:
sky_zhouw
时间:
2008-3-30 22:52
标题:
回复 6# 的帖子
开始界面是163邮箱登录界面
作者:
sky_zhouw
时间:
2008-3-30 23:09
标题:
回复 6# 的帖子
这是我的录制步骤。
1、选择协议为web(http/html)
2、选择URL Address :
http://mail.163.com
,其他默认,点击【确定】,进入录制
3、输入用户名和密码以及点击登录
4、退出邮箱
5、结束录制
6、结果脚本为空
还请各位高手帮我解决。。。。。。
作者:
wu_cx
时间:
2008-3-31 08:47
开始录制时,"选项"下的端口映射需设置下
作者:
sky_zhouw
时间:
2008-3-31 11:16
标题:
回复 9# 的帖子
端口映射怎样设置呢?可否说明白点。谢谢
作者:
cherry220
时间:
2009-3-22 16:01
标题:
求助
我也碰到了这个问题,不能自动生成脚本,端口映射怎么设置啊,高手能否帮下忙,谢谢
作者:
cherubim
时间:
2009-3-23 09:31
在录制选项option->network->Port Mapping 中的Capture levet选择Socket level and WinNet level data试试
估计是你的系统装过IE7导致的
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2