录制登记人信息添加,ajax返回信息列表和总金额,但回放时报错-26612
本帖最后由 luxiuxiu1987 于 2011-6-21 17:26 编辑填写登记人信息,录制脚本如下:
lr_start_transaction("添加登记人信息");
lr_think_time(21);
//提交登记人信息
web_submit_data("PlanePassager.ashx_2",
"Action=http://info.xxx.com/Ajax/PlanePassager.ashx",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://info.xxx.com/PlaneOrder.aspx",
"Snapshot=t23.inf",
"Mode=HTML",
ITEMDATA,
"Name=type", "Value=5", ENDITEM,
"Name=cname", "Value=香吉士", ENDITEM,
"Name=code", "Value=ns22145547", ENDITEM,
"Name=ctype", "Value=0", ENDITEM,
"Name=insurance", "Value=1", ENDITEM,
"Name=sex", "Value=1", ENDITEM,
"Name=birthday", "Value=1980-05-09", ENDITEM,
"Name=cttype", "Value=1", ENDITEM,
LAST);
//添加登记人信息列表
web_submit_data("PlanePassager.ashx_3",
"Action=http://info.xxx.com/Ajax/PlanePassager.ashx",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://info.xxx.com/PlaneOrder.aspx",
"Snapshot=t24.inf",
"Mode=HTML",
ITEMDATA,
"Name=type", "Value=4", ENDITEM,
LAST);
//计算总金额和人数
web_submit_data("PlanePassager.ashx_4",
"Action=http://info.xxx.com/Ajax/PlanePassager.ashx",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://info.xxx.com/PlaneOrder.aspx",
"Snapshot=t25.inf",
"Mode=HTML",
ITEMDATA,
"Name=type", "Value=9", ENDITEM,
LAST);
lr_end_transaction("添加登记人信息", LR_AUTO);
回放脚本报错,如下:
Action.c(263): Notify: Transaction "添加登记人信息" started.
Action.c(267): web_submit_data("PlanePassager.ashx_2") was successful, 1 body bytes, 219 header bytes
Action.c(285): web_submit_data("PlanePassager.ashx_3") was successful, 716 body bytes, 221 header bytes
Action.c(296): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://info.xxx.com/Ajax/PlanePassager.ashx"
Action.c(296): web_submit_data("PlanePassager.ashx_4") highest severity level was "ERROR", 4325 body bytes, 240 header bytes
Action.c(296): Notify: Transaction "添加登记人信息" ended with "Fail" status (Duration: 0.5152 Wasted Time: 0.0106).
页面显示黄页
说是缺少对象实例之类的,不是很懂,还请高手指教,
之前查找相关的-26612错误都是说缺少关联,但是如何关联?还是有其他的解决方法? 是不是也面重定向引起的 500错误都是服务器上的错误,应该是你发送了不合法的数据包导致的服务器错误 回复 3# 云层
再次谢谢云大人的回复
那请问如何查看数据包是否合法,错误对应的是 web_submit_data("PlanePassager.ashx_4",)脚本,对应的request body :type=9;response body:1110,1;
咋进行分析?? 本帖最后由 luxiuxiu1987 于 2011-6-22 10:15 编辑
回复 2# superliming
首先谢谢给予回复
页面重定向再看?⊙﹏⊙b汗,别鄙视我啊。。。因为是提交登记人信息后,当前页面及时更新数据 已解决,缺失关联的问题,机票航班信息关联缺失,所以出现黄页
页:
[1]