|
我说的是我测试的系统有记录用户登陆日志的功能,但是我的虚拟用户登陆信息不能记录,请帮我看看下面的代码怎么参数化登陆信息才正确啊,我老参数化错误
Action()
{
web_custom_request("bizserver_4",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x004com.justep.service.action.fscache.GetUpdateKeyActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x07accountS\\x00\\x06HNJYDBzz",
LAST);
web_custom_request("bizserver_5",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.GetRecordsActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00\\x1BBiz:\\x5CSYSTEM\\x5CSYSTEM.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00\\x1BSELECT * FROM TFUNCTREEVIEWS\\x00\\x06paramsNS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x08positionI\\x00\\x00\\x00\\x00S\\x00\\x05countI\\xFF\\xFF\\xFF\\xFFS\\x00\n"
"resultTypeI\\x00\\x00\\x00\\x01zz",
LAST);
/*
* login
*/
lr_rendezvous("rendezvous");
lr_think_time(22);
web_custom_request("bizserver_6",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.GetRecordsActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00\\x1BBiz:\\x5CSYSTEM\\x5CSYSTEM.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00Eselect FVALUE from TORGATTRIBUTE where FGUID = ? and FID = 'PASSWORD'S\\x00\\x06paramsVt\\x00\\x07[objectl\\x00\\x00\\x00\\x01Mt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x01AS\\x00\\x05valueS\\x00{FGUID}\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzzS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x08positionI\\x00\\x00\\x00\\x00S\\x00\\x05countI\\xFF\\xFF\\xFF\\xFFS\\x00\n"
//"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.GetRecordsActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00\\x1BBiz:\\x5CSYSTEM\\x5CSYSTEM.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00Eselect FVALUE from TORGATTRIBUTE where FGUID = ? and FID = 'PASSWORD'S\\x00\\x06paramsVt\\x00\\x07[objectl\\x00\\x00\\x00\\x01Mt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x01AS\\x00\\x05valueS\\x00 E7E332B769E3464EB0BA08BFB57710A7S\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzzS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x08positionI\\x00\\x00\\x00\\x00S\\x00\\x05countI\\xFF\\xFF\\xFF\\xFFS\\x00\n"
"resultTypeI\\x00\\x00\\x00\\x01zz",
LAST);
lr_think_time( 23 );
web_submit_data("GetIpAddr.jsp",
"Action=http://10.232.1.188:7001/x3/GetIpAddr.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=a", "Value=1", ENDITEM,
LAST);
web_custom_request("bizserver_7",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t10.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.ExecuteSQLActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00 Biz:\\x5CDLSCJYYYXT\\x5CDLJYSJK.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00bInsert into RZXXB (GUID,UserName,UserOper,OperTime,OperIpAddress,NetIpAddress) Values(?,?,?,?,?,?)S\\x00\\x06paramsVt\\x00\\x07[objectl\\x00\\x00\\x00\\x06Mt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x04GUIDS\\x00\\x05valueS\\x00 03762F40E9B64733B9A4D2EF6951DF45S\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzMt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x08UserNameS\\x00\\x05valueS\\x00\\x05luoccS\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzMt"
"\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x08UserOperS\\x00\\x05valueS\\x00\\x02鐧诲綍S\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzMt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x08OperTimeS\\x00\\x05valueS\\x00\r1187313892984S\\x00\\x07sqlTypeS\\x00\\x08dateTimeS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\n"
"ftDateTimezMt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\rOperIpAddressS\\x00\\x05valueS\\x00\\x0C10.232.13.87S\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzMt\\x00 com.justep.service.info.SQLParamS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x04nameS\\x00\\x0CNetIpAddressS\\x00\\x05valueS\\x00\r10.232.13.88\n"
"S\\x00\\x07sqlTypeS\\x00\\x06stringS\\x00\tparamTypeS\\x00\tptUnknownS\\x00\\x08dataTypeS\\x00\\x08ftStringzzS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x1CcheckRowsAffectedFailMessageNS\\x00\\x11checkRowsAffectedI\\x00\\x00\\x00\\x00zz",
LAST);
web_custom_request("bizserver_8",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t11.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.GetRecordsActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00\\x1BBiz:\\x5CSYSTEM\\x5CSYSTEM.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00譻elect (OS.FSPACE || OS.FFILENAME) as FORGURL from TORGSYSTEM OS, TORGINDEX OI where OS.FPERSON = 'LUOCC' and OS.FKIND = '.PSM' and OI.FID = 'OrgUnit.Deputy' and OI.FGUID = OS.FGUID and OS.FCLIENTACCOUNT = 'HNJYDB'S\\x00\\x06paramsNS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x08positionI\\x00\\x00\\x00\\x00S\\x00\\x05countI\\xFF\\xFF\\xFF\\xFFS\\x00\n"
"resultTypeI\\x00\\x00\\x00\\x01zz",
LAST);
web_custom_request("bizserver_9",
"URL=http://10.232.1.188:7001/x3/bizserver",
"Method=POST",
"Resource=0",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=",
"BodyBinary=z\\x01\\x00\\x0Cc\\x01\\x00m\\x00\\x07executeMt\\x003com.justep.service.action.database.GetRecordsActionS\\x00\\x08userInfoNS\\x00\\x07transIDNS\\x00\\x10connectionStringMt\\x00&com.justep.connection.ConnectionStringS\\x00\\x06bizurlS\\x00\\x1BBiz:\\x5CSYSTEM\\x5CSYSTEM.DatabaseS\\x00\\x08databaseNzS\\x00\\x0BcommandTextS\\x00譻elect (OS.FSPACE || OS.FFILENAME) as FORGURL from TORGSYSTEM OS, TORGINDEX OI where OS.FPERSON = 'LUOCC' and OS.FKIND = '.PSM' and OI.FID = 'OrgUnit.Deputy' and OI.FGUID = OS.FGUID and OS.FCLIENTACCOUNT = 'HNJYDB'S\\x00\\x06paramsNS\\x00\\x0BdataSetKindI\\x00\\x00\\x00\\x00S\\x00\\x08positionI\\x00\\x00\\x00\\x00S\\x00\\x05countI\\xFF\\xFF\\xFF\\xFFS\\x00\n"
"resultTypeI\\x00\\x00\\x00\\x01zz",
LAST); |
|