|
求高手帮忙,recording options中选择的是 url_based script 同时 html_based advanced中选择的是 a script containing explict,执行日志中提示 :Action.c(300): Registered web_reg_find successful for "Text=172.16.20.1" (count=1) ,但是:后面的写的检查语句却输出了“检查点失败”的检查语句:
if (atoi (lr_eval_string ("{172.16.20.1_count}"))==1) {
lr_output_message ("检查点成功");
}
else {
lr_output_message ("检查点失败");
}
return 0;
下面是我的脚本:
web_reg_find("Search=All",
"Text=172.16.20.1",
LAST);
web_url("Index.aspx",
"URL=http://172.16.0.96//Index.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t31.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("anchor.png",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/anchor.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t91.inf",
LAST);
web_url("tree_elbow.png",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/tree_elbow.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t92.inf",
LAST);
web_url("tree_file.gif",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/tree_file.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t93.inf",
LAST);
web_url("anchor.png_2",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/anchor.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t94.inf",
LAST);
web_concurrent_start(NULL);
web_url("reload.png_3",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/icons/reload.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t112.inf",
LAST);
web_url("panel_tools.gif_3",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/panel_tools.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t113.inf",
LAST);
web_url("panel_tools.gif_4",
"URL=http://172.16.0.96//jslib/jquery-easyui-1.3.1/themes/default/images/panel_tools.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t114.inf",
LAST);
web_concurrent_end(NULL);
web_url("ywts.htm",
"URL=http://172.16.0.96/layout/portal/ywts.htm?_=1384588508810",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t115.inf",
"Mode=HTTP",
LAST);
web_url("ywts.htm_2",
"URL=http://172.16.0.96/layout/portal/ywts.htm?_=1384588508810",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t116.inf",
"Mode=HTTP",
LAST);
web_url("czrz.htm",
"URL=http://172.16.0.96/layout/portal/czrz.htm?_=1384588508856",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.0.96//Index.aspx",
"Snapshot=t117.inf",
"Mode=HTTP",
LAST);
lr_end_transaction("lg", LR_AUTO);
if (atoi (lr_eval_string ("{172.16.20.1_count}"))==1) {
lr_output_message ("检查点成功");
}
else {
lr_output_message ("检查点失败");
}
return 0;
} |
|