jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fitzpatrick, Adrian" <adri...@revenue.ie>
Subject RE: HTTP response assertion apparantly not working
Date Thu, 05 Mar 2009 13:10:08 GMT

This may help, from a previous post (response from sebb) -

On 12/01/2009, George Barnett <gbarnett@atlassian.com> wrote:
> Hi,
>
>  I've got a test suite that tests for missing pages as we have a custom 404
> handler which needs perf testing.
>
>  I check the response to ensure the response code matches 404 however
JMeter
> seems to unconditionally mark 404 responses as failed.
>
>  Is there a workaround for this?
>

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response
_Assertion

"Ignore Status" will allow such responses to be checked.


Also, think your assertion might be the wrong way round - i.e. "not"
shouldn't be ticked if you don't want 301 to be an error




-----Original Message-----
From: wicky_boy [mailto:wicky.boy@gmail.com]
Sent: 05 March 2009 13:02
To: jmeter-user@jakarta.apache.org
Subject: HTTP response assertion apparantly not working


*************************************

This e-mail has been received by the Revenue Internet e-mail service. (IP)

*************************************


Hi,

Need a sanity check.

I have an HTTP request which I don't want to appear as an error in my test
script.

The returned code and message is '301' and 'Moved Permanently' respectively.

I have setup the response assertion:

Response Field to Test = Response Code
Pattern Matching Results = Matches
Pattern to Test = 301
NOT = TICKED

The repsponse message is:

Thread Name: Thread Group 1-1
Sample Start: 2009-03-05 07:55:37 EST
Load time: 3
Latency: 0
Size in bytes: 0
Sample Count: 1
Error Count: 1
Response code: 301
Response message: Moved Permanently

After putting in the assertion the step still appears in the view results
tree as an error?

Is there something obvious I'm missing?

-- 
View this message in context:
http://www.nabble.com/HTTP-response-assertion-apparantly-not-working-tp223511
87p22351187.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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



************************

This message has been delivered to the Internet by the Revenue Internet e-mail service (OP)

*************************

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


Mime
View raw message