51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 代码过段时间功能不能实现

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-3-14 08:58:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
早上录制的代码正常运行10个复选框都选中的操作,怎么下午一跑代码就一个复选框都选不中了,重新录制代码,也是过一段时间就不行了,,,以下是这个动作的代码,红色为参数化位置,
web_submit_data("ShowResource,resourceForm.sdirect_2",
                "Action=http://10.2.2.101/pams/resource/ShowResource,resourceForm.sdirect",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://10.2.2.101/pams/resource/ShowResource,resourceForm.sdirect",
                "Snapshot=t7.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=formids", "Value=displayColumn,searchMap,tempList,linkType,linkTypeOrDoc,bookType,addResource,statusedit,statuswattcheck,statusfailed,statuschecked,statuspublish,statusdisabled,chooseResourceBag,batchEdit,batchDelete,batchEditResource,exportResource,tradconvert,If,If_0,searchType,searchName,searchKeyword,searchStatus,searchCreateBeginDate,searchCreateEndDate,searchModifyBeginDate,searchModifyEndDate,searchBeginId,searchEndId,If_1,searchList,searchNameText,searchNameText_0,searchNameText_1,selectCatalog,bSearch,searchSubmit,hiddenCurrentPage,hiddenPageCount,hiddenStartPage,hiddenStopPage,linkFirst,linkBack,linkPage,linkPage_0,linkPage_1,linkPage_2,linkPage_3,linkPage_4,linkFwd,linkLast,pagenum,go,condSorted,condSorted_0,condSorted_1,condSorted_2,condSorted_3,condSorted_4,condSorted_5,condSorted_6,condSorted_7,condSorted_8,iterRows,checkbox,textResourceName,vindicatelink,checkbox_0,textResourceName_0,vindicatelink_0,checkbox_1,textResourceName_1,vindicatelink_1,checkbox_2,textResourceName_2,vindicatelink_2,checkbox_3,tex"
                "tResourceName_3,vindicatelink_3,checkbox_4,textResourceName_4,vindicatelink_4,checkbox_5,textResourceName_5,vindicatelink_5,checkbox_6,textResourceName_6,vindicatelink_6,checkbox_7,textResourceName_7,vindicatelink_7,checkbox_8,textResourceName_8,vindicatelink_8,checkbox_9,textResourceName_9,vindicatelink_9,checkbox_10,textResourceName_10,vindicatelink_10,checkbox_11,textResourceName_11,vindicatelink_11,checkbox_12,textResourceName_12,vindicatelink_12,checkbox_13,textResourceName_13,vindicatelink_13,checkbox_14,textResourceName_14,vindicatelink_14,checkbox_15,textResourceName_15,vindicatelink_15,checkbox_16,textResourceName_16,vindicatelink_16,checkbox_17,textResourceName_17,vindicatelink_17,checkbox_18,textResourceName_18,vindicatelink_18,hiddenCurrentPage_0,hiddenPageCount_0,hiddenStartPage_0,hiddenStopPage_0,linkFirst_0,linkBack_0,linkPage_5,linkPage_6,linkPage_7,linkPage_8,linkPage_9,linkPage_10,linkFwd_0,linkLast_0,pagenum_0,go_0,If_2", ENDITEM,
                "Name=submitmode", "Value=", ENDITEM,
                "Name=submitname", "Value=statusdisabled", ENDITEM,
                "Name=displayColumn", "Value=S!id:编号:id,!editName:资源名称:editName,=displayResourceType,!keyword:关键字:keyword,=displayStatus,!detail:查看:detail,!vindicate:维护:vindicate,!link:链接:link,!right:赋权:right,!delete:删除:delete", ENDITEM,
                "Name=searchMap", "Value=X", ENDITEM,
                "Name=tempList", "Value=ZH4sIAAAAAAAAAFvzloG1uIhBOCuxLFGvtCQzR8+xqCix0iezuKSi8ZLszOOJc5kZGD0ZWIozq1IrChgYGJjLWYAkF1CTenJ+rl5icUFmUapeQWJuMZBIT9XLSM0pSC3SC05NLErOcMtMzUk5/+VUfLMOowQTA7MPA0teYm5qCYOQD8hG/ZzEvHT94JKizLx0ax8G1pLMkpzUQoY6kELWssScUginoqCEgTUzr6Qov4SB52lb69N1O5+va3iyu7ugGCTPVMLAnpyfV5KaVwKUf7Z28bNp7RBVcHm24vzSouRUuPZnc5c+2zWhoAIAgtB0kf8AAAA=", ENDITEM,
                "Name=linkType", "Value=F", ENDITEM,
                "Name=linkTypeOrDoc", "Value=T", ENDITEM,
                "Name=bookType", "Value=F", ENDITEM,
                "Name=If", "Value=F", ENDITEM,
                "Name=If_0", "Value=F", ENDITEM,
                "Name=If_1", "Value=F", ENDITEM,
                "Name=searchList", "Value=VOrO0ABXNyACdjb20uYXNwaXJlLnBhbXMucGFnZS5oZWxwZXIuU2VhcmNoRmllbGTP9MpfgywBGAIAA0wABG5hbWV0ABJMamF2YS9sYW5nL1N0cmluZztMAAV0aXRsZXEAfgABTAAFdmFsdWVxAH4AAXhwdAAFaW50cm90AAzlhoXlrrnnroDku4tw", ENDITEM,
                "Name=searchList", "Value=VOrO0ABXNyACdjb20uYXNwaXJlLnBhbXMucGFnZS5oZWxwZXIuU2VhcmNoRmllbGTP9MpfgywBGAIAA0wABG5hbWV0ABJMamF2YS9sYW5nL1N0cmluZztMAAV0aXRsZXEAfgABTAAFdmFsdWVxAH4AAXhwdAAHY29udGVudHQADOato+aWh+WGheWuuXA=", ENDITEM,
                "Name=searchList", "Value=VOrO0ABXNyACdjb20uYXNwaXJlLnBhbXMucGFnZS5oZWxwZXIuU2VhcmNoRmllbGTP9MpfgywBGAIAA0wABG5hbWV0ABJMamF2YS9sYW5nL1N0cmluZztMAAV0aXRsZXEAfgABTAAFdmFsdWVxAH4AAXhwdAAGc291cmNldAAM5YaF5a655p2l5rqQcA==", ENDITEM,
                "Name=bSearch", "Value=F", ENDITEM,
                "Name=hiddenCurrentPage", "Value=2", ENDITEM,
                "Name=hiddenPageCount", "Value=45", ENDITEM,
                "Name=hiddenStartPage", "Value=1", ENDITEM,
                "Name=hiddenStopPage", "Value=7", ENDITEM,
                "Name=condSorted", "Value=F", ENDITEM,
                "Name=condSorted_0", "Value=F", ENDITEM,
                "Name=condSorted_1", "Value=F", ENDITEM,
                "Name=condSorted_2", "Value=F", ENDITEM,
                "Name=condSorted_3", "Value=F", ENDITEM,
                "Name=condSorted_4", "Value=F", ENDITEM,
                "Name=condSorted_5", "Value=F", ENDITEM,
                "Name=condSorted_6", "Value=F", ENDITEM,
                "Name=condSorted_7", "Value=F", ENDITEM,
                "Name=condSorted_8", "Value=F", ENDITEM,
                Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600954", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600953", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600952", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600951", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600950", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600949", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600948", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600947", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600946", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600945", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600944", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600943", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600942", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600941", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600940", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600939", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600938", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600937", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600936", ENDITEM,
                "Name=iterRows", "Value=Vhcom.aspire.pams.object.Doc:600935", ENDITEM, // 这些数据都是在变的,没有修改过,,但是把这些删除了效果也是一样的                  "Name=hiddenCurrentPage_0", "Value=2", ENDITEM,
                "Name=hiddenPageCount_0", "Value=45", ENDITEM,
                "Name=hiddenStartPage_0", "Value=1", ENDITEM,
                "Name=hiddenStopPage_0", "Value=7", ENDITEM,
                "Name=If_2", "Value=F", ENDITEM,
                "Name=searchType", "Value=2", ENDITEM,
                "Name=searchName", "Value=", ENDITEM,
                "Name=searchKeyword", "Value=", ENDITEM,
                "Name=searchStatus", "Value=-1", ENDITEM,
                "Name=searchCreateBeginDate", "Value=", ENDITEM,
                "Name=searchCreateEndDate", "Value=", ENDITEM,
                "Name=searchModifyBeginDate", "Value=", ENDITEM,
                "Name=searchModifyEndDate", "Value=", ENDITEM,
                "Name=searchBeginId", "Value=-1", ENDITEM,
                "Name=searchEndId", "Value=-1", ENDITEM,
                "Name=searchNameText", "Value=", ENDITEM,
                "Name=searchNameText_0", "Value=", ENDITEM,
                "Name=searchNameText_1", "Value=", ENDITEM,
                "Name=selectCatalog", "Value=0", ENDITEM,
                "Name=pagenum", "Value=2", ENDITEM,
                "Name={ofline}", "Value=on", ENDITEM,
                "Name=textResourceName", "Value=33963030", ENDITEM,
                "Name=textResourceName_0", "Value=07724162", ENDITEM,
                "Name=textResourceName_1", "Value=12083353", ENDITEM,
                "Name=textResourceName_2", "Value=88071640", ENDITEM,
                "Name=textResourceName_3", "Value=19950293", ENDITEM,
                "Name=textResourceName_4", "Value=73187651", ENDITEM,
                "Name=textResourceName_5", "Value=54542284", ENDITEM,
                "Name=textResourceName_6", "Value=03132058", ENDITEM,
                "Name=textResourceName_7", "Value=99813273", ENDITEM,
                "Name=textResourceName_8", "Value=24326536", ENDITEM,
                "Name=textResourceName_9", "Value=87474307", ENDITEM,
                "Name=textResourceName_10", "Value=21070960", ENDITEM,
                "Name=textResourceName_11", "Value=73525035", ENDITEM,
                "Name=textResourceName_12", "Value=58655375", ENDITEM,
                "Name=textResourceName_13", "Value=57235292", ENDITEM,
                "Name=textResourceName_14", "Value=91717971", ENDITEM,
                "Name=textResourceName_15", "Value=08489069", ENDITEM,
                "Name=textResourceName_16", "Value=75536077", ENDITEM,
                "Name=textResourceName_17", "Value=09299075", ENDITEM,
                "Name=textResourceName_18", "Value=42242010", ENDITEM,
                "Name=pagenum_0", "Value=1", ENDITEM,
                EXTRARES,
                "Url=../img/Toolbar_bg.png", ENDITEM,
                "Url=../img/ToolbarLine.png", ENDITEM,
                "Url=../img/search_bg.png", ENDITEM,
                "Url=../img/search_button.png", ENDITEM,
                "Url=../img/menu_hover.png", "Referer=http://10.2.2.101/pams/Home,loginform.sdirect;jsessionid=191CF3D2178522BF46F44B5626333539", ENDITEM,
                "Url=../img/menu_normal.png", "Referer=http://10.2.2.101/pams/Home,loginform.sdirect;jsessionid=191CF3D2178522BF46F44B5626333539", ENDITEM,
                "Url=../img/Search_hover.png", "Referer=http://10.2.2.101/pams/Home,loginform.sdirect;jsessionid=191CF3D2178522BF46F44B5626333539", ENDITEM,
                "Url=../img/Search_normal.png", "Referer=http://10.2.2.101/pams/Home,loginform.sdirect;jsessionid=191CF3D2178522BF46F44B5626333539", ENDITEM,
                LAST);
   

红色部分为参数化的数据是一个复选框
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    郁闷
    2015-6-16 14:29
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2008-3-14 09:19:24 | 只看该作者
    找出“Value=Vhcom.aspire.pams.object.Doc:600954”的规律,然后参数化,如果出错,可设置调试代码检查一些,比如日志输出的方式。出错的原因,个人估计是因为选择的复选框id变了,所以导致无法选中。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2014-12-26 13:34
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
    发表于 2008-3-14 10:32:10 | 只看该作者

    疑问:

    是不是开发有更新程序呀?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2008-3-14 15:42:58 | 只看该作者
    回3#程序没有更新,因为是俺们在作性能,所以后台是没有人动的,,,,
    回2#复选框ID不变的吧!!每页现实20条,复选框的顺序为 checkbox ,checkbox_0, checkbox_1............,checkbox_18
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-7 03:43 , Processed in 0.066753 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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