|
我在做CS架构的性能测试时,后台有返回动态的SESSIONID,在网上找了资料说LODARUNNER中可以解决这个问题,我就在系统登录后,定义了web_reg_save_param,并把服务器返回的jsessionid值rBDIzBcAShuxUJ0zAU7HKkxTiarCXNZRsesA,替换成{jsessionid},角本运行时,还是提示dl.c(22): Error -26377: No match found for the requested parameter "jsessionid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
dl.c(22): web_custom_request("MainServlet;jsessionid=rBDIzBcAShuxUJ0zAU7HKkxTiarCXNZRsesA") highest severity level was "ERROR", 299 body bytes, 263 header bytes [MsgId: MMSG-26388],有高手知道是怎么回事吗?能帮忙解决一下吗?
dl()
{ //系统登录,输入用户名和密码后,点登录后的代码
web_custom_request("MainServlet",
"URL=http://172.16.200.204:5888/ieaf/MainServlet",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=text/xml",
"Body=<?xml version=\"1.0\"?><Envelope><Header><system><para usr=\"admin\" /><para pwd=\"123456\" /><para funid=\"F00.00.00.00\" /></system></Header><Body><business><para version=\"1.2\" /></business></Body></Envelope>",
LAST);
//定义jessionid参数
web_reg_save_param("jsessionid",
"LB=rBDIzBash",
"RB=A",
"Search=Headers",
LAST);
//把参数jsessionid=rBDIzBcAShuxUJ0zAU7HKkxTiarCXNZRsesA替换成jsessionid={jsessionid}
web_custom_request("MainServlet;jsessionid={jsessionid}",
"URL=http://172.16.200.204:5888/ieaf/MainServlet;jsessionid={jsessionid}",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=text/xml",
"Body=<?xml version=\"1.0\"?><Envelope><Header><system><para usr=\"admin\" /><para pwd=\"jysmk\" /><para funid=\"F06.01.02.06\" /></system></Header><Body><business><para serid=\"\" /></business></Body></Envelope>",
LAST);
return 0;
}
[ 本帖最后由 rosylucky1976 于 2009-5-31 17:09 编辑 ] |
|