51Testing软件测试论坛

标题: 新人遇问题 求高人解释 [打印本页]

作者: 白小寞    时间: 2010-5-27 15:50
标题: 新人遇问题 求高人解释
我写了一个关联 如下代码:
   web_reg_save_param("wen",
                "LB/IC=userSession Value",
                "RB=",
                "Search=All",
                "IgnoreRedirections=Yes",
                LAST);

web_submit_data("login.pl",
                "Action=http://10.41.4.122:1080/WebTours/login.pl",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://10.41.4.122:1080/WebTours/nav.pl?in=home",
                "Snapshot=t29.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=userSession", "Value={wen}", ENDITEM,
                "Name=username", "Value=baihua", ENDITEM,
                "Name=password", "Value=123", ENDITEM,
                "Name=JSFormSubmit", "Value=off", ENDITEM,
                "Name=login.x", "Value=50", ENDITEM,
                "Name=login.y", "Value=8", ENDITEM,
                LAST);

当关联函数里的LB后面不加/IC的话 运行就会报错   报错如下:
Action.c(21): Error -26377: No match found for the requested parameter "wen". 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(21): web_url("WebTours") highest severity level was "ERROR", 6446 body bytes, 1562 header bytes          [MsgId: MMSG-26388]

但加上/IC以后就可以正常通过

通过网上查找了解到/IC是忽略大小写用的  但问题是我LB内的内容大小写和所需关联的左边内容大小写完全一致:
"LB/IC=userSession Value",        "Name=userSession", "Value={wen}", ENDITEM
为什么会出现这种情况  还有 那个错误到底是什么意思
求高手解答
作者: PrefTest    时间: 2010-5-27 15:53
RB不要留空试试
作者: 白小寞    时间: 2010-5-27 16:18
RB里面写了>还是不行
作者: sc_zk2008    时间: 2010-5-27 17:17
在action中加上web_set_max_html_param_len("1024");
试试这个看行不行web_reg_save_param("wen",
                "LB=userSession Value",
                "RB=",
                "Search=All",
                "IgnoreRedirections=Yes",
                LAST);
如果不行的话,就在试试把左右边界加长点




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