LoadRunner回放脚本报错Error -26612: HTTP Status-Code=500 (Internal Server Error)
我做了一个测试的web程序,一个超级简单的Web页面(一个文本框,一个提交按钮,),功能就是文本框输入文本,点击提交按钮,文本框内容保存到数据库。
录制脚本后,回放脚本,报错
Action.c(33): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.203.1.153/WebApplication2/WebForm1.aspx"
Action.c(33): web_submit_data("WebForm1.aspx_2") highest severity level was "ERROR", 3312 body bytes, 240 header bytes
想请教大家,这个会是什么原因呢
这里是录制的脚本内容
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 3
// {Siebel_Analytic_ViewState2} = "Eg2/tI90r+UU78Pp7PJWuOhhXbxosDYCbbvnXjpluoqrNoHxMZFXsNSA2fJ9F6WtAGn5ldP516zpL9umdFXf05AOW5IVaxEZ0MMdJmubwL4="
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("WebForm1.aspx",
"URL=http://10.203.1.153/WebApplication2/WebForm1.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_url("favicon.ico",
"URL=http://10.203.1.153/favicon.ico",
"Resource=1",
"Referer=",
LAST);
web_submit_data("WebForm1.aspx_2",
"Action=http://10.203.1.153/WebApplication2/WebForm1.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.203.1.153/WebApplication2/WebForm1.aspx",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=__VIEWSTATEGENERATOR", "Value=C9C0A2AC", ENDITEM,
"Name=__EVENTVALIDATION", "Value=vslx78JyQpPqX1JLPln2TLvC/CDbvtnA7Z3t4lTjDIU9QGT3u8EBVXRVaQgpcPNc27GpO/04ubWPdTjioMateF0KRJ44MakGW3Dm6xUPUxqwHrMLHnEdccZcE0ITKu5kSYFNi6bpJw/twIJSCvXsGw==", ENDITEM,
"Name=TextBox1", "Value=aaa", ENDITEM,
"Name=Button1", "Value=Submit", ENDITEM,
LAST);
web_url("favicon.ico_2",
"URL=http://10.203.1.153/favicon.ico",
"Resource=1",
"Referer=",
LAST);
return 0;
}
自己已解决,方案如下。
"Name=__EVENTVALIDATION", "Value=vslx78JyQpPqX1JLPln2TLvC/CDbvtnA7Z3t4lTjDIU9QGT3u8EBVXRVaQgpcPNc27GpO/04ubWPdTjioMateF0KRJ44MakGW3Dm6xUPUxqwHrMLHnEdccZcE0ITKu5kSYFNi6bpJw/twIJSCvXsGw==", ENDITEM,
此处为Value=后面的字符串创建关联,回放成功!:lol 厉害自己的问题自己解决了 :lol 没关联也会包内部错误啊。。。 请问如何创建关联
页:
[1]