51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2788|回复: 12
打印 上一主题 下一主题

[原创] 请问各位大虾,这个关联的边界符怎么取呀?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-9-19 10:30:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在执行脚本的replay log中有下面这句话:
  1. Location:http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c82ADEA26-11F1-7F02-9D2E-BD08F97C2631_k4435C618-3D8B-0067-1B1B-62436E4E45BC\r\n
复制代码
其中flowExecutionKey的值是一个随机变量,我现在对这个变量进行关联处理,
  1. web_reg_save_param("key",
  2.   "LB/IC=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=",
  3.   "RB/IC=\r\n",   
  4.   "RelFrameId=1",
  5.   LAST);
复制代码
但是执行脚本时,replay log里面报错:
  1. Error -26377: No match found for the requested parameter "key". 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   [MsgId: MERR-26377]
复制代码

[ 本帖最后由 阎王告示 于 2007-9-19 11:49 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-9-19 11:04:58 | 只看该作者
sdlkfj2 看你的log,在那里取
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2007-9-19 11:11:43 | 只看该作者
LOG说的很清楚拉
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2007-9-19 11:38:58 | 只看该作者
我按照log里面取,如上面第二段代码,但是执行报错呀
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2007-9-19 11:50:37 | 只看该作者
你把log贴上来,别只贴一小部分
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2007-9-19 12:07:51 | 只看该作者
原帖由 haiquan180 于 2007-9-19 11:50 发表
你把log贴上来,别只贴一小部分



log内容太多,只能放在附近里面了,麻烦请看附件吧,谢谢了!

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2007-9-19 12:48:13 | 只看该作者
看看关联是不是放在截取变量的前面的
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2007-9-19 14:47:53 | 只看该作者
是放在截取的变量的前面的,这是replay log 的执行结果:

  1. vuser_init.c(284): before
  2. vuser_init.c(285): Registering web_reg_save_param was successful   [MsgId: MMSG-26390]
  3. vuser_init.c(291): after
  4. vuser_init.c(292): t=68590ms: 471-byte response headers for "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowId=create-policy-flow" (RelFrameId=1)
  5. vuser_init.c(292):     HTTP/1.1 302 Moved Temporarily\r\n
  6. vuser_init.c(292):     Server: Apache-Coyote/1.1\r\n
  7. vuser_init.c(292):     X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
  8. vuser_init.c(292):     /Tomcat-5.5\r\n
  9. vuser_init.c(292):     Expires: Wed, 19 Sep 2007 06:20:52 GMT\r\n
  10. vuser_init.c(292):     Cache-Control: max-age=30\r\n
  11. vuser_init.c(292):     Location: http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c60CC665
  12. vuser_init.c(292):     F-6C8D-3523-2F22-32AA24D3AE65_k8ABFFA60-2243-2921-3226-AEEAD1BC9583\r\n
  13. vuser_init.c(292):     Content-Language: zh-CN\r\n
  14. vuser_init.c(292):     Content-Length: 0\r\n
  15. vuser_init.c(292):     Date: Wed, 19 Sep 2007 06:20:22 GMT\r\n
  16. vuser_init.c(292):     \r\n
  17. vuser_init.c(292): Redirecting "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowId=create-policy-flow" (redirection depth=0)   [MsgId: MMSG-26694]
  18. vuser_init.c(292): To location "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c60CC665F-6C8D-3523-2F22-32AA24D3AE65_k8ABFFA60-2243-2921-3226-AEEAD1BC9583"   [MsgId: MMSG-26693]
  19. vuser_init.c(292): t=68884ms: 343-byte response headers for "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c60CC665F-6C8D-3523-2F22-32AA24D3AE65_k8ABFFA60-2243-2921-3226-AEEAD1BC9583" (RelFrameId=1)
  20. vuser_init.c(292):     HTTP/1.1 200 OK\r\n
  21. vuser_init.c(292):     Server: Apache-Coyote/1.1\r\n
复制代码
回复 支持 反对

使用道具 举报

该用户从未签到

9#
 楼主| 发表于 2007-9-19 14:50:02 | 只看该作者
这是部分脚本代码:

  1. lr_output_message("before");
  2.    web_reg_save_param("key",
  3.   "LB/IC=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=",
  4.   "RB/IC=",   
  5.   "RelFrameId=1",
  6.    "ORD=1",
  7.   LAST);
  8. lr_output_message("after");
  9. web_url("新增投保单",
  10.   "URL=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowId=create-policy-flow",
  11.   "Resource=0",
  12.   "RecContentType=text/html",
  13.   "Referer=http://10.8.0.3:18080/agentApplying/welcome.do",
  14.   "Snapshot=t28.inf",
  15.   "Mode=HTTP",
  16.   LAST);
  17.    
  18. web_concurrent_start(NULL);
  19. web_url("cargo.js_2",
  20.   "URL=http://10.8.0.3:18080/agentApplying/js/cargo.js",
  21.   "Resource=1",
  22.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  23.   LAST);
  24. web_url("weblink.js_2",
  25.   "URL=http://10.8.0.3:18080/agentApplying/jssource/weblink.js",
  26.   "Resource=1",
  27.   "RecContentType=text/javascript",
  28.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  29.   "Snapshot=t29.inf",
  30.   LAST);
  31. web_url("URLEncoding.js_2",
  32.   "URL=http://10.8.0.3:18080/agentApplying/jssource/URLEncoding.js",
  33.   "Resource=1",
  34.   "RecContentType=text/javascript",
  35.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  36.   "Snapshot=t30.inf",
  37.   LAST);
  38. web_url("util.js_2",
  39.   "URL=http://10.8.0.3:18080/agentApplying/jssource/util.js",
  40.   "Resource=1",
  41.   "RecContentType=text/javascript",
  42.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  43.   "Snapshot=t31.inf",
  44.   LAST);
  45. web_url("formCheckUtil.js_2",
  46.   "URL=http://10.8.0.3:18080/agentApplying/jssource/formCheckUtil.js",
  47.   "Resource=1",
  48.   "RecContentType=text/javascript",
  49.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  50.   "Snapshot=t32.inf",
  51.   LAST);
  52. web_url("common.js_2",
  53.   "URL=http://10.8.0.3:18080/agentApplying/js/common.js",
  54.   "Resource=1",
  55.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  56.   LAST);
  57. web_url("prototype-1.4.0.js_3",
  58.   "URL=http://10.8.0.3:18080/agentApplying/js/prototype-1.4.0.js",
  59.   "Resource=1",
  60.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  61.   LAST);
  62. web_url("web.css_2",
  63.   "URL=http://10.8.0.3:18080/agentApplying/css/web.css",
  64.   "Resource=1",
  65.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  66.   LAST);
  67. web_url("current.gif",
  68.   "URL=http://10.8.0.3:18080/agentApplying/images/current.gif",
  69.   "Resource=1",
  70.   "RecContentType=image/gif",
  71.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  72.   "Snapshot=t33.inf",
  73.   LAST);
  74. web_url("not.gif",
  75.   "URL=http://10.8.0.3:18080/agentApplying/images/not.gif",
  76.   "Resource=1",
  77.   "RecContentType=image/gif",
  78.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  79.   "Snapshot=t34.inf",
  80.   LAST);
  81. web_url("left.css_2",
  82.   "URL=http://10.8.0.3:18080/agentApplying/css/left.css",
  83.   "Resource=1",
  84.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  85.   LAST);
  86. web_url("cargo.js_3",
  87.   "URL=http://10.8.0.3:18080/agentApplying/js/cargo.js",
  88.   "Resource=1",
  89.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  90.   LAST);
  91. web_url("logo.gif_2",
  92.   "URL=http://10.8.0.3:18080/agentApplying/images/logo.gif",
  93.   "Resource=1",
  94.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  95.   LAST);
  96. web_url("weblink.js_3",
  97.   "URL=http://10.8.0.3:18080/agentApplying/jssource/weblink.js",
  98.   "Resource=1",
  99.   "RecContentType=text/javascript",
  100.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  101.   "Snapshot=t35.inf",
  102.   LAST);
  103. web_url("URLEncoding.js_3",
  104.   "URL=http://10.8.0.3:18080/agentApplying/jssource/URLEncoding.js",
  105.   "Resource=1",
  106.   "RecContentType=text/javascript",
  107.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  108.   "Snapshot=t36.inf",
  109.   LAST);
  110. web_url("util.js_3",
  111.   "URL=http://10.8.0.3:18080/agentApplying/jssource/util.js",
  112.   "Resource=1",
  113.   "RecContentType=text/javascript",
  114.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  115.   "Snapshot=t37.inf",
  116.   LAST);
  117. web_url("formCheckUtil.js_3",
  118.   "URL=http://10.8.0.3:18080/agentApplying/jssource/formCheckUtil.js",
  119.   "Resource=1",
  120.   "RecContentType=text/javascript",
  121.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  122.   "Snapshot=t38.inf",
  123.   LAST);
  124. web_url("common.js_3",
  125.   "URL=http://10.8.0.3:18080/agentApplying/js/common.js",
  126.   "Resource=1",
  127.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  128.   LAST);
  129. web_url("prototype-1.4.0.js_4",
  130.   "URL=http://10.8.0.3:18080/agentApplying/js/prototype-1.4.0.js",
  131.   "Resource=1",
  132.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  133.   LAST);
  134. web_concurrent_end(NULL);
  135. web_concurrent_start(NULL);
  136. web_url("webback.gif_3",
  137.   "URL=http://10.8.0.3:18080/agentApplying/images/webback.gif",
  138.   "Resource=1",
  139.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  140.   LAST);
  141. web_url("top-bg.gif_2",
  142.   "URL=http://10.8.0.3:18080/agentApplying/images/top-bg.gif",
  143.   "Resource=1",
  144.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  145.   LAST);
  146. web_url("banner.gif_2",
  147.   "URL=http://10.8.0.3:18080/agentApplying/images/banner.gif",
  148.   "Resource=1",
  149.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  150.   LAST);
  151. web_url("left-bg.gif_2",
  152.   "URL=http://10.8.0.3:18080/agentApplying/images/left-bg.gif",
  153.   "Resource=1",
  154.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  155.   LAST);
  156. web_concurrent_end(NULL);
  157. web_concurrent_start(NULL);
  158. web_url("foot.gif_2",
  159.   "URL=http://10.8.0.3:18080/agentApplying/images/foot.gif",
  160.   "Resource=1",
  161.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  162.   LAST);
  163. web_url("meu-title.gif_2",
  164.   "URL=http://10.8.0.3:18080/agentApplying/images/meu-title.gif",
  165.   "Resource=1",
  166.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  167.   LAST);
  168. web_url("user-server.gif_2",
  169.   "URL=http://10.8.0.3:18080/agentApplying/images/user-server.gif",
  170.   "Resource=1",
  171.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  172.   LAST);
  173. web_url("meu-help.gif_2",
  174.   "URL=http://10.8.0.3:18080/agentApplying/images/meu-help.gif",
  175.   "Resource=1",
  176.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  177.   LAST);
  178. web_url("button_small.gif",
  179.   "URL=http://10.8.0.3:18080/agentApplying/images/button_small.gif",
  180.   "Resource=1",
  181.   "RecContentType=image/gif",
  182.   "Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
  183.   "Snapshot=t39.inf",
  184.   LAST);
  185. web_concurrent_end(NULL);
复制代码
回复 支持 反对

使用道具 举报

该用户从未签到

10#
发表于 2007-9-20 09:10:28 | 只看该作者
原帖由 阎王告示 于 2007-9-19 10:30 发表
在执行脚本的replay log中有下面这句话:Location:http://10.8.0.3:18080/agentApply ... 7-1B1B-62436E4E45BC\ ...



尝试一下:
web_reg_save_param("key",
  "LB=selectProduct.do?_flowExecutionKey=",
  "RB=\r\n",   
  "RelFrameId=all",
   "ORD=1"
  LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

11#
 楼主| 发表于 2007-9-20 12:04:26 | 只看该作者

回复 #10 tongfenglcz 的帖子

好像不行,取得key值一直都没有变化。
回复 支持 反对

使用道具 举报

该用户从未签到

12#
发表于 2007-11-8 14:07:52 | 只看该作者
在最上面加上    web_set_max_html_param_len("50000");
试一下.
回复 支持 反对

使用道具 举报

该用户从未签到

13#
发表于 2008-6-6 16:24:05 | 只看该作者
楼主解决了这个问题没呢?知道怎么取关联边界了没?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-4 14:48 , Processed in 0.075939 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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