loadrunner参数化后回放报错26612,求帮助
Action(){
web_url("reg_first",
"URL=http://ceshiyonghu.zshiot.com/Register/reg_first",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://js.data.cctv.com/__aplus_plugin_cctv.js,aplus_plugin_aplus_u.js", ENDITEM,
"Url=../css/fonts/zenicon.eot", ENDITEM,
"Url=../js/layui/lay/modules/form.js", ENDITEM,
"Url=../images/ico-22.png", ENDITEM,
"Url=http://p.data.cctv.com/v.gif?logtype=1&title=%E8%B4%A6%E5%8F%B7%E6%B3%A8%E5%86%8C&pre=&scr=1920x1080&cna=efD0FJIFBhoCASQvoUjbB47z&spm-cnt=0.0.0.0.2906216aIBJ005&v_id=&aplus&&p=1&o=win10&b=ie11&s=1920x1080&w=trident&ism=pc&cache=fa393ae&lver=8.10.4&jsver=aplus_u&flashInfo=32.0.0&colorDepth=24&timeZone=8&tag=1&stag=-1&lstag=-1", ENDITEM,
"Url=../images/ico-03.png", ENDITEM,
"Url=../images/ico-01.png", ENDITEM,
"Url=../js/layui/lay/modules/layer.js", ENDITEM,
"Url=../js/layui/css/modules/layer/default/layer.css?v=3.1.1", ENDITEM,
"Url=../js/layui/css/modules/layer/default/loading-2.gif", ENDITEM,
LAST);
lr_start_transaction("zhuce");
web_submit_data("ValidateLogin",
"Action=http://ceshiyonghu.zshiot.com/Register/ValidateLogin",
"Method=POST",
"RecContentType=application/json",
"Referer=http://ceshiyonghu.zshiot.com/Register/reg_first",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=str", "Value={str}", ENDITEM, //str参数化
LAST);
web_url("reg_second",
"URL=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
"Resource=0",
"RecContentType=text/html",
"Referer=http://ceshiyonghu.zshiot.com/Register/reg_first",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=http://p.data.cctv.com/v.gif?logtype=1&title=%E8%B4%A6%E5%8F%B7%E6%B3%A8%E5%86%8C&pre=http%3A%2F%2Fceshiyonghu.zshiot.com%2FRegister%2Freg_first&scr=1920x1080&cna=efD0FJIFBhoCASQvoUjbB47z&spm-cnt=0.0.0.0.7f79216aowF580&v_id=&aplus&&p=1&o=win10&b=ie11&s=1920x1080&w=trident&ism=pc&cache=e10a7e6&lver=8.10.4&jsver=aplus_u&flashInfo=32.0.0&colorDepth=24&timeZone=8&tag=1&stag=-1&lstag=-1", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str=Z3h4MjIyMQ==&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
"Url=../images/ico-05.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
"Url=../images/pro-24.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
"Url=../images/ico-23.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
"Url=../images/ico-04.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
LAST);
web_submit_data("reg_final",
"Action=http://ceshiyonghu.zshiot.com/Register/reg_final",
"Method=POST",
"RecContentType=application/json",
"Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=login", "Value={str}", ENDITEM,
"Name=pwd", "Value=MTIzYWFh", ENDITEM,
"Name=rpwd", "Value=MTIzYWFh", ENDITEM,
"Name=name", "Value={name}", ENDITEM,
"Name=sex", "Value=0", ENDITEM,
"Name=birthday", "Value=2015-05-05", ENDITEM,
"Name=locationCode", "Value=410500", ENDITEM,
LAST);
web_submit_data("reg_final_2",
"Action=http://ceshiyonghu.zshiot.com/Register/reg_final",
"Method=POST",
"RecContentType=application/json",
"Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=login", "Value={str}", ENDITEM,
"Name=pwd", "Value=MTIzYWFh", ENDITEM,
"Name=rpwd", "Value=MTIzYWFh", ENDITEM,
"Name=name", "Value={name}", ENDITEM,
"Name=sex", "Value=0", ENDITEM,
"Name=birthday", "Value=2015-05-05", ENDITEM,
"Name=locationCode", "Value=410500", ENDITEM,
LAST);
lr_end_transaction("zhuce",LR_AUTO);
return 0;
}
报错:
Action.c(54): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://ceshiyonghu.zshiot.com/Register/reg_final"
Action.c(54): web_submit_data("reg_final") highest severity level was "ERROR", 360 body bytes, 239 header bytes, 12 chunking overhead bytes
直接查看你的快照中的请求报文或者打印你提交的请求报文,然后对比正常访问时的请求报文,找到差异,解决差异。 把服务器返回日志打开,看看服务器都返回了什么。有可能是登录未成功导致的。 把返回日志打开呀。查看详细日志。
Run-time sttting-----log----always send message.--------extended log.
页:
[1]