LR的一段脚本,不大明白具体是什么意思
本系统要实现的一个功能是通过在网页中添加SJ代码,实现对被访网页的访问情况进行收集的功能,以下这段代码的意思应该是先访问“/html”页面,然后访问“a.html”,最后访问”index.html“,有没有高手请教一下呢
#include "web_api.h"
/起始
Action()
{
web_url("test1",
"URL=http://192.168.18.49/test1/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
/web_url()函数可以模拟用户请求
/web_url(“在测试结果中显示的名称”,"URL=需要访问的超链地址",LAST),负责发送一个标准的get http请求
web_url("test.php",
"URL=http://192.168.18.49/pandian2/api/test.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_cookie("fkflag123=fkflag; DOMAIN=localhost");
/web_add_cookie();主要负责为本机添加一个cookie
web_add_cookie("pandian123=fd65eec6-5005-3fbd-cfc6-4db5ace572db; DOMAIN=localhost");
web_add_cookie("fwstate123=fwstate; DOMAIN=localhost");
web_add_cookie("data123=123|c5bf48ad-14c0-7901-ad46-6cfb6004f006|0|1|index|http://192.168.18.49/test1/|localhost||1265442811656|fd65eec6-5005-3fbd-cfc6-4db5ace572db|0|1|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29; DOMAIN=localhost");
web_url("save.php",
"URL=http://192.168.18.49/pandian2/api/save.php?wid=123&fwid={NewParam}&pagedate=0&isentrance=1&title=index&surl=http://192.168.18.49/test1/&sdomain=localhost&lurl=&date=1265442811656&fkid={NewParam_1}&fkflag=0&fwstate=1&ip=ip=10.0.93.14&screensize=1440x900&language=zh-cn&iscookie=1&isflash=1&isjava=1&navigatorstr=Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29&updata=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_add_cookie("testcookie=yes; DOMAIN=localhost");
web_url("a.html",
"URL=http://192.168.18.49/test1/a.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("test.php",
"URL=http://192.168.18.49/pandian2/api/test.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_cookie("data123=123|c5bf48ad-14c0-7901-ad46-6cfb6004f006|0|0|a|http://192.168.18.49/test1/a.html|localhost|http://192.168.18.49/test1/|1265442813390|fd65eec6-5005-3fbd-cfc6-4db5ace572db|0|0|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29; DOMAIN=localhost");
web_url("save.php_2",
"URL=http://192.168.18.49/pandian2/api/save.php?wid=123&fwid={NewParam}&pagedate=0&isentrance=0&title=a&surl=http://192.168.18.49/test1/a.html&sdomain=localhost&lurl=http://192.168.18.49/test1/&date=1265442813390&fkid={NewParam_1}&fkflag=0&fwstate=0&ip=ip=10.0.93.14&screensize=1440x900&language=zh-cn&iscookie=1&isflash=1&isjava=1&navigatorstr=Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29&updata=123|{NewParam}|2|1|index|http://192.168.18.49/test1/|localhost||1265442811656|{NewParam_1}|0|1|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.2;%20SV1;%20.NET%20CLR%201.1.4322;%20.NET%20CLR%202.0.50727;%20.NET%20CLR%203.0.4506.2152;%20.NET%20CLR%203.5.30729;%20InfoPath.2)",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/a.html",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("index.html",
"URL=http://192.168.18.49/test1/index.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/a.html",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("test.php",
"URL=http://192.168.18.49/pandian2/api/test.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_cookie("data123=123|c5bf48ad-14c0-7901-ad46-6cfb6004f006|0|0|index|http://192.168.18.49/test1/index.html|localhost|http://192.168.18.49/test1/a.html|1265442814359|fd65eec6-5005-3fbd-cfc6-4db5ace572db|0|0|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29; DOMAIN=localhost");
web_url("save.php_3",
"URL=http://192.168.18.49/pandian2/api/save.php?wid=123&fwid={NewParam}&pagedate=0&isentrance=0&title=index&surl=http://192.168.18.49/test1/index.html&sdomain=localhost&lurl=http://192.168.18.49/test1/a.html&date=1265442814359&fkid={NewParam_1}&fkflag=0&fwstate=0&ip=ip=10.0.93.14&screensize=1440x900&language=zh-cn&iscookie=1&isflash=1&isjava=1&navigatorstr=Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29&updata=123|{NewParam}|1|0|a|http://192.168.18.49/test1/a.html|localhost|http://192.168.18.49/test1/|1265442813390|{NewParam_1}|0|0|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.2;%20SV1;%20.NET%20CLR%201.1.4322;%20.NET%20CLR%202.0.50727;%20.NET%20CLR%203.0.4506.2152;%20.NET%20CLR%203.5.30729;%20Info"
"Path.2)",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/index.html",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
web_url("a.html_2",
"URL=http://192.168.18.49/test1/a.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/index.html",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
web_url("test.php",
"URL=http://192.168.18.49/pandian2/api/test.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_cookie("data123=123|c5bf48ad-14c0-7901-ad46-6cfb6004f006|0|0|a|http://192.168.18.49/test1/a.html|localhost|http://192.168.18.49/test1/index.html|1265442816218|fd65eec6-5005-3fbd-cfc6-4db5ace572db|0|0|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29; DOMAIN=localhost");
web_url("save.php_4",
"URL=http://192.168.18.49/pandian2/api/save.php?wid=123&fwid={NewParam}&pagedate=0&isentrance=0&title=a&surl=http://192.168.18.49/test1/a.html&sdomain=localhost&lurl=http://192.168.18.49/test1/index.html&date=1265442816218&fkid={NewParam_1}&fkflag=0&fwstate=0&ip=ip=10.0.93.14&screensize=1440x900&language=zh-cn&iscookie=1&isflash=1&isjava=1&navigatorstr=Mozilla/4.0%20%28compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.2%3B%20SV1%3B%20.NET%20CLR%201.1.4322%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2%29&updata=123|{NewParam}|2|0|index|http://192.168.18.49/test1/index.html|localhost|http://192.168.18.49/test1/a.html|1265442814359|{NewParam_1}|0|0|ip=10.0.93.14|1440x900|zh-cn|1|1|1|Mozilla/4.0%20(compatible;%20MSIE%206.0;%20Windows%20NT%205.2;%20SV1;%20.NET%20CLR%201.1.4322;%20.NET%20CLR%202.0.50727;%20.NET%20CLR%203.0.4506.2152;%20.NET%20CLR%203.5.307"
"29;%20InfoPath.2)",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.18.49/test1/a.html",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
return 0;
}
TAG:
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | 5 | 6 | ||||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 |
我的存档
数据统计
- 访问量: 5740
- 日志数: 13
- 建立时间: 2009-10-14
- 更新时间: 2010-10-09