51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4992|回复: 9
打印 上一主题 下一主题

[原创] 怎么确定这个关联的左右边界?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-3-22 17:12:49 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
要关联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。。。。
==============================================================================
边界貌似错了,这个左右边界还要怎么确定?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

10#
发表于 2014-5-29 11:48:25 | 只看该作者
你这些标点符号都不转义的?工具怎么识别?
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2014-5-8 09:01:58 | 只看该作者
我来学习的
回复 支持 反对

使用道具 举报

该用户从未签到

8#
发表于 2013-11-21 19:00:05 | 只看该作者
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.

麻烦大家了,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2013-6-7 11:06:07 | 只看该作者
关注中。。
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2010-3-22 23:52:06 | 只看该作者
上面那个解决了!
不过又出来个关联边界的问题( ,跟这个边界卯上了!)
------------------------------------------------------------------------------------------------------------
"\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"
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2010-3-22 18:13:41 | 只看该作者

抓到了!
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.按理说不应该出现,呵呵
过下再查查,是不是还有什么没关联



。。。
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-3-22 17:51:57 | 只看该作者
=。=不是抓到了么,你把ord=all 改成ord=1就行了,然后就后面不会出错了
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2010-3-22 17:47:29 | 只看该作者
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.应该没关联好。
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2010-3-22 17:15:51 | 只看该作者
web_reg_save_param("SID",
  "LB=Constants.viewingSessionId =",
  "RB=\";\t\n",
"ORD=ALL",
  LAST);
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-10-6 12:33 , Processed in 0.112016 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表