关于loadrunner关联问题
想请教下。为什么对比2份脚本不同地方出现的respond body中,做了关联,但是每次都报错。还是手动关联出错了?帮帮我1.内容如下****** Response Body For Transaction With Id 309 ******
[{"region_id":1775,"local_name":"鍘﹂棬甯?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361003","cod":"1"},{"region_id":1776,"local_name":"鎬濇槑鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361001","cod":"1"},{"region_id":1777,"local_name":"娴锋钵鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361026","cod":"1"},{"region_id":1778,"local_name":"婀栭噷鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361006","cod":"1"},{"region_id":1779,"local_name":"闆嗙編鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361021","cod":"1"},{"region_id":1780,"local_name":"鍚屽畨鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361100","cod":"1"},{"region_id":1781,"local_name":"缈斿畨鍖?,"region_grade":3,"p_region_id":202,"childnum":0,"zipcode":"361101","cod":"1"}]
2.关联函数如下web_reg_save_param("body",
"LB=\"region_id\":",
"RB=\"",
"Search=Body",
LAST);
3.回放报错:tijiao_dingdan.c(12): Error -26377: No match found for the requested parameter "body". 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
tijiao_dingdan.c(12): web_custom_request("checkout.html_5") highest severity level was "ERROR", 60 body bytes, 476 header bytes, 5 chunking overhead bytes
求大神指教。很急撒:'( 1.进行参数替换了吗?用body替换你要关联的部分
2.关联放置的地方对吗,要放在发起请求之前
3.小伙伴,从你目前给出的信息不好判断具体哪儿不对 wangrenzi 发表于 2014-11-24 13:55
1.进行参数替换了吗?用body替换你要关联的部分
2.关联放置的地方对吗,要放在发起请求之前
3.小伙伴,从 ...
参数化替换了一些。是用body替换的。也放在发起请求前了。但是我把那个关联函数删掉就不会报错。哎纳闷 大神在哪。。。。。。。在。。。。。在。。。。。哪。。。。哪。。。。哪。。。。。 web_reg_save_param("body",
"LB=\"region_id\":",
"RB=,\"",
"Search=Body",
"ORD=ALL",
LAST);
我也不知道有没有错,错了莫见怪,只是我的想法。 冒号没转义啊 新手弱弱的说一句,是不是要在"Search=Body", 后面加一句 "ORD=1", 新手弱弱的说一句,是不是要在"Search=Body", 后面加一句 "ORD=1", 需要把右边界搞得长一点:
“RB=,\"local_name”,
页:
[1]