51Testing软件测试论坛

标题: 怎么确定这个关联的左右边界? [打印本页]

作者: frank_liu    时间: 2010-3-22 17:12
标题: 怎么确定这个关联的左右边界?
要关联sessionId,确定其的左右边界,Recording_Log中相关日志:

"\tConstants.viewingSessionId = \"20100322_140911_963\";\t\n"

我的web_reg_save_param():
web_reg_save_param("SID",
  "LB=Constants.viewingSessionId =",
  "RB=",
  LAST);

运行后在日志中查看:
Action.c(126): Notify: Saving Parameter "SID =  "20100322_165950_552";\t\n// ]]>\n</script>\n\t\r\n\r\n\t<script type="text/javascript">\r\n\t// <![CDATA[\r\n\t\tvar hasSVGSupport = false;\r\n\t\tvar useVBMethod = false;\r\n\t\tif ( navigator.mimeTypes != null && navigator.mimeTypes.length > 0 )\r\n\t\t{\r\n\t\t    if ( navigator.mimeTypes["。。。。。
Action.c(560): Notify: Parameter Substitution: parameter "SID" =  " "20100322_165950_552";\t\n// ]]>\n</script>\n\t\r\n\r\n\t<script type="text/javascript">\r\n\t// <![CDATA[\r\n\t\tvar hasSVGSupport = false;\r\n\t\tvar useVBMethod = false;\r\n\t\tif ( navigator.mimeTy。。。。
==============================================================================
边界貌似错了,这个左右边界还要怎么确定?
作者: 云层    时间: 2010-3-22 17:15
web_reg_save_param("SID",
  "LB=Constants.viewingSessionId =",
  "RB=\";\t\n",
"ORD=ALL",
  LAST);
作者: frank_liu    时间: 2010-3-22 17:47
Action.c(125): Notify: Saving Parameter "SID_1 =  "20100322_173912_488"
Action.c(125): Notify: Saving Parameter "SID_count = 1"



Action.c(559): Warning: The string 'SID' with parameter delimiters is not a parameter.
Action.c(574): Warning: The string 'SID' with parameter delimiters is not a parameter.
Action.c(574): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://*。*。*。*/preview?__sessionId={SID}&__imageid=file3d993d99127844ec44e70.jpg"          [MsgId: MERR-26612]
Action.c(574): web_url("preview") highest severity level was "ERROR", 2448 body bytes, 176 header bytes          [MsgId: MMSG-26388]

不中!
后面这个HTTP Status-Code=500 后台是报session is not available or has expired.应该没关联好。
作者: 云层    时间: 2010-3-22 17:51
=。=不是抓到了么,你把ord=all 改成ord=1就行了,然后就后面不会出错了
作者: frank_liu    时间: 2010-3-22 18:13

抓到了!
Action.c(574): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://。。。。/preview?__sessionId= "20100322_180447_436&__imageid=file3d993d99127844ec44e70.jpg"          [MsgId: MERR-26612]
Action.c(574): web_url("preview") highest severity level was "ERROR", 2448 body bytes, 176 header bytes          [MsgId: MMSG-26388]
Action.c(574): Notify: Transaction "search" ended with "Fail" status (Duration: 5.5655 Wasted Time: 0.0024).

但还是这个错误:The viewing session is not available or has expired.按理说不应该出现,呵呵
过下再查查,是不是还有什么没关联



。。。
作者: frank_liu    时间: 2010-3-22 23:52
上面那个解决了!
不过又出来个关联边界的问题( ,跟这个边界卯上了!)
------------------------------------------------------------------------------------------------------------
"\t\t.style_1 { background-image: url('/preview?__sessionId=20100322_140911_963&amp;__imageid=f"
"ile3d993d99127844ec44e70.jpg'); background-repeat: repeat-x; background-position: left top;}\n"
---------------------------------------------------------------------------------------------------------------
3d993d99127844ec44e70是变量

web_reg_save_param("OTO",
    "LB=ile",
     "RB=.jpg');",
     "ORD=ALL",
     LAST);

结果什么也找不到。。。
Action.c(131): Error -26377: No match found for the requested parameter "OTO". 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(131): Notify: Saving Parameter "OTO_count = 0"
作者: zhengaiqi    时间: 2013-6-7 11:06
关注中。。
作者: 利勇lmm    时间: 2013-11-21 19:00
HTTP模式不会报错,但是转成URL模式就会报错,
ction.c(824): Error -26377: No match found for the requested parameter "test". 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(824): web_concurrent_end highest severity level was "ERROR", 352344 body bytes, 7071 header bytes   [MsgId: MMSG-26388]
Ending action Action.

麻烦大家了,谢谢!
作者: chao801    时间: 2014-5-8 09:01
我来学习的
作者: 王麦麦    时间: 2014-5-29 11:48
你这些标点符号都不转义的?工具怎么识别?




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