JMeter无法登录网站-JMeter Noob [英] JMeter unable to login to web site - JMeter noob

查看:295
本文介绍了JMeter无法登录网站-JMeter Noob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不知道如何真正向大家展示我到底在做什么,也没人能真正访问该网站,因为它是网站所在的专用网络.这是JMeter的屏幕截图:

First off, I don't know how to really show you guys what exactly I'm working on nor can anyone actually hit the site because it's a private network where the website lives. Here is a screen shot of JMeter:

我只是尝试登录到我们的网站,但是在"/common/j_security_check"的查看结果树"节点下,它失败了.以下是标签中的信息:

I'm just trying to login to our website but under the View Results Tree node for the "/common/j_security_check" it is failing. Below is the info from the tabs:

采样结果:

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.

It looks like it's trying to redirect for authentication, which means you probably need a cookie manager as well.

这篇关于JMeter无法登录网站-JMeter Noob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆