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: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); 把那个错误的关联删除掉试试 取到httpsid的值没 回复 3# 真实的追求者
把关联错误的函数删除后,执行脚本是不会出错了,但是结果没有产生新数据,但是显示事务都是通过了,这是为啥呢?? 回复 4# jj_ljw
不懂怎么判断有没取到httpsid的值,要怎么操作呢? 出错时一般取不到httpsid的值,看关联的参数有没有取到值,可以在回放时,在界面下放日志的面版中切换到最后一个tab页,好象是run time data还是runing data,记不清了。
No match found for the requested parameter
这种出错一般就是位置找错了,可以问一下开发人员,这个参数在服务器端第一次发送到客户端的时间及页面
这样方便我们找位置 楼主可以到Run-Time Setting->General->Log,选择always send messages,然后下面选择extended logs并勾选上下面的parameter substitution,这样的replay log里面就能看到你关联的参数的数值了。 回复 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这两个关联又是什么问题? 愁啊 很可能这个函数写的有问题。你写成这样试下。
web_reg_save_param("httpsid","LB=nhttpSessionId=","RB=\\nscriptSessionId ",LAST);
另外你在run-time setting --log--always send messages --extended log 中把parameter substitution 勾上,运行,查看httpsid这个参数是否取到值。 那最终是怎么解决的,楼主贴答案出来 我也出现这样的问题,不过我在回放脚本时都过了,在control 中跑的时候有时候过,有时候失败。
页:
[1]