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): 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): 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]