LR中订单号关联一直报未找到
本帖最后由 testingstudying 于 2015-8-26 19:13 编辑LR中用订单号关联一直报未找到,log中的关联参数值是空的,页面返回的信息见截图,脚本中的关联语句如下:
//Correlation comment - Do not change! Original value='DRI2015081502722738' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB=qbbOrderNo\" value=\"",
"RB=\"/>\r\n <input type",
"Ordinal=5",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=Yes",
//"RequestUrl=*/chooseBank2Pay.html*",
LAST);
web_submit_data("chooseBank2Pay.html",
"Action=http://www.qianxsyl.com/mrMoney/portal/chooseBank/chooseBank2Pay.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://www.qianxsyl.com/mrMoney/portal/Product/prodDetailPageV5/pid=FB0000279629.html",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=recommendPid", "Value=", ENDITEM,
"Name=isSendNotify", "Value=1", ENDITEM,
"Name=tranType", "Value=01", ENDITEM,
"Name=investMoney", "Value=50000", ENDITEM,
"Name=pid", "Value=FB0000279629", ENDITEM,
"Name=channel", "Value=01", ENDITEM,
EXTRARES,
"URL=/static/static_img/images_home/icons.png", ENDITEM,
"URL=/static/static_img/images_pay/icon1.png", ENDITEM,
"URL=/static/static_img/images_pay/pay_checkbox.png", ENDITEM,
"URL=/static/static_img/images_wap/button/center.png", ENDITEM,
"URL=/static/static_img/images_n1/tab-1.png", ENDITEM,
"URL=/static/static_img/images_n/unable.png", ENDITEM,
"URL=/static/static_img/images_n/nextStep.png", ENDITEM,
"URL=/static/static_img/images_pay/icon0.png", ENDITEM,
LAST);
lr_output_message("关联数据:%s", lr_eval_string("{CorrelationParameter_2}"));
lr_start_transaction("goumai");
lr_think_time(7);
web_submit_data("useQbb2Buy.html",
"Action=http://www.qianxsyl.com/mrMoney/portal/payOrder/useQbb2Buy.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://www.qianxsyl.com/mrMoney/portal/chooseBank/chooseBank2Pay.html",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=qbbOrderNo", "Value={CorrelationParameter_2}", ENDITEM,
"Name=qbbMid", "Value=", ENDITEM,
"Name=qbbInvestMoney", "Value=50000", ENDITEM,
"Name=qbbPid", "Value=FB0000279629", ENDITEM,
"Name=qbbToken", "Value=57cde484-13c6-4e95-8751-fcd524ac8327", ENDITEM,
"Name=recommendPid", "Value=", ENDITEM,
"Name=isSendNotify", "Value=1", ENDITEM,
"Name=isNewBuyer", "Value=00", ENDITEM,
"Name=storeOrBuy", "Value=", ENDITEM,
"Name=isAppointmentAct", "Value=", ENDITEM,
EXTRARES,
"URL=/static/static_img/images_v4/button_buy.png", ENDITEM,
"URL=http://hm.baidu.com/h.js?6b57abce4620ce20074f6620052c91a0", ENDITEM,
"URL=http://hm.baidu.com/hm.gif?cc=1&ck=1&cl=32-bit&ds=1920x1080&ep=39321%2C39320&et=3&fl=18.0&ja=1&ln=zh-cn&lo=0<=1440578575&nv=0&rnd=795991397&si=6b57abce4620ce20074f6620052c91a0&st=4&v=1.1.2&lv=3&tt=%E9%92%B1%E5%85%88%E7%94%9F%E7%90%86%E8%B4%A2-%E5%AE%89%E5%85%A8%20%E9%80%8F%E6%98%8E%20%E7%B2%BE%E5%87%86&u=http%3A%2F%2Fwww.qianxsyl.com%2FmrMoney%2Fportal%2FProduct%2FprodDetailPageV5%2Fpid%3DFB0000279629.html%23here", ENDITEM,
"URL=http://hm.baidu.com/hm.gif?cc=1&ck=1&cl=32-bit&ds=1920x1080&et=0&fl=18.0&ja=1&ln=zh-cn&lo=0<=1440578575&nv=0&rnd=2132184411&si=6b57abce4620ce20074f6620052c91a0&st=4&su=http%3A%2F%2Fwww.qianxsyl.com%2FmrMoney%2Fportal%2FchooseBank%2FchooseBank2Pay.html&v=1.1.2&lv=3", ENDITEM,
LAST);
lr_end_transaction("goumai", LR_AUTO);报错信息如下:
Action.c(83): Error -26377: No match found for the requested parameter "CorrelationParameter_2". 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
Action.c(83): Notify: Saving Parameter "CorrelationParameter_2 = ".
Action.c(83): web_submit_data("chooseBank2Pay.html") highest severity level was "ERROR", 74059 body bytes, 4706 header bytes
可能是关联取得的内容太长,数组长度不够,也可能是左右边界不对 清凉晨 发表于 2015-8-27 08:28
可能是关联取得的内容太长,数组长度不够,也可能是左右边界不对
log里面输出的值是空,应该不是数组长度不够吧 这个自动的值是隐藏的,跟着应该没有关系吧,而且这个字段跟response页面中的其他form中的orderID的值一致,关联的话是要关联哪个呢 有可能你定位到的动态变化的那个参数不对,从你上面的代码看,可疑的数据有可能是这个字符串“6b57abce4620ce20074f6620052c91a0”,挨个排查,找到这个可疑数据的源头,进行关联尝试一下 还有个方法就是直接去找开发人员咨询,哪些数据需要做关联,这样比较省事 火影红豆 发表于 2015-8-27 09:53
还有个方法就是直接去找开发人员咨询,哪些数据需要做关联,这样比较省事
这个开发人员应该也不知道啊,每次购买需要生成订单号的,这个是动态的,应该需要关联的吧 问题已解决,订单号和token号需要做关联,谢谢大家的回复啦
页:
[1]