lqr 发表于 2010-7-2 17:17:23

手动关联不成功

在脚本 tree视图中
submit data:login.jsp这一步
查看"server response"中的body 内容如下:
<body>
</script>
<script language="JavaScript">
window.location.replace("http://passport.126.com/crossdomain.jsp?username=abc@126.com&loginCookie=afdoeipjfape&sInfoCookie=1278053011%7C0%7C%233%2640%23&pInfoCookie=abc%40126.com%7C1278053011%7C0%7Cmail126%7C11%2628%7Cfuj%261278052833%26mail126%23fuj%26350200%2310%7C%260&url=http%3A%2F%2Fentry.mail.126.com%2Fcgi%2Fntesdoor%3Fhid%3D10010102%26lightweight%3D1%26verifycookie%3D1%26language%3D0%26style%3D-1%26username%3Dabc%40126.com&loginyoudao=0");//remain for popo ,don't del
</script>
</body>
因,录制了2份相同的脚本,对比发现了不同之处,红色字体部分
于是手动关联,tree视图,insert before,关联语句如下:
web_reg_save_param("loginCookie",
                "LB=&logincookie",
                "RB=&sinfocookie",
                "NotFound=ERROR",
          "Search=body",
                LAST);

        web_reg_save_param("sinfocookie",
                "LB=&sinfocookie",
                "RB=%7C0%7C%233%",
                "NotFound=ERROR",
                "Search=body",
                LAST);

        web_reg_save_param("pinfo",
                "LB=mail126%7C11%2628%7Cfuj%",
                "RB=%26mail126%23fuj%26350200",
                "Search=body",
                LAST);

可是在回放的时候,出现
Action.c(134): Error -26377: No match found for the requested parameter "loginCookie". 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       
Action.c(134): Error -26377: No match found for the requested parameter "sinfocookie". 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       

不知道为什么会关联失败,请大家指点下!谢谢
附上脚本

tttrrryyy 发表于 2010-7-2 17:29:52

关联不成功的可能只有四种:
1、字符串过长,超过256
2、函数放的位置不对
3、左右边界不对,看是否需要转义字符\
4、实施关联步骤之前的步骤已经出错

明显的错误,左边界少等号,做测试不细心

msnshow 发表于 2010-7-3 10:56:55

;P楼主的确是有些粗心了

lqr 发表于 2010-7-5 16:38:10

非常感谢,

云层 发表于 2010-7-5 22:02:10

。。。汗死,就算少个等号也关联的出来吧,只不过关联的结果多了个=号
页: [1]
查看完整版本: 手动关联不成功