|
=================统计错误问题已经解决,Search参数问题未解决==========================
录制环境:win7+LR11+URL-based模式
用html-based模式录制就能正常计数,有人遇到过这样情况吗?
如下脚本:
web_reg_find(
"Text=选择银行",
"Search=Headers",
"SaveCount=success0",
LAST);
web_url("controller.action",
"URL=https://qa.yeepay.com/app-merchant-proxy/controller.action?p0_Cmd=Buy&p1_MerId=10040003895&p2_Order=&p3_Amt=0.01&p4_Cur=CNY&p5_Pid=%B2%E2%CA%D4%C9%CC%C6%B7&p6_Pcat=PAYLINK&p7_Pdesc=&p8_Url=&p9_SAF=true&pa_MP=&pd_FrpId=&pv_Ver=2.0&hmac=a4af146d31f36e1ee9a295eaf7f0f324",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_message("选择银行出现次数success0=%s",lr_eval_string("{success0}"));
web_url("controller.action"......,LAST);执行完成后,页面上已经有了"选择银行"这四个字,但是计数器却还是0,有人遇到这个情况吗?
以下是这部分的日志:
Action.c(14): Registered web_reg_find successful for "Text=选择银行" [MsgId: MMSG-26362]
Action.c(14): Notify: Saving Parameter "xzyh = 0".
Action.c(14): web_url("controller.action") was successful, 44038 body bytes, 676 header bytes, 21 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(23): Notify: Parameter Substitution: parameter "xzyh" = "0"
选择银行出现次数xzyh=0
==================帖子还没写完,问题就解决了,不过出现了一个新情况================================================
以上问题将 "Search=Headers"参数注释掉就查找正常了,但是很奇怪,页面源码中选择银行这四个字确实是在head部分的,为什么统计不到呢?
以下是页面部分源码<html>
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
<title> 选择银行 </title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/pay-css.css" rel="stylesheet" type="text/css"/>
........
<head/> |
|