|
我对某系统 java开发的web,其中用到了ajax技术的,在录制表单提交时,选择了一些下拉菜单的选项,回放不报错,但是数据没插进去,目前还没有找到原因,希望有人能帮忙解决一下,以下是我录制的脚本片段:
lr_start_transaction("add");
lr_think_time(11);
web_url("smartweb2.showRPCLoadingTip.d",
"URL=http://192.168.0.74:8085/gdp4.0/bplat/smartweb2.showRPCLoadingTip.d?skin=default",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
web_url("smartweb2.showRPCSubmitter.d",
"URL=http://192.168.0.74:8085/gdp4.0/bplat/smartweb2.showRPCSubmitter.d",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.74:8085/gdp4.0/bplat/smartweb2.showRPCLoadingTip.d?skin=default",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
web_add_auto_header("Cache-Control",
"no-cache");
// [WCSPARAM WCSParam_Diff1 4 true] Parameter {WCSParam_Diff1} created by Correlation Studio
web_reg_save_param( "WCSParam_Diff1", "LB=result succeed=\"", "RB=\"", "Ord=1", "Search=Body", "RelFrameId=1", LAST );
web_submit_data("lube.update.d",
"Action=http://192.168.0.74:8085/gdp4.0/lube.update.d?__rpc=true&__rpcAgent=true",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.74:8085/gdp4.0/bplat/smartweb2.showRPCSubmitter.d",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=__type", "Value=updateData", ENDITEM,
"Name=__xml", "Value=<rpc transaction=\"10\" method=\"insertData\"><def><dataset type=\"wrapper\" id=\"datasetUser\" objectClazz=\"com.gever.gdp.sysman.entity.User\"><f name=\"fid\"/><f name=\"userCode\"/><f name=\"userName\"/><f name=\"caCard\"/><f name=\"passWord\"/><f name=\"sex\" type=\"3\"/><f name=\"accountName\"/><f name=\"adminLevelId\"/><f name=\"adminLevelName\"/><f name=\"userTypeId\"/><f name=\"typeName\"/><f name=\"userGrade\" type=\"3\"/><f name=\"validation\" type=\"3\"/><f name=\""
"idCard\"/><f name=\"fisinterface\" type=\"3\"/><f name=\"phoneOne\"/><f name=\"phoneTwo\"/><f name=\"fax\"/><f name=\"email\"/><f name=\"faddress\"/><f name=\"postCode\"/><f name=\"homePage\"/><f name=\"userDesc\"/><f name=\"createDate\" type=\"10\"/><f name=\"limitDate\" type=\"10\"/><f name=\"orgsName\"/><f name=\"rolesId\"/><f name=\"rolesName\"/><f name=\"stationsId\"/><f name=\"stationsName\"/><f name=\"deptsId\"/><f name=\"deptsName\"/><f name=\"select\" type=\"9\"/><f name=\"forgtempId\"/>"
"<f name=\"isAdmin\" type=\"3\"/><f name=\"userBid\" type=\"5\"/><f name=\"caKey\"/><ps><p name=\"nodeId\">4ece821210a84562a44db3fff484786a</p><p name=\"orgVo\"></p><p name=\"fyear\">2011</p><p name=\"userVo\">com.gever.gdp.sysman.login.vo.UserVO@d67f82</p></ps></dataset></def><data><rs dataset=\"datasetUser\"><r id=\"10121\" state=\"insert\"><n><v s=\"1\">0001</v><v>asd</v><v s=\"2\">1</v><v s=\"1\">402886bb23da33ae0123df80e51a000d</v><v>%u603B%u7ECF%u7406</v><v s=\"2\">3</v><v>1</v><v s=\"1\">1</"
"v><v s=\"10\">ddd</v><v s=\"7\">4ece821210a84562a44db3fff484786a</v></n></r></rs></data><ps><p name=\"_resolver\">UserView</p></ps><vps><p name=\"__profileKeys\" type=\"0\">tableUser%3Bgever.gdp.sysman.user.tableUser</p></vps></rpc>", ENDITEM,
"Name=__viewInstanceId", "Value=com.gever.gdp.sysman.user.viewmodel.User~com.gever.gdp.lube.view.bplat.SecurityViewModel", ENDITEM,
LAST);
web_add_header("Pragma",
"no-cache");
web_custom_request("smartweb2.RPC.d_3",
"URL=http://192.168.0.74:8085/gdp4.0/bplat/smartweb2.RPC.d?__rpc={WCSParam_Diff1}",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.0.74:8085/gdp4.0/gever/gdp/sysman/user/userview.jsp?sys_menu_id=402886ad23789be2012378d401d40002",
"Snapshot=t16.inf",
"Mode=HTML",
"Body=__type=loadData&__viewInstanceId=com.gever.gdp.sysman.user.viewmodel.User~com.gever.gdp.lube.view.bplat.SecurityViewModel&__xml="
"%3Crpc%20id%3D%22datasetUser%22%20type%3D%22wrapper%22%20objectClazz%3D%22com.gever.gdp.sysman.entity.User%22%20pi%3D%221%22%20ps%3D%2230%22%20pc%3D%221%22%20prc%3D%221%22%20fs%3D%22fid%2CuserCode%2CuserName%2CcaCard%2CpassWord%2Csex%2CaccountName%2CadminLevelId%2CadminLevelName%2CuserTypeId%2CtypeName%2CuserGrade%2Cvalidation%2CidCard%2Cfisinterface%2CphoneOne%2CphoneTwo%2Cfax%2Cemail%2Cfaddress%2CpostCode%2ChomePage%2CuserDesc%2CcreateDate%2ClimitDate%2CorgsName%2CrolesId%2CrolesName%2CstationsI"
"d%2CstationsName%2CdeptsId%2CdeptsName%2Cselect%2CforgtempId%2CisAdmin%2CuserBid%2CcaKey%22%3E%3Cps%3E%3Cp%20name%3D%22nodeId%22%3E4ece821210a84562a44db3fff484786a%3C/p%3E%3Cp%20name%3D%22orgVo%22%3E%3C/p%3E%3Cp%20name%3D%22fyear%22%3E2011%3C/p%3E%3Cp%20name%3D%22userVo%22%3Ecom.gever.gdp.sysman.login.vo.UserVO@d67f82%3C/p%3E%3C/ps%3E%3Cvps%3E%3Cp%20name%3D%22__profileKeys%22%3EtableUser%253Bgever.gdp.sysman.user.tableUser%3C/p%3E%3C/vps%3E%3C/rpc%3E%0D%0A&1294384788415",
LAST);
lr_end_transaction("add",LR_AUTO); |
|