51Testing软件测试论坛
标题:
脚本回放报错,手工操作没有问题
[打印本页]
作者:
yud
时间:
2008-9-22 16:19
标题:
脚本回放报错,手工操作没有问题
脚本回放时报错,手工操作时没有问题,请高手帮忙看看,谢谢!
报错信息如下:
Action.c(30): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://219.141.223.114:9000/login.do" [MsgId: MERR-26612]
Action.c(30): web_submit_form("login.do_2") highest severity level was "ERROR", 10307 body bytes, 390 header bytes, 20 chunking overhead bytes [MsgId: MMSG-26387]
-----------------------------------
脚本如下:
web_url("login.do",
"URL=http://219.141.223.114:9000/login.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/service_23.gif", ENDITEM,
"Url=/images/service_06.gif", ENDITEM,
"Url=/images/botton.gif", ENDITEM,
"Url=/images/index_06.gif", ENDITEM,
"Url=/images/index_23.gif", ENDITEM,
"Url=/images/service_36.gif", ENDITEM,
"Url=/images/service_15.gif", ENDITEM,
"Url=/images/service_14.gif", ENDITEM,
"Url=/images/service_08.gif", ENDITEM,
"Url=/images/service_40.gif", ENDITEM,
"Url=/images/service_19.gif", ENDITEM,
"Url=/images/service_18.gif", ENDITEM,
LAST);
lr_think_time( 65 );
web_submit_form("login.do_2",
(执行到此处脚本时报错)
"Snapshot=t2.inf",
ITEMDATA,
"Name=email", "Value=chagul@cn.com", ENDITEM,
"Name=loginPwd", "Value=chg12345", ENDITEM,
EXTRARES,
"Url=/images/service_23.gif", ENDITEM,
"Url=/images/service_06.gif", ENDITEM,
"Url=/images/service_34.gif", ENDITEM,
"Url=/images/service_08.gif", ENDITEM,
"Url=/images/service_36.gif", ENDITEM,
"Url=/images/service_15.gif", ENDITEM,
"Url=/images/service_40.gif", ENDITEM,
"Url=/images/service_19.gif", ENDITEM,
"Url=/images/service_18.gif", ENDITEM,
"Url=/images/service_14.gif", ENDITEM,
LAST);
-----------------------------------
在树型脚本中,出现了报错页面
作者:
026300
时间:
2008-9-22 17:13
参数传的不对了吧
作者:
yud
时间:
2008-9-22 17:35
你是说登录和密码那里的参数有问题,还是说LR中的一些参数设置有问题?谢谢
作者:
rcpp
时间:
2008-9-22 17:48
把t2.inf文件内容贴上来
作者:
yud
时间:
2008-9-23 10:26
t2.inf文件内容:
------------------------
[t2]
FileName1=t2.htm
URL1=http://219.141.223.114:9000/login.do
Total=1
RequestHeaderFile=t2_RequestHeader.txt
RequestBodyFile=t2_RequestBody.txt
ResponseHeaderFile=t2_ResponseHeader.txt
ContentType=text/html
作者:
云层
时间:
2008-9-23 10:44
个人觉得这个是你们系统本身有bug,让开发看看就知道了
具体原因应该是你lr脚本有写东西没录制到,导致传给login.do的参数有些值为null,然后没有验证null的类就垮了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2