首先,我不知道该如何真正向大家展示我在做什么,也没人能真正访问该网站,因为它是网站所在的专用网络。这是JMeter的屏幕截图:
我只是尝试登录到我们的网站,但是在“/common/j_security_check”的“查看结果树”节点下,它失败了。以下是标签中的信息:
采样器结果:
Thread Name: Thread Group 1-1
Sample Start: 2011-08-18 16:59:26 PDT
Load time: 0
Latency: 0
Size in bytes: 795
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.lang.IllegalArgumentException
Response message: Non HTTP response message: Entity enclosing requests cannot be redirected without user intervention
Response headers:
HTTPSampleResult fields:
ContentType:
DataEncoding: null
要求:
POST https://DELETED BY ME (SORRY)
POST data:
[no cookies]
Request Headers:
响应数据:
ava.lang.IllegalArgumentException: Entity enclosing requests cannot be redirected without user intervention
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.setFollowRedirects(EntityEnclosingMethod.java:225)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler2.setupConnection(HTTPSampler2.java:623)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:890)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:951)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:348)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
at java.lang.Thread.run(Unknown Source)
谢谢你的帮助。
最佳答案
尝试从Redirect automatically
切换到Follow Redirects
。
看起来它正在尝试重定向以进行身份验证,这意味着您可能还需要cookie manager
。
关于jmeter - JMeter无法登录网站-JMeter Noob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7125210/