jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Making HTTP 404 a test success
Date Fri, 06 Jul 2012 16:34:33 GMT
works fine for me -
Can you post your exact response headers?

regards
deepak

On Fri, Jul 6, 2012 at 9:13 AM, Richard Gaywood <richardgaywood@gmail.com>wrote:

> Hi list,
>
> I'm load testing a RESTful web service. One of my scenarios is a GET which
> receives no data, followed by a PUT to populate the web service. The GET,
> naturally, returns 404. However, JMeter insists on tagging this as a failed
> sampler, which is messing up my test stats and meaning I can't catch
> genuine errors in a "errors only" results tree.
>
> How can I convince JMeter to regard 404 as a successful sample result?
>
> I tried adding a Response Assertion with config to state that "Response
> Code", "Contains", "404" (with "Ignore Status" ticked), but the sample
> still fails. I don't understand why; reading the JMeter manual makes it
> sound like that should work. The assertion result says
>
> Assertion error: false
> Assertion failure: true
> Assertion failure message: Test failed: code expected to equal /
> ****** received  : 404[[[ ]]]
> ****** comparison: 404[[[
> ]]]
> /
>
>
> Any help you can render would be gratefully received!
>
> [image: Inline image 1]
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message