jmeter 重定向次数设置


Jmeter运行的时候出现的重定向超过n次的问题:

When trying to test a Silverlight application, I get the below error. Has anybody experienced this before and advise me?

Many thanks, Koen

Thread Name: Thread Group 1-1
Sample Start: 2009-05-11 17:48:41 BST
Load time: 55
Latency: 55
Size in bytes: 662
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.io.IOException
Response message: Non HTTP response message: Exceeded maximum number of
redirects: 5

Response headers:
HTTP/1.1 302 Found
Date: Mon, 11 May 2009 16:48:41 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Location: /Default.aspx
Set-Cookie: Portal.ReturnUrl=/loginad.aspx; path=/
Set-Cookie: ASP.NET_SessionId=1xs1fhjhglhdiirgdvcj5y55; path=/; HttpOnly
Set-Cookie:
.ASPXAUTH=8D294EB05229E93A1D72B2BEF434316AA6ABEE57D13F3A6124E97AF34BC228948431B1\
6F1C2AF837CD085C1C66B4C0AF7588EB3FCC7BDC85FFB365B2C672092A16828A2E2A471F6CB597BE\
040784818C7AD06E8BA599BC1AA82EDEF8509DC18A; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 645

解决办法:可以修改Jmeter的配置文件,把重定向的次数加大:

修改jakarta-jmeter-2.3.2_1\bin下的jmeter.properties文件,把其中的#httpsampler.max_redirects=5改为:

httpsampler.max_redirects=10(或者其它你需要的次数)就可以了。
Joyce /
Published under (CC) BY-NC-SA in categories jmeter  tagged with jmeter