cibtest 发表于 2011-9-13 18:41:14

求助脚本录制问题

请假大家一个问题,我现在的被测程序客户端和服务端采用的是http协议
如图:
选择客户名称时会弹出一个选择窗口,选择了客户后,点击确定,会自动带出客户规模客、客户分类情况以及客户所在行业,点击提交后生成如下代码,回放肯定不成功,是不是LR无法识别选择框还是怎么回事,求大家指点
web_custom_request("dataengine_5",
                "URL=http://168.7.61.150:7206/cocrm/servlet/dataengine",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://168.7.61.150:7206/cocrm/jsp/app/mkt/manage/tmktsaleteam_add.jsp?op=add",
                "Snapshot=t14.inf",
                "Mode=HTML",
                "EncType=",
                "Body={id:\"Command_Save\",action:\"com~2ecib~2ecocrm~2emkt~2eweb~2eTmktSaleTeamAction\",method:\"synchronizeData\",datasets:[{id:\"Dataset_TmktSaleTeam\",pageNo:1,pageSize:10,calculateTotalSize:true,fields:[{name:\"id\",label:\"id\",maxLength:-1,dataType:\"string\"},{name:\"teamName\",label:\"^56e2^961f^540d^79f0\",maxLength:60,dataType:\"string\"},{name:\"teamRemark\",label:\"teamRemark\",maxLength:60,dataType:\"string\"},{name:\"teamStats\",label:\"teamStats\",maxLength:2,dataType:\"string\"},"
                "{name:\"projectCharger\",label:\"^56e2^961f^8d1f^8d23^4eba\",maxLength:64,dataType:\"string\"},{name:\"projectName\",label:\"^56e2^961f^8d1f^8d23^4eba\",maxLength:60,dataType:\"string\"},{name:\"teamRole\",label:\"teamRole\",maxLength:2,dataType:\"string\"},{name:\"disbandCode\",label:\"disbandCode\",maxLength:2,dataType:\"string\"},{name:\"dataFrom\",label:\"dataFrom\",maxLength:2,dataType:\"string\"},{name:\"summarize\",label:\"summarize\",maxLength:400,dataType:\"string\"},{name:\"fileId\","
                "label:\"fileId\",maxLength:200,dataType:\"string\"},{name:\"fileName\",label:\"fileName\",maxLength:100,dataType:\"string\"},{name:\"createUser\",label:\"createUser\",maxLength:32,dataType:\"string\"},{name:\"createTime\",label:\"createTime\",maxLength:19,dataType:\"string\"},{name:\"lastUpdUser\",label:\"lastUpdUser\",maxLength:32,dataType:\"string\"},{name:\"lastUpdTime\",label:\"lastUpdTime\",maxLength:19,dataType:\"string\"},{name:\"misc\",label:\"misc\",maxLength:10,dataType:\"string\"},{name"
                ":\"remark1\",label:\"remark1\",maxLength:60,dataType:\"string\"},{name:\"remark2\",label:\"remark2\",maxLength:60,dataType:\"string\"},{name:\"remark3\",label:\"remark3\",maxLength:60,dataType:\"string\"},{name:\"custName\",label:\"^5ba2^6237^540d^79f0\",maxLength:50,dataType:\"string\"},{name:\"bsnopp\",label:\"bsnopp\",maxLength:20,dataType:\"string\"},{name:\"custBed\",label:\"^5ba2^6237^5206^5c42\",maxLength:2,dataType:\"string\"},{name:\"custKind\",label:\"^5ba2^6237^5206^7c7b\",maxLength:60,"
                "dataType:\"string\"},{name:\"custIndustry\",label:\"^5ba2^6237^6240^5728^884c^4e1a\",maxLength:20,dataType:\"string\"},{name:\"custMainOrg\",label:\"^5ba2^6237^6240^5c5e^673a^6784\",maxLength:32,dataType:\"string\"},{name:\"mainOrgName\",label:\"mainOrgName\",maxLength:64,dataType:\"string\"},{name:\"cfpId\",label:\"cfpId\",maxLength:32,dataType:\"string\"},{name:\"busiName\",label:\"^5546^673a^540d^79f0\",maxLength:20,dataType:\"string\"},{name:\"unitName\",label:\"^56e2^961f^6240^5c5e^673a^6784^"
                "540d^79f0\",maxLength:64,dataType:\"string\"},{name:\"updUser\",label:\"updUser\",maxLength:32,dataType:\"string\"},{name:\"teamPersonName\",label:\"teamPersonName\",maxLength:100,dataType:\"string\"},{name:\"teamPersonRole\",label:\"teamPersonRole\",maxLength:60,dataType:\"string\"},{name:\"planObj\",label:\"^8ba1^5212^76ee^6807\",maxLength:400,dataType:\"string\"},{name:\"baseInfo\",label:\"^5ba2^6237^57fa^672c^60c5^51b5^53ca^5206^6790\",maxLength:400,dataType:\"string\"},{name:\"custReq\",label"
                ":\"^5ba2^6237^9700^6c42\",maxLength:400,dataType:\"string\"},{name:\"companal\",label:\"^7ade^4e89^5bf9^624b\",maxLength:400,dataType:\"string\"},{name:\"salestep\",label:\"^8425^9500^63aa^65bd^548c^6b65^9aa4\",maxLength:500,dataType:\"string\"},{name:\"noteFlag\",label:\"noteFlag\",maxLength:2,dataType:\"string\"},{name:\"custUnit\",label:\"custUnit\",maxLength:6,dataType:\"string\"},{name:\"oldID\",label:\"oldID\",maxLength:32,dataType:\"string\"},{name:\"busiID\",label:\"busiID\",maxLength:-1,"
                "dataType:\"integer\"},{name:\"staffRole\",label:\"StaffRole\",maxLength:4,dataType:\"string\"},{name:\"staffStatus\",label:\"StaffStatus\",maxLength:4,dataType:\"string\"},{name:\"createOrg\",label:\"^521b^5efa^673a^6784\",maxLength:32,dataType:\"string\"},{name:\"staffId\",label:\"staffId\",maxLength:32,dataType:\"string\"},{name:\"relaStatus\",label:\"^5173^7cfb^72b6^6001\",maxLength:2,dataType:\"string\"}],records:[{isCurrent:true,state:1,newDatas:[\"~25~40~7c~24\",\"ceshi\",\"~25~40~7c~24\",\""
                "~25~40~7c~24\",\"1E848D23FFFFFF9661D661D635C2C12A\",\"1111khgly01\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"ceshi\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"^4e0a^6d77^9759^6cf0^6295^8d44^7ba1^7406^6709^9650^516c^53f8\",\"~25~40~7c~24\",\"1\",\"1\",\"1\",\"~25~40~7c~24\",\"^4e0a^6d77^5206^884c^9759^5b89A^4e1a^52a1^90e8\",\"2100409701\",\"~25~40~7c~24\",\"^"
                "4e0a^6d77^5206^884c^9759^5b89A^4e1a^52a1^90e8\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"ceshi\",\"ceshi\",\"ceshi\",\"ceshi\",\"ceshi\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"~25~40~7c~24\",\"1D9CEBACFFFFFF9609C409C4888A49C4\",\"1E848D23FFFFFF9661D661D635C2C12A\",\"~25~40~7c~24\"]}]}]}",
                EXTRARES,
                "Url=../resources/skins/blue/msgbox/icon-info.gif", "Referer=http://168.7.61.150:7206/cocrm/jsp/app/mkt/manage/tmktsaleteam_add.jsp?op=add", ENDITEM,
                "Url=../resources/skins/blue/msgbox/icon-question.gif", "Referer=http://168.7.61.150:7206/cocrm/jsp/app/mkt/manage/tmktsaleteam_add.jsp?op=add", ENDITEM,
                LAST);

cibtest 发表于 2011-9-13 18:56:02

大家帮忙看看呗!

msnshow 发表于 2011-9-13 21:21:46

LR只模拟服务器与客户端之间的信息传递,是不管是不是点击的

shigejinian1 发表于 2011-9-14 11:54:27

试试直接传 客户名称这个字段试试
页: [1]
查看完整版本: 求助脚本录制问题