|
做一个系统的登录操作,关键代码如下:
web_custom_request("crud_3",
"URL=http://10.136.6.99:7010/hncjb/reports/crud",
"Method=POST",
"Resource=0",
"RecContentType=text/json",
"Referer=http://10.136.6.99:7010/hncjb/pages/html/index.html",
"Snapshot=t57.inf",
"Mode=HTTP",
"EncType=multipart/form-data;charset=utf-8",
"Body={\"serviceid\":\"loadIcons\",\"target\":\"\",\"sessionid\":null,\"loginname\":\"test39\",\"password\":\"21218cca77804d2ba1922c33e0151105\",\"params\":{\"clienttype\":\"jquery\"},\"datas\":[{\"clienttype\":\"jquery\"}]}",
LAST);
首先根据server response返回的sessionid执行关联,关联代码如下:
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=\"sessionid\":",
"RB=,",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/crud*",
LAST);
回放显示关联成功,数据提交的也没错:
Action.c(477): Notify: Parameter Substitution: parameter "登录名" = "test39"
Action.c(477): Notify: Next row for parameter 密码 = 1 [table = 密码].
Action.c(477): Notify: Parameter Substitution: parameter "密码" = "21218cca77804d2ba1922c33e0151105"
Action.c(477): Notify: Saving Parameter "CorrelationParameter_3 = "DRPyJ3SLh1bWNvHz1kqSpzFHb81cQMvFxGHtbDgK4LmSPGpN644v!-277386645!1417105995235"".
Action.c(477): web_custom_request("crud_3") was successful, 329 body bytes, 237 header bytes, 16 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(491): Registering web_reg_save_param_ex was successful [MsgId: MMSG-26390]
但是发现数据库中无test用户的登录记录,请问下我是哪个地方弄错了吗,折腾了很久还是没弄出来,急!!!! |
|