TA的每日心情 | 无聊 2015-8-13 05:45 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
我写的要关联的LR脚本: (左边数字是行号)
65: web_reg_save_param("lt1",
"LB/IC=login2.asp?lt=",
"RB/IC=%3a",
"Ord=1",
"Search=All",
LAST);
72: web_reg_save_param("lt2",
"LB/IC=%3a",
"RB/IC=%3a",
//"Ord=1",
"Search=All",
LAST);
79: web_reg_save_param("lt3",
"LB/IC=%3a",
"RB/IC=&service=",
//"Ord=1",
LAST);
85: web_url("IndexIframeLogin.asp",
"URL=http://www.s00.com/IndexIframeLogin.asp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.s00.com/",
//"Snapshot=t26.inf",
"Snapshot=t26.inf",
"Mode=HTTP",
//"Mode=HTML",
LAST);
95: lr_output_message("%s", lr_eval_string("{lt1}"));
96: lr_output_message("%s", lr_eval_string("{lt2}"));
97: lr_output_message("%s", lr_eval_string("{lt3}"));
107: web_concurrent_end(NULL);
如果我在run time setting 设置standard log:
Action.c(72): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(79): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(85): Registering web_url("IndexIframeLogin.asp") was successful [MsgId: MMSG-26390]
Action.c(95):
Action.c(96):
Action.c(97):
Action.c(85): Redirecting "http://www.sdo.com/IndexIframeLogin.asp" (redirection depth is 0) [issued at Action.c(107)] [MsgId: MMSG-26694]
Action.c(85): To location "http://lt.cas.sdo.com:8171/cas/login?service=http://www.sdo.com/IndexIframeLogin.asp" [issued at Action.c(107)] [MsgId: MMSG-26693]
Action.c(107): web_concurrent_end was successful, 5827 body bytes, 2152 header bytes, 12 chunking overhead bytes [MsgId: MMSG-26385]
我从Generated Log中得到的日志:其实我要访问的 URL=http://www.sdo.com/IndexIframeLogin.asp, 服务器端跳转到了http://lt.cas.sdo.com:8171/cas/login?
****** Request Header For Transaction With Id 38 ******
GET /IndexIframeLogin.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.sdo.com/
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)
Host: www.sdo.com
Connection: Keep-Alive
Cookie: ASPSESSIONIDCQTBTCDT=CGCENDKABDKPILBBMOCIBCDJ
$$$$$$ Request Header For Transaction With Id 38 Ended $$$$$$
****** Response Header For Transaction With Id 38 ******
HTTP/1.1 302 Object moved
Server: sdo
Date: Fri, 12 Jun 2009 07:54:16 GMT
Content-Type: text/html
Connection: keep-alive
Via: www1
Pragma: No-Cache
Location: http://lt.cas.sdo.com:8171/cas/l ... ndexIframeLogin.asp
Content-Length: 205
Expires: Thu, 11 Jun 2009 07:54:16 GMT
Set-Cookie: refererURL=http%253A%2F%2Fwww%2Esdo%2Ecom%2FIndexIframeLogin%2Easp; domain=sdo.com; path=/
Cache-control: no-cache
$$$$$$ Response Header For Transaction With Id 38 Ended $$$$$$
****** Response Body For Transaction With Id 38 ******
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="http://lt.cas.sdo.com:8171/cas/login?service=http://www.sdo.com/IndexIframeLogin.asp">here</a>.</body>
$$$$$$ Response Body For Transaction With Id 38 Ended $$$$$$
****** Start Log Message ******
Start Frames Hierarchy Tree Dump
/
End Frames Hierarchy Tree Dump
$$$$$$ End Log Message $$$$$$
****** Request Header For Transaction With Id 40 ******
GET /images/bg1.gif HTTP/1.1
Accept: */*
Referer: http://www.sdo.com/
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)
Host: www.sdo.com
Connection: Keep-Alive
Cookie: ASPSESSIONIDCQTBTCDT=CGCENDKABDKPILBBMOCIBCDJ
$$$$$$ Request Header For Transaction With Id 40 Ended $$$$$$
****** Response Header For Transaction With Id 40 ******
HTTP/1.1 200 OK
Server: sdo
Date: Fri, 12 Jun 2009 07:54:16 GMT
Content-Type: image/gif
Connection: keep-alive
Cache-Control: max-age=1296000
Via: www3
Content-Length: 1271
Last-Modified: Tue, 20 Jan 2009 15:22:08 GMT
Accept-Ranges: bytes |
|