|
5#
楼主 |
发表于 2010-1-28 10:31:55
|
只看该作者
改用URL方式录制脚本,response data 能找到一处sessionid,但运行后仍然找不到,各位这个问题有解吗?
==== A.脚本
//1. 设置关联
web_reg_save_param("sessionid",
"LB=Set-Cookie: ASP.NET_SessionId=",
"RB=; path",
"Ord=1",
"Search=Headers",
LAST);
//2. 脚本中能录制到的,只有下面这一句
web_add_cookie("testFORM=4E3D99BD7A83A47E4F67CBE989DEA24D533F563BFEBE70560CB7E3CD4C1A008CC827AF2EA9ABDD0F2333A6EA9EEEFCEF164C26CDC49A484A02BC0A76A04B30A5; DOMAIN=192.168.1.20");
=== .脚本
== B. Replay Log:
vuser_init.c(23): Error -26377: No match found for the requested parameter "sessionid". 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 [MsgId: MERR-26377]
== C. generation log
****** Request Header For Transaction With Id 47 ******
GET /testtest/ValidateUser/Login.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CIBA; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: 192.168.1.20
Connection: Keep-Alive
Cookie: testFORM=4E3D99BD7A83A47E4F67CBE989DEA24D533F563BFEBE70560CB7E3CD4C1A008CC827AF2EA9ABDD0F2333A6EA9EEEFCEF164C26CDC49A484A02BC0A76A04B30A5
$$$$$$ Request Header For Transaction With Id 47 Ended $$$$$$
****** Response Header For Transaction With Id 47 ******
HTTP/1.1 200 OK
Date: Thu, 28 Jan 2010 01:18:25 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=puyt0n55ahot3i55jhqpfn45; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 7107
===generation log |
|