51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1936|回复: 3
打印 上一主题 下一主题

[原创] 求助脚本录制问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 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);

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-9-13 18:56:02 | 只看该作者
大家帮忙看看呗!
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    3#
    发表于 2011-9-13 21:21:46 | 只看该作者
    LR只模拟服务器与客户端之间的信息传递,是不管是不是点击的
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2011-9-14 11:54:27 | 只看该作者
    试试直接传 客户名称这个字段试试
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-11 03:28 , Processed in 0.077170 second(s), 29 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表