kellychen1208 发表于 2011-3-10 13:54:33

Error -26377: No match found for the requested parameter

本帖最后由 kellychen1208 于 2011-3-10 13:58 编辑

对脚本进行了三个关联,其中两个都成功了,有一个关联一直出错,也尝试了改变函数在脚本的位置及增加了web_set_max_html_param_len("1024"),但都不行,不知道问题究竟出在哪里,请大家帮帮忙指点一下呀!!!

Action.c(8): Error -26377: No match found for the requested parameter "httpsid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size       

kellychen1208 发表于 2011-3-10 13:56:36

本帖最后由 kellychen1208 于 2011-3-10 13:58 编辑

以下是录制的一部分脚本,大家帮忙看看问题是出在哪,谢谢了!!!

        web_set_max_html_param_len("1024");
    web_reg_save_param("httpsid","LB=httpSessionId=","RB=",LAST);

        web_url("bookingEdit.jsp",
                "URL=http://117.28.239.122:7002/TRANSPOWER_AIR/airexport/bookingEdit.jsp",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/tab.html",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=../common/js/extjs/resources/images/default/form/text-bg.gif", ENDITEM,
                "Url=../common/js/extjs/resources/images/default/form/date-trigger.gif", ENDITEM,
                "Url=../common/js/extjs/resources/images/default/s.gif", ENDITEM,
                "Url=../common/js/extjs/resources/images/default/form/trigger.gif", ENDITEM,
                "Url=../common/js/extjs/resources/images/default/toolbar/btn-arrow.gif", ENDITEM,
                "Url=../common/js/extjs/resources/images/default/box/tb-blue.gif", ENDITEM,
                LAST);



        web_custom_request("obBookingDwr.addBooking.dwr",
                "URL=http://117.28.239.122:7002/TRANSPOWER_AIR/dwr/call/plaincall/obBookingDwr.addBooking.dwr",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/javascript",
                "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/",
                "Snapshot=t6.inf",
                "Mode=HTML",
                "EncType=text/plain",
                "Body=callCount=1\npage=/TRANSPOWER_AIR/airexport/bookingEdit.jsp\nhttpSessionId={httpsid}\nscriptSessionId=D4E7C8BEFC7ADBD94A69EB514D145DDB891\nc0-scriptName=obBookingDwr\nc0-methodName=addBooking\nc0-id=0\nbatchId=0\n",
                LAST);

web_reg_save_param("newdate","LB=date=","RB=%",LAST);
web_reg_save_param("newdate1","LB=Date:","RB=",LAST);
                                       
        web_url("modelWindowAction_showModel.do",
                "URL=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t7.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=js/errorHandler.js", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=../dwr/interface/freightTemplateDetailDwr.js", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=../dwr/interface/countryDwr.js", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=js/extjs/resources/images/default/grid//page-first-disabled.gif", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=js/extjs/resources/images/default/grid/page-next.gif", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=js/extjs/resources/images/default/grid/page-prev-disabled.gif", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                "Url=js/extjs/resources/images/default/grid/page-last.gif", "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/common/modelWindowAction_showModel.do?strKey=neweNTOffice&fieldValues=,%2525&date={newdate}%2520UTC+0800%25202011&curPage=1&isFirstOpen=true&returnvalue=booking.strObBkEntrusterCode&returnvalue=booking.strObBkEntrusterName&returnvalue=null", ENDITEM,
                LAST);

        web_custom_request("obBookingDwr.checkEntruster.dwr",
                "URL=http://117.28.239.122:7002/TRANSPOWER_AIR/dwr/call/plaincall/obBookingDwr.checkEntruster.dwr",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/javascript",
                "Referer=http://117.28.239.122:7002/TRANSPOWER_AIR/",
                "Snapshot=t8.inf",
                "Mode=HTML",
                "EncType=text/plain",
                "Body=callCount=1\npage=/TRANSPOWER_AIR/airexport/bookingEdit.jsp\nhttpSessionId={httpsid}\nscriptSessionId=D4E7C8BEFC7ADBD94A69EB514D145DDB891\nc0-scriptName=obBookingDwr\nc0-methodName=checkEntruster\nc0-id=0\nc0-param0=string:64982\nc0-param1=string:%E6%AD%A6%E6%B1%89%E5%B8%82%E5%8D%8E%E4%B8%BD%E7%8E%AF%E4%BF%9D%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8\nbatchId=1\n",
                LAST);

真实的追求者 发表于 2011-3-10 16:28:41

把那个错误的关联删除掉试试

jj_ljw 发表于 2011-3-10 16:36:11

取到httpsid的值没

kellychen1208 发表于 2011-3-10 17:07:56

回复 3# 真实的追求者


    把关联错误的函数删除后,执行脚本是不会出错了,但是结果没有产生新数据,但是显示事务都是通过了,这是为啥呢??

kellychen1208 发表于 2011-3-10 17:09:19

回复 4# jj_ljw


    不懂怎么判断有没取到httpsid的值,要怎么操作呢?

sterson 发表于 2011-3-10 19:26:40

出错时一般取不到httpsid的值,看关联的参数有没有取到值,可以在回放时,在界面下放日志的面版中切换到最后一个tab页,好象是run time data还是runing data,记不清了。

No match found for the requested parameter
这种出错一般就是位置找错了,可以问一下开发人员,这个参数在服务器端第一次发送到客户端的时间及页面
这样方便我们找位置

ziheng198688 发表于 2011-3-11 11:24:10

楼主可以到Run-Time Setting->General->Log,选择always send messages,然后下面选择extended logs并勾选上下面的parameter substitution,这样的replay log里面就能看到你关联的参数的数值了。

kellychen1208 发表于 2011-3-11 17:13:17

回复 8# ziheng198688
在日志中查找对应三个关联,
No match found for the requested parameter "httpsid"
Notify: Saving Parameter "httpsid = "
Warning: The string 'newdate' with parameter delimiters is not a parameter.
Notify: Saving Parameter "newdate1 =Fri, 11 Mar 2011 08:53:49 GMT\r\n
    这个是不是表示只有newdate1这个关联有取到值,而httpsid和newdate这两个关联又是什么问题?

jingyu9984 发表于 2011-10-12 20:37:29

愁啊

lingyun1104 发表于 2011-11-10 11:51:00

很可能这个函数写的有问题。你写成这样试下。
web_reg_save_param("httpsid","LB=nhttpSessionId=","RB=\\nscriptSessionId ",LAST);
另外你在run-time setting --log--always send messages --extended log 中把parameter substitution 勾上,运行,查看httpsid这个参数是否取到值。

零测试 发表于 2012-6-27 13:46:56

那最终是怎么解决的,楼主贴答案出来

judy_xia 发表于 2015-4-7 16:51:51

我也出现这样的问题,不过我在回放脚本时都过了,在control 中跑的时候有时候过,有时候失败。
页: [1]
查看完整版本: Error -26377: No match found for the requested parameter