https://issues.apache.org/bugzilla/show_bug.cgi?id=54598

            Bug ID: 54598
           Summary: Exceeding httpsampler.max_redirects rise an exception
           Product: JMeter
           Version: 2.9
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

Created attachment 29982
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29982&action=edit
Exception trace displayed in the sample response

Consider an HTTP Request which generates two HTTP 302 Redirects.
I am interested only in the first redirect, because the second one points to an
external system, which is not currently under test.
So in the user.properties I set httpsampler.max_redirects=1 expecting JMeter
just to stop after the first redirect.

Running the test, after the first redirect (performing the second redirection)
the following exception is raised:
java.io.IOException: Exceeeded maximum number of redirects: 1
and the sample results to be 'failed'

I think that to verify that a request do not generates more than X
redirections, it should be available a specific Assertion.
When i set a property in the user.properties, i just expect to modify the
JMeter behaviour, in this case to stop after X redirections but without errors
and, however, without unhandled exceptions.

See attachment max_redirects.png

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to