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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21626

HTTPSampler adds query string parameter copies when server redirects more than once

           Summary: HTTPSampler adds query string parameter copies when
                    server redirects more than once
           Product: JMeter
           Version: 1.9.RC2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Main
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Basically, JMeter gets confused (adds query string parameter copies) when an
HTTPSampler is used to get a page that redirects more than once.  This occurs
reliably on JMeter version 1.9.RC2 running on Java version 1.4.2.

Reproduction Scenario
 
Use Jmeter to call the test servlet (attached) with a ?redirect=<number> query
string where <number> is greater than 2.  The servlet will count down the number
of redirects specified and finally render a basic HTML message.

JMeter's response to this is interesting.  Each subsequent time the HTTPSampler
is called (for a single thread in a Thread Group or Controller that loops), the
attributes in the query string are DOUBLED, then TRIPLED, etc.  This can be
observed using the View Results Tree "Results Window".  Plus, the values of the
attributes are not reset to that specified in the HTTPSampler.  Instead they are
the last values obtained from the final redirect of the last loop iteration.

In our case, servlets do this depending on varying circumstances.  The result is
that the integrity of the JMeter tests is unreliable thereafter.  While this is
a blocking problem for us, I'll just leave it at sev=major.

An accompanying jmx file is attached along with a JmeterTest.java servlet.

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

Reply via email to