请问各位大虾,这个关联的边界符怎么取呀?
在执行脚本的replay log中有下面这句话:Location:http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c82ADEA26-11F1-7F02-9D2E-BD08F97C2631_k4435C618-3D8B-0067-1B1B-62436E4E45BC\r\n其中flowExecutionKey的值是一个随机变量,我现在对这个变量进行关联处理,web_reg_save_param("key","LB/IC=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=",
"RB/IC=\r\n",
"RelFrameId=1",
LAST);但是执行脚本时,replay log里面报错: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
[ 本帖最后由 阎王告示 于 2007-9-19 11:49 编辑 ] sdlkfj2 看你的log,在那里取 LOG说的很清楚拉 我按照log里面取,如上面第二段代码,但是执行报错呀 你把log贴上来,别只贴一小部分 原帖由 haiquan180 于 2007-9-19 11:50 发表 http://bbs.51testing.com/images/common/back.gif
你把log贴上来,别只贴一小部分
log内容太多,只能放在附近里面了,麻烦请看附件吧,谢谢了! 看看关联是不是放在截取变量的前面的 是放在截取的变量的前面的,这是replay log 的执行结果:
vuser_init.c(284): before
vuser_init.c(285): Registering web_reg_save_param was successful
vuser_init.c(291): after
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)
vuser_init.c(292): HTTP/1.1 302 Moved Temporarily\r\n
vuser_init.c(292): Server: Apache-Coyote/1.1\r\n
vuser_init.c(292): X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
vuser_init.c(292): /Tomcat-5.5\r\n
vuser_init.c(292): Expires: Wed, 19 Sep 2007 06:20:52 GMT\r\n
vuser_init.c(292): Cache-Control: max-age=30\r\n
vuser_init.c(292): Location: http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c60CC665
vuser_init.c(292): F-6C8D-3523-2F22-32AA24D3AE65_k8ABFFA60-2243-2921-3226-AEEAD1BC9583\r\n
vuser_init.c(292): Content-Language: zh-CN\r\n
vuser_init.c(292): Content-Length: 0\r\n
vuser_init.c(292): Date: Wed, 19 Sep 2007 06:20:22 GMT\r\n
vuser_init.c(292): \r\n
vuser_init.c(292): Redirecting "http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowId=create-policy-flow" (redirection depth=0)
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"
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)
vuser_init.c(292): HTTP/1.1 200 OK\r\n
vuser_init.c(292): Server: Apache-Coyote/1.1\r\n
这是部分脚本代码:
lr_output_message("before");
web_reg_save_param("key",
"LB/IC=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=",
"RB/IC=",
"RelFrameId=1",
"ORD=1",
LAST);
lr_output_message("after");
web_url("新增投保单",
"URL=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowId=create-policy-flow",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.8.0.3:18080/agentApplying/welcome.do",
"Snapshot=t28.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("cargo.js_2",
"URL=http://10.8.0.3:18080/agentApplying/js/cargo.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("weblink.js_2",
"URL=http://10.8.0.3:18080/agentApplying/jssource/weblink.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t29.inf",
LAST);
web_url("URLEncoding.js_2",
"URL=http://10.8.0.3:18080/agentApplying/jssource/URLEncoding.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t30.inf",
LAST);
web_url("util.js_2",
"URL=http://10.8.0.3:18080/agentApplying/jssource/util.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t31.inf",
LAST);
web_url("formCheckUtil.js_2",
"URL=http://10.8.0.3:18080/agentApplying/jssource/formCheckUtil.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t32.inf",
LAST);
web_url("common.js_2",
"URL=http://10.8.0.3:18080/agentApplying/js/common.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("prototype-1.4.0.js_3",
"URL=http://10.8.0.3:18080/agentApplying/js/prototype-1.4.0.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("web.css_2",
"URL=http://10.8.0.3:18080/agentApplying/css/web.css",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("current.gif",
"URL=http://10.8.0.3:18080/agentApplying/images/current.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t33.inf",
LAST);
web_url("not.gif",
"URL=http://10.8.0.3:18080/agentApplying/images/not.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t34.inf",
LAST);
web_url("left.css_2",
"URL=http://10.8.0.3:18080/agentApplying/css/left.css",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("cargo.js_3",
"URL=http://10.8.0.3:18080/agentApplying/js/cargo.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("logo.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/logo.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("weblink.js_3",
"URL=http://10.8.0.3:18080/agentApplying/jssource/weblink.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t35.inf",
LAST);
web_url("URLEncoding.js_3",
"URL=http://10.8.0.3:18080/agentApplying/jssource/URLEncoding.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t36.inf",
LAST);
web_url("util.js_3",
"URL=http://10.8.0.3:18080/agentApplying/jssource/util.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t37.inf",
LAST);
web_url("formCheckUtil.js_3",
"URL=http://10.8.0.3:18080/agentApplying/jssource/formCheckUtil.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t38.inf",
LAST);
web_url("common.js_3",
"URL=http://10.8.0.3:18080/agentApplying/js/common.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("prototype-1.4.0.js_4",
"URL=http://10.8.0.3:18080/agentApplying/js/prototype-1.4.0.js",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("webback.gif_3",
"URL=http://10.8.0.3:18080/agentApplying/images/webback.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("top-bg.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/top-bg.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("banner.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/banner.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("left-bg.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/left-bg.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("foot.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/foot.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("meu-title.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/meu-title.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("user-server.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/user-server.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("meu-help.gif_2",
"URL=http://10.8.0.3:18080/agentApplying/images/meu-help.gif",
"Resource=1",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
LAST);
web_url("button_small.gif",
"URL=http://10.8.0.3:18080/agentApplying/images/button_small.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey={key}",
"Snapshot=t39.inf",
LAST);
web_concurrent_end(NULL);
原帖由 阎王告示 于 2007-9-19 10:30 发表 http://bbs.51testing.com/images/common/back.gif
在执行脚本的replay log中有下面这句话:Location:http://10.8.0.3:18080/agentApplying/selectProduct.do?_flowExecutionKey=_c82ADEA26-11F1-7F02-9D2E-BD08F97C2631_k4435C618-3D8B-0067-1B1B-62436E4E45BC\ ...
尝试一下:
web_reg_save_param("key",
"LB=selectProduct.do?_flowExecutionKey=",
"RB=\r\n",
"RelFrameId=all",
"ORD=1"
LAST);
回复 #10 tongfenglcz 的帖子
好像不行,取得key值一直都没有变化。 在最上面加上 web_set_max_html_param_len("50000");试一下. 楼主解决了这个问题没呢?知道怎么取关联边界了没?
页:
[1]