51Testing软件测试论坛
标题:
回放上传图片脚本的时候,执行到一半就不执行了
[打印本页]
作者:
edisonzhang
时间:
2011-8-19 14:51
标题:
回放上传图片脚本的时候,执行到一半就不执行了
web_submit_data("misc.php",
"Action=http://bbs.hrloo.com/misc.php?mod=swfupload&type=image&fid=112&action=swfupload&operation=upload",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=Filename", "Value=03.jpg", ENDITEM,
"Name=uid", "Value=11790", ENDITEM,
"Name=filetype", "Value=jpg", ENDITEM,
"Name=proid", "Value=0", ENDITEM,
"Name=title", "Value=03", ENDITEM,
"Name=hash", "Value=f6c9037981ade130d349f9175c99bbb9", ENDITEM,
"Name=Filedata", "Value=03.jpg", "File=Yes", ENDITEM,
"Name=Upload", "Value=Submit Query", ENDITEM,
LAST);
web_url("forum.php_3",
"URL=http://bbs.hrloo.com/forum.php?mod=ajax&action=imagelist&pid=0&posttime=1313750933&fid=112&inajax=1&ajaxtarget=imgattachlist",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
???回放的时候为什么执行到下面的时间 就不执行了,一直在执行中状态
web_url("forum.php_4",
"URL=http://bbs.hrloo.com/forum.php?mod=image&aid=6500&size=300x300&key=c9364c5cf79382114ab2f107639fadfe&nocache=yes&type=fixnone",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_url("forum.php_5",
"URL=http://bbs.hrloo.com/forum.php?mod=image&aid=6500&size=300x300&key=c9364c5cf79382114ab2f107639fadfe&nocache=yes&type=fixnone",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=/static/image/common/error.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112", ENDITEM,
LAST);
web_submit_data("forum.php_6",
"Action=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112&extra=&topicsubmit=yes",
"Method=POST",
"RecContentType=text/html",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=0e16c1ed", ENDITEM,
"Name=posttime", "Value=1313750933", ENDITEM,
"Name=wysiwyg", "Value=1", ENDITEM,
"Name=typeid", "Value=62", ENDITEM,
"Name=subject", "Value=我的帖子在活动区发布,希望能给力啊", ENDITEM,
"Name=unused[]", "Value=6498", ENDITEM,
"Name=message", "Value=l love !\r\n卡了时间的垃圾看到了卡撒娇的拉空间的 \r\n大空间上的会拉开时间d\r\n[attach]6500[/attach]\r\nl love\r\n\r\n", ENDITEM,
"Name=readperm", "Value=", ENDITEM,
"Name=price", "Value=", ENDITEM,
"Name=tags", "Value=", ENDITEM,
"Name=save", "Value=", ENDITEM,
"Name=attachnew[6500][description]", "Value=", ENDITEM,
"Name=albumaid[]", "Value=", ENDITEM,
"Name=uploadalbum", "Value=", ENDITEM,
"Name=newalbum", "Value=", ENDITEM,
"Name=usesig", "Value=1", ENDITEM,
"Name=allownoticeauthor", "Value=1", ENDITEM,
EXTRARES,
"Url=/static/image/common/midavt_shadow.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/static/image/common/ad.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/static/image/common/share_btn.png", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/data/attachment/forum/201108/19/184949mh5yyvofbscyayym.jpg", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/static/image/common/fastreply.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/static/image/common/edit.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
"Url=/static/image/common/popupcredit_bg.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=viewthread&tid=23033&extra=", ENDITEM,
LAST);
[attach]74924[/attach]
上传图片的动作和现在 在发帖一样的 不执行的脚本我觉得就是这个动作的
作者:
cafard-haibin
时间:
2011-8-19 16:01
执行到这块时候,发出请求,却一直得不到服务器的响应,所以就会一直等待,知道超时。具体问题需要看环境分析。
作者:
edisonzhang
时间:
2011-8-19 17:06
web_url("forum.php_4",
"URL=http://bbs.hrloo.com/forum.php?mod=image&aid=
6500&size=300x300&key=c9364c5cf79382114ab2f107639fadfe
&nocache=yes&type=fixnone",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=112",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
这个请求的这部分我已经收到关联了,关联后的结果,我ie访问这个请求是可以获取到图片的
web_reg_save_param("aid", //关联取aid
"LB=mod=image&aid=",
"RB=&nocache=yes",
LAST);
web_url("forum.php_4",
"URL=http://bbs.hrloo.com/forum.php?mod=ajax&action=attachlist&fid=110&inajax=1&ajaxtarget=attachlist",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=110",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"Url=/static/image/filetype/image.gif", "Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=110", ENDITEM,
LAST);
lr_log_message( "aid is %s", lr_eval_string("{aid}") );
web_url("forum.php_5",
"
URL=http://bbs.hrloo.com/forum.php?mod=image&aid={aid}&nocache=yes&type=fixnone",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bbs.hrloo.com/forum.php?mod=post&action=newthread&fid=110",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
手动访问这个是可以得到相应的图片的,请高人继续指点下,灰常感谢
作者:
edisonzhang
时间:
2011-8-22 10:10
自己先顶一下,来个大侠指导下小弟
作者:
luxiuxiu1987
时间:
2012-3-15 20:36
亲,我也遇到同样问题,求解决方法
作者:
TesterChen
时间:
2012-3-16 11:02
回复
1#
edisonzhang
1、建议楼主将关联的值输出来看一下是否正确
2、检查一下是否已经全部关联
3、在后台查看服务器是否收到请求,查看服务器的处理日志信息
4、检查一下lr和服务器的超时设置
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2