51Testing软件测试论坛

标题: 我自动关联以后,执行脚本出错,为什么??? [打印本页]

作者: whq_xjh    时间: 2005-4-19 10:58
标题: 我自动关联以后,执行脚本出错,为什么???
Action.c(48): Error -26377: No match found for the requested parameter "WCSParam_Diff1". 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(48): web_link("报销单") highest severity level was "ERROR", 149 body bytes, 225 header bytes          [MsgId: MMSG-26388]

脚本:
// [WCSPARAM WCSParam_Diff1 23 ExpenseSheetList.action] Parameter {WCSParam_Diff1} created by Correlation Studio
        web_reg_save_param( "WCSParam_Diff1", "LB= action=\"", "RB=\"", "Ord=3", "Search=Body", "RelFrameId=1", LAST );
        // [WCSPARAM WCSParam_Diff2 9 direction] Parameter {WCSParam_Diff2} created by Correlation Studio
        web_reg_save_param( "WCSParam_Diff2", "LB=hidden name=\"", "RB=\"", "Ord=2", "Search=Body", "RelFrameId=1", LAST );
        // [WCSPARAM WCSParam_Diff3 11 currentPage] Parameter {WCSParam_Diff3} created by Correlation Studio
        web_reg_save_param( "WCSParam_Diff3", "LB=hidden name=\"", "RB=\"", "Ord=3", "Search=Body", "RelFrameId=1", LAST );
        web_link("报销单",
                "Snapshot=t3.inf",
                EXTRARES,
                "Url=images/bgcolor.gif", ENDITEM,
                "Url=images/bdm.gif", ENDITEM,
                "Url=images/button1.gif", ENDITEM,
                "Url=images/BD2.gif", ENDITEM,
                "Url=images/BD6.gif", ENDITEM,
                "Url=images/11.gif", ENDITEM,
                LAST);
作者: kernzhang    时间: 2005-4-19 11:19
他找到了参数值超过256个字符!你可以用web_set_max_html_param修改这个值!
如果你觉得你的值不会超过256个字符!就的看看web_reg_save_param中的字符找的位置对不对?有时自动找的关联实际是不是很正确的!你要手工改!
作者: whq_xjh    时间: 2005-4-19 12:55
等,高手,能不能告诉我怎么改,十分感谢,万分感谢~帮我改下脚本呀

[ Last edited by whq_xjh on 2005-4-19 at 12:59 ]
作者: kernzhang    时间: 2005-4-19 14:30
Runtime setting中有个log--->extended log-->data return by server,你把这个选上,你在VUGEN的日志中可以看到你的参数实际的值是什么?然后再手工去找吧!找得靠你自己了1
作者: tacy_lee    时间: 2005-4-20 13:15
web_reg_save_param( "WCSParam_Diff1", "LB= action=\"", "RB=\"", "Ord=3", "Search=Body", "RelFrameId=1","NOTFOUND=warning", LAST );

在函数里面加入NOTFOUND参数
作者: cwj007    时间: 2005-4-22 15:51
web_set_max_html_param_len("8192");
原系统默认是256字结,如果超过,则用web_set_max_html_param_len改变大小




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