|
在录制脚本的时候,有发表帖子的需求,所以录制的脚本如下:
web_submit_data("TopicEdit.asp",
"Action=http://10.16.76.222/Eip.Forum/Forums/TopicEdit.aspx?ForumID=35",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://10.16.76.222/Eip.Forum/Forums/TopicEdit.aspx?ForumID=35",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value=123", ENDITEM,
"Name=tbSubject", "Value=LRtest", ENDITEM,
"Name=tbPostText", "Value=", ENDITEM,
"Name=fileAccessory", "Value=", ENDITEM,
"Name=tbPollQuestion", "Value=", ENDITEM,
"Name=tbPollText", "Value=", ENDITEM,
"Name=tbDelayDays", "Value=0", ENDITEM,
"Name=ddlJump", "Value=", ENDITEM,
"Name=pullResult", "Value=", ENDITEM,
"Name=pullCount", "Value=3", ENDITEM,
"Name=hideAccessory", "Value=", ENDITEM,
"Name=ImgTopicSubmit.x", "Value=60", ENDITEM,
"Name=ImgTopicSubmit.y", "Value=13", ENDITEM,
LAST);
函数觉得好像没有错,但是重放时系统报错如下:
Action1.c(35): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.16.76.222/Eip.Forum/Forums/TopicEdit.aspx?ForumID=35" [MsgId: MERR-26612]
Action1.c(35): web_submit_data highest severity level was "ERROR", 3035 body bytes, 351 header bytes [MsgId: MMSG-27178]
据说是LR记录web service时的参数传错的原因,但是具体怎么解决,希望有达人指教一二,谢谢! |
|