|
很久很久以前,有一篇类似的帖子(地址:http://bbs.51testing.com/thread-17849-1-1.html),但是在回复中,除了三楼给出出现这种情况的原因,其他回复都是观望、学习、建议、试试数据等情况,今日,由于本人也遇到这个问题,将这个问题重新整理,针对所有网友回复,完整叙述事件经过
1.关键字:RedHat linux,oracle10g,tomcat,spring+struts+hibernate,以太网络,JAVA,无参数化,无自动关联,URL录制模式(HTML录制不到一些操作),server2003+LR9.5(使用xp+LR8.0不发生本问题)
2.表述:录制脚本(脚本录制成功-数据没有问题-数据库插入数据成功)
回放脚本,报错(数据没有问题,所有数据可重复入库,没有唯一性校验)
特别说明:错误是在回放脚本的时候发生的,故不存在“压力过大”的问题
数据合法,再次手工录入相同数据没有问题
中文支持UTF-8,没有乱码
请说明解决方法
3.贴脚本:(红色部分为定位的位置)
web_reg_find("Text=提示页面",
LAST);
lr_think_time(280);
web_submit_data("material.do",
"Action=http://172.16.5.253:8889/admin/material.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://172.16.5.253:8889/admin/material.do?methodToCall=forUploadMaterial",
"Snapshot=t43.inf",
"Mode=HTTP",
ITEMDATA,
"Name=methodToCall", "Value=uploadMaterial", ENDITEM,
"Name=contentname", "Value=222", ENDITEM,
"Name=featurestr", "Value=1", ENDITEM,
"Name=vasId", "Value=8519680", ENDITEM,
"Name=authorname", "Value=1", ENDITEM,
"Name=validstarttime", "Value=2009-03-10 17:48:24", ENDITEM,
"Name=validendtime", "Value=2009-03-31 17:48:24", ENDITEM,
"Name=typeRadio", "Value=1", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("xtree.js_2",
"URL=http://172.16.5.253:8889/admin/js/xtree/xtree.js",
"Resource=1",
"Referer=http://172.16.5.253:8889/admin/material.do",
LAST);
web_url("bar_bg(1).gif",
"URL=http://172.16.5.253:8889/admin/images/bar_bg(1).gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.5.253:8889/admin/material.do",
"Snapshot=t44.inf",
LAST);
web_url("bar_left(1).gif",
"URL=http://172.16.5.253:8889/admin/images/bar_left(1).gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.5.253:8889/admin/material.do",
"Snapshot=t45.inf",
LAST);
web_url("bar_right(1).gif",
"URL=http://172.16.5.253:8889/admin/images/bar_right(1).gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.5.253:8889/admin/material.do",
"Snapshot=t46.inf",
LAST);
web_url("succeed.gif",
"URL=http://172.16.5.253:8889/admin/images/succeed.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.5.253:8889/admin/material.do",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
4.贴日志
Action.c(372): Registering web_reg_find was successful [MsgId: MMSG-26390]
Action.c(377): Redirecting "http://172.16.5.253:8889/admin/jsp/frame/menu?func_code=006020" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(377): To location "http://172.16.5.253:8889/admin/material.do?methodToCall=forUploadMaterial" [MsgId: MMSG-26693]
Action.c(377): Registered web_reg_find successful for "Text=xx上传" (count=2) [MsgId: MMSG-26364]
Action.c(377): web_url("xx提交") was successful, 19933 body bytes, 352 header bytes, 28 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(386): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(388): Registering web_url("common.js") was successful [MsgId: MMSG-26390]
Action.c(396): Registering web_url("calendar.js") was successful [MsgId: MMSG-26390]
Action.c(404): Registering web_url("bar_left.gif") was successful [MsgId: MMSG-26390]
Action.c(412): Registering web_url("bar_right.gif") was successful [MsgId: MMSG-26390]
Action.c(420): Registering web_url("but_left.gif_2") was successful [MsgId: MMSG-26390]
Action.c(426): Registering web_url("but_bg.gif_2") was successful [MsgId: MMSG-26390]
Action.c(432): Registering web_url("bar_bg.gif") was successful [MsgId: MMSG-26390]
Action.c(440): Registering web_url("but_right.gif_2") was successful [MsgId: MMSG-26390]
Action.c(446): web_concurrent_end was successful, 39413 body bytes, 1319 header bytes [MsgId: MMSG-26386]
Action.c(448): Registering web_reg_find was successful [MsgId: MMSG-26390]
Action.c(453): Continuing after Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://172.16.5.253:8889/admin/material.do" [MsgId: MERR-26612]Action.c(453): Registered web_reg_find successful for "Text=提示页面" (count=1) [MsgId: MMSG-26364]
Action.c(453): web_submit_data("material.do") highest severity level was "continue on error", 2757 body bytes, 188 header bytes, 12 chunking overhead bytes [MsgId: MMSG-26387]
Action.c(453): Continuing after error in Vuser script.
Action.c(472): web_concurrent_start was successful [MsgId: MMSG-26392]
Action.c(474): Registering web_url("xtree.js_2") was successful [MsgId: MMSG-26390]
Action.c(480): Registering web_url("bar_bg(1).gif") was successful [MsgId: MMSG-26390]
Action.c(488): Registering web_url("bar_left(1).gif") was successful [MsgId: MMSG-26390]
Action.c(496): Registering web_url("bar_right(1).gif") was successful [MsgId: MMSG-26390]
Action.c(504): Registering web_url("succeed.gif") was successful [MsgId: MMSG-26390]
Action.c(512): web_concurrent_end was successful, 2975 body bytes, 911 header bytes [MsgId: MMSG-26386]
希望强人说明解决方法
[ 本帖最后由 hubanmao 于 2009-3-11 09:56 编辑 ] |
|