|
测试登录后修改功能,回放脚本点击提交总是报以下错误,但是手动修改是没问题的
loadrunner回放脚本报Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://locahost::7003/project/paper.do" [MsgId: MERR-26612]
用的是weblogic的服务器,而且是远程访问的,服务器不在同一台机子上
脚本代码,开始部分
Action()
{
web_add_cookie("LASTORDER=bug_status%2Cpriority%2Cassigned_to%2Cbug_id; DOMAIN=192.168.1.34");
web_add_cookie("Bugzilla_login=3; DOMAIN=192.168.1.34");
web_add_cookie("Bugzilla_logincookie=Jf30aPhE4x; DOMAIN=192.168.1.34");
web_add_cookie("VERSION-%E5%AD%A6%E6%A0%A1%E7%BD%91%E7%AB%99%E6%A8%A1%E6%9D%BF=1.0; DOMAIN=192.168.1.34");
web_add_cookie("BUGLIST=1%3A2; DOMAIN=192.168.1.34");
lr_think_time(20);
web_url("front.jsp",
"URL=http://192.168.1.34:7003/edugateproject/front.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_start_transaction("daoru");
。。。。。。
结束部分
lr_think_time(20);
web_concurrent_start(NULL);
web_submit_data("paper.do",
"Action=http://192.168.1.34:7003/edugateproject/control/paper.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://192.168.1.34:7003/edugateproject/control/paper.do?method=editUI&paperId=163",
"Snapshot=t46.inf",
"Mode=HTTP",
ITEMDATA,
"Name=method", "Value=edit", ENDITEM,
"Name=paperId", "Value={NewParam_6}", ENDITEM,
"Name=layoutid", "Value=3", ENDITEM,
"Name=title", "Value={NewParam_4}", ENDITEM,
"Name=subTitle", "Value=", ENDITEM,
"Name=author", "Value=", ENDITEM,
"Name=tuijian", "Value=n", ENDITEM,
"Name=frontflash", "Value=n", ENDITEM,
"Name=tuiEdugage", "Value=y", ENDITEM,
"Name=backType", "Value=TTXW", ENDITEM,
"Name=showtime", "Value=", ENDITEM,
"Name=hour", "Value=0", ENDITEM,
"Name=clickCount", "Value=1", ENDITEM,
"Name=keyInfo", "Value=濂戒箙浜\\x86", ENDITEM,
"Name=content", "Value=", ENDITEM,
LAST);
lr_end_transaction("daoru",LR_AUTO);
lr_output_message ( "lujing: #%s", lr_eval_string ( "{daoru}" ) );
return 0;
} |
|