DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28699>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28699

Test Result comes out to be fail if the HTTP response code is non-200's even though 
the response assertion for the http sampler matches the code.

           Summary: Test Result comes out to be fail if the HTTP response
                    code is non-200's even though the response assertion for
                    the http sampler matches the code.
           Product: JMeter
           Version: 2.0.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HTTP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am not sure if this is the way the software is originally designed to do, at
least one person is extremely annoyed by the fact, because a part of my test
consists of error case handling tests. In other words, I expect that a certain
error such as 404 (not found) comes back and I want my response assertion
element to match that.

Steps:
1. launch JMeter, add a thread group to the root test plan.
2. Under the thread, add an http sampler, View Results in Table listener and
View Results Tree listener.
3. Under http sampler, add a response assertion.
4. In the http sampler, add a valid web server ip address, port#, protocol used.
Then in the path, just enter something bogus like "doesnotexist.htm", assuming
the file does not exist.
5. In the response assertion, choose "Response Code" in the Response Field to
Test. Then in the Patterns to Test table, just have a row with "404". Verify
that Pattern Matching Rule is "Contains".
6. Run the test.
Result: If you look at View Results in Table, the check box column is not
checked, indicating that the test was a failure. If you look at View Results
Tree and expand the tree, you'll see the HTTP Request test shown in red, further
indicating that the test was a failure. If you look at the HTTP response code in
the actual result, you'll see 404. Exactly what we are expecting!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to