You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Paul Rogers <pa...@shaw.ca> on 2011/01/15 00:48:45 UTC

expecting a 401 response code and not showing an error.

Im sure Ive run into this before, but now I cant figure it out.

Jmeter 2.4

Im using an http request sampler to access a login type page. Id like
to give it a username/password that is expected to fail, and in this
case return a 401 response code. Can I tell jmeter that this isnt
really an error, and getting a 401 is correct. Im guessing the error
column in the Summary Report and the View results Tree see anything
other than 200 as an error. Ive added a response assertion to look for
the 401, but it seems that jmeter regards the 401 as an error before
the response is asserted.

Thanks

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: expecting a 401 response code and not showing an error.

Posted by Paul Rogers <pa...@shaw.ca>.
thats what I was missing. Thank you very much.

Paul

On Fri, Jan 14, 2011 at 4:56 PM, sebb <se...@gmail.com> wrote:
> On 14 January 2011 23:48, Paul Rogers <pa...@shaw.ca> wrote:
>> Im sure Ive run into this before, but now I cant figure it out.
>>
>> Jmeter 2.4
>>
>> Im using an http request sampler to access a login type page. Id like
>> to give it a username/password that is expected to fail, and in this
>> case return a 401 response code. Can I tell jmeter that this isnt
>> really an error, and getting a 401 is correct. Im guessing the error
>> column in the Summary Report and the View results Tree see anything
>> other than 200 as an error. Ive added a response assertion to look for
>> the 401, but it seems that jmeter regards the 401 as an error before
>> the response is asserted.
>
> Did you check the "ignore status" checkbox?
>
>> Thanks
>>
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: expecting a 401 response code and not showing an error.

Posted by sebb <se...@gmail.com>.
On 14 January 2011 23:48, Paul Rogers <pa...@shaw.ca> wrote:
> Im sure Ive run into this before, but now I cant figure it out.
>
> Jmeter 2.4
>
> Im using an http request sampler to access a login type page. Id like
> to give it a username/password that is expected to fail, and in this
> case return a 401 response code. Can I tell jmeter that this isnt
> really an error, and getting a 401 is correct. Im guessing the error
> column in the Summary Report and the View results Tree see anything
> other than 200 as an error. Ive added a response assertion to look for
> the 401, but it seems that jmeter regards the 401 as an error before
> the response is asserted.

Did you check the "ignore status" checkbox?

> Thanks
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org