51Testing软件测试论坛

标题: 各位高手过来看看,求帮助,云层help,急!! [打印本页]

作者: wangyueyong1    时间: 2011-5-26 12:49
标题: 各位高手过来看看,求帮助,云层help,急!!
网页源代码如下:
/ ---- gaoyi 2010-050-31 分摊信息显示 end
</script>
</head>
<body>
<form name="sixFeeCommonForm" method="post" action="/nfssc/trfficfees.Create.do?cmd=save">
  <input type="hidden" name="archiveStatus" value="0" />
  <input type="hidden" name="modifiableCmd" value="true" />
  <input type="hidden" name="operateMode" value="edit" />
        <input type="hidden" name="tempOrderNum" value=""/>
  <input type="hidden" name="sixFeeCommonVo.writeoffInstanceVo.messageId" value="2c989619302102ff01302a29807605b7">      
     
我要关联的是messageid的值可关联到的内容为:Action.c(924): Notify: Saving Parameter "messageid = 92ead9e609ffc7aa9b45a1a7df31684b"/>\r\n  \r\n
求解答
作者: wangyueyong1    时间: 2011-5-26 12:55
还有一个关联不到其内容:
关联脚本如下:        web_reg_save_param("writeoffId",
                "LB= writeoffId='",
                "RB=';",
                "Ord=1",
                "Search=NoResource",
                LAST);

/选择预算项目
function selectBudgetItem(){
        //var bsId = document.all("sixFeeCommonVo.writeoffInstanceVo.budgetSetId").value;               
        var writeoffId = "2c989619302102ff01302a29817005b8";
        var buildFeeObj=document.getElementsByName("sixFeeCommonVo.writeoffInstanceVo.buildFee")[0];
        var buildFee ="" ;
        if(buildFeeObj)
                buildFee=buildFeeObj.value;




repaly log中提示的错误是
Action.c(924): Error -26377: No match found for the requested parameter "writeoffId". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Action.c(924): Notify: Saving Parameter "writeoffId = "
Action.c(924): web_url("wfclient.fs.fsCreateLdProcess.do") highest severity level was "ERROR", 14311 body bytes, 551 header bytes          [MsgId: MMSG-26388]
Action.c(924): Notify: Transaction "交通费" ended with "Fail" status (Duration: 0.4695 Wasted Time: 0.0449).
作者: superliming    时间: 2011-5-26 13:42
左右边界不对吧
作者: wangyueyong1    时间: 2011-5-26 15:56
我是这样关联的web_reg_save_param("messageid",
                "LB=\" value=\"",
                "RB=\"",
                "Ord=1",
                "Search=NoResource",
                LAST);
作者: sknife    时间: 2011-5-26 16:17
是第一个问题嘛?按理说也不会关联不上, 你把 ‘Ord=1“改成’Ord=5‘试下。
作者: scntwa    时间: 2011-5-26 18:20
回复 1# wangyueyong1


    这个问题是因为能匹配的值有好几个,ord=1 决定了lr取第一个。能把完整的response的内容贴上来吗?
作者: scntwa    时间: 2011-5-26 18:22
还有一个关联不到其内容:
关联脚本如下:        web_reg_save_param("writeoffId",
                "LB= writeoffId='",
                 ...
wangyueyong1 发表于 2011-5-26 12:55


这是因为你上下文不对,应该是双引号 你写成了单引号。
这样试下   
web_reg_save_param("writeoffId",
                "LB= writeoffId=\"",
作者: wangyueyong1    时间: 2011-5-26 21:36
没用,还是关联不上
作者: wangyueyong1    时间: 2011-5-26 21:41
他每刷出这个页面,都有一个新的随机数字,但源码中中看到的是:
<script type="text/javascript">
        var writeoffId='2c989619302102ef01302c8415a20559';
        var archiveid='2c989619302102ef01302c84142b0557';
        var operateMode = 'edit';
作者: scntwa    时间: 2011-5-27 10:24
把"Search=NoResource"去掉试一下
作者: 云层    时间: 2011-5-27 11:57
简单看了一下感觉你要关联的东西应该是一个js里面的sessionid,你确定你关联是放在了这个js下载的请求前么?而且如果你对js做关联记得把search=noresource给去掉,ps还有就是如果关联结果里面有双引号记得用\转义
作者: wangyueyong1    时间: 2011-5-27 13:48
去掉也没用,还是找不到值?writeoffId随机产生后,还会随代码程序把值给改了




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2