|
用LoadRunner url协议录制用c#+ajax+json+iis6开发的web程序,只录制登陆,回放时候不能登录,并提示“数据类型转化失败..”江湖救济 主要在404.ASHX 和137.ASHX处报错
代码:
web_url("Login.aspx",
"URL=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("-1.ashx",
"URL=http://172.0.31.119:8888/web/Main.BJ/-1.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t2.inf",
LAST);
web_url("253.ashx",
"URL=http://172.0.31.119:8888/web/253.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t3.inf",
LAST);
web_url("LoginZm.css",
"URL=http://172.0.31.119:8888/web/Themes/V0/Css/LoginZm.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t4.inf",
LAST);
web_url("520.ashx",
"URL=http://172.0.31.119:8888/web/520.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t5.inf",
LAST);
web_url("234.ashx",
"URL=http://172.0.31.119:8888/web/234.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t6.inf",
LAST);
web_url("110.ashx",
"URL=http://172.0.31.119:8888/web/110.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t7.inf",
LAST);
web_url("369.ashx",
"URL=http://172.0.31.119:8888/web/369.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t8.inf",
LAST);
web_url("404,137.ashx",
"URL=http://172.0.31.119:8888/web/404,137.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t9.inf",
LAST);
web_url("445.ashx",
"URL=http://172.0.31.119:8888/web/445.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t10.inf",
LAST);
web_url("346.ashx",
"URL=http://172.0.31.119:8888/web/346.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t11.inf",
LAST);
web_url("Login.js",
"URL=http://172.0.31.119:8888/web/Main.BJ/Login.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t12.inf",
LAST);
web_url("134.ashx",
"URL=http://172.0.31.119:8888/web/134.ashx",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t13.inf",
LAST);
web_url("VerifyCode.aspx",
"URL=http://172.0.31.119:8888/web/SCM/VerifyCode.aspx",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t14.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("BodyBg.png",
"URL=http://172.0.31.119:8888/web/Themes/V0/Images/LoginZm/BodyBg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t15.inf",
LAST);
web_url("CancelBg.png",
"URL=http://172.0.31.119:8888/web/Themes/V0/Images/LoginZm/CancelBg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t16.inf",
LAST);
web_url("LoginBg.png",
"URL=http://172.0.31.119:8888/web/Themes/V0/Images/LoginZm/LoginBg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t17.inf",
LAST);
web_concurrent_end(NULL);
lr_think_time(9);
web_custom_request("404.ashx",
"URL=http://172.0.31.119:8888/web/404.ashx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t18.inf",
"Mode=HTTP",
"EncType=application/soap+xml; charset=utf-8",
"Body=[\"WL\",\"123456\",\"\"][]",
LAST);
web_custom_request("137.ashx",
"URL=http://172.0.31.119:8888/web/137.ashx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.0.31.119:8888/web/Main.BJ/Login.aspx",
"Snapshot=t19.inf",
"Mode=HTTP",
"EncType=application/soap+xml; charset=utf-8",
"Body=[][]",
LAST); |
|