|
4#
楼主 |
发表于 2008-3-10 13:17:15
|
只看该作者
按zee的说法,对"\"加上 转义,
如liangjz 所说加上 lr_error_message()检查语句
//-------------------------
//http1=C05D000944884C36EA5BF229C097CD9E
//script1=943CCB2195F6593F3717E2ADB76366F5231
web_set_max_html_param_len("1024");
web_reg_save_param("http1",
"LB/IC=httpSessionId=",
"RB/IC=\\nscriptSessionId=",
"Ord=all",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_save_param("script1",
"LB/IC=scriptSessionId=",
"RB/IC=\\n",
"Ord=all",
"Search=Body",
"RelFrameId=1",
LAST);
web_custom_request("User.login.dwr",
"URL=http://www.jingmaoju.com:9090/dwr/call/plaincall/User.login.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://www.jingmaoju.com:9090/",
"Snapshot=t18.inf",
"EncType=text/plain",
"Body=callCount=1\npage=/\nhttpSessionId={http1}\nscriptSessionId={script1}\nc0-scriptName=User\nc0-methodName=login\nc0-id=0\nc0-param0=string:lq\nc0-param1=string:123\nc0-param2=string:\nc0-param3=string:\nbatchId=0\n",
LAST);
//output the value
lr_error_message("http1 value is %s",lr_eval_string("{http1}"));
lr_error_message("script1 value is %s",lr_eval_string("{script1}"));
=====================================
执行后的报告如下:(录制方式URL_based script)
---------------------------------
Action.c(175): if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'java.lang.SecurityException
Action.c(175): ', message:'Session Error' });\r\n
Action.c(175): else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'j
Action.c(175): ava.lang.SecurityException', message:'Session Error' });\r\n
Action.c(175): t=11939ms: Request done "http://www.jingmaoju.com:9090/dwr/call/plaincall/User.login.dwr" [MsgId: MMSG-26000]
Action.c(175): Error -26377: No match found for the requested parameter "http1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(175): Notify: Saving Parameter "http1_count = 0"
Action.c(175): Error -26377: No match found for the requested parameter "script1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(175): Notify: Saving Parameter "script1_count = 0"
Action.c(175): web_custom_request("User.login.dwr") highest severity level was "ERROR", 284 body bytes, 252 header bytes [MsgId: MMSG-26388]
Ending action Action.
--------------------------
错误报告是什么意思,我用URL_base script 方式录制(OA是采用AJAX技术)
|
|