jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evandro Grezeli <grezeli.evan...@gmail.com>
Subject Re: Problems uploading a file in 2.4 version - Possible [BUG]
Date Mon, 25 Oct 2010 11:29:38 GMT
Hi,

Thanks for the answer!
Does you recompiled your JMeter with the modification? The second link it's
a list of mail threads.

[]s

On Fri, Oct 22, 2010 at 7:37 PM, N Cocy <novu3novrin@gmail.com> wrote:

> Check following URL, plus my ad-hoc fix the problem.
>
> http://stackoverflow.com/questions/1947315/load-testing-multipart-form/
>
> http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/201010.mbox/browser
>
> JMeter follows RFC 2388, but browser or application seems not foolowing
> RFC.
>
>
> On Sat, Oct 23, 2010 at 3:12 AM, Evandro Grezeli
> <grezeli.evandro@gmail.com> wrote:
> > Found the problem!
> >
> > Just for documentation, here my thoughts.
> >
> > The HTTP Request do not handle chunked header response.
> >
> > When i send the file using the jmeter proxy, the application return a
> > response header with chunked information and Jmeter somehow do not
> > understand the information, showing no response for me.
> >
> > I saw in JMeter page in the TODO link the possible new module
> > HTTP-multiPart, so I'm wondering if this situation i can consider it as a
> > Bug or a enhancement.
> >
> > The bug cause there's a check-box at the HTTP Request to mark it as a
> > multipart/form-data for http post.
> >
> > Thanks for all.
> >
> > On Thu, Oct 21, 2010 at 11:59 AM, Evandro Grezeli <
> grezeli.evandro@gmail.com
> >> wrote:
> >
> >> Another Clue:
> >>
> >> Checking the http header of the request with a sniffer, there's a
> >> difference on the encoding:
> >>
> >> Sniffer header:
> >>
> >> -----------------------------7da26420204a0
> >> Content-Disposition: form-data; name="file"; filename="FILE.TXT"
> >> Content-Type: text/plain
> >>
> >> (the file info all showed here)
> >>
> >> -----------------------------7da26420204a0
> >> Content-Disposition: form-data; name="saveButton"
> >>
> >> c
> >> -----------------------------7da26420204a0--
> >>
> >> The save button it's pressed to upload the file
> >>
> >> JMeter Header execution:
> >>
> >> POST data:
> >> -----------------------------7d159c1302d0y0
> >> Content-Disposition: form-data; name="file"; filename="FILE.TXT"
> >> Content-Type: text/plain
> >> Content-Transfer-Encoding: binary
> >>
> >> <actual file content, not shown here>
> >> -----------------------------7d159c1302d0y0--
> >>
> >> My question is:
> >>
> >> - There's a way to change de transfer-enconding? The next step in the
> >> application it's to intercept the file and check it in a Servlet, to
> finally
> >> show to the user if the file was processed sucessfuly. I guess the
> binary
> >> enconding it's the problem, or perhaps not.
> >>
> >> I saw other threads with same kind of problem, but none of them had a
> >> significant conclusion. Can anyony give me a clue?
> >>
> >> Thanks in advance!
> >>
> >>
> >>
> >>
> >> On Wed, Oct 20, 2010 at 12:25 PM, Evandro Grezeli <
> >> grezeli.evandro@gmail.com> wrote:
> >>
> >>> Found an old thread with the same problem.
> >>>
> >>> Just put the file at the bin directory and it worked. More less worked.
> >>>
> >>> Now continuing with my problem, when i submit the file the application
> on
> >>> the next screen show me the ok answer for the upload. But when im
> recording
> >>> and submit it, the IE screen just freeze (showing nothing) and the
> loading
> >>> status showed it's just "Done".
> >>>
> >>> It's normal this behavior? Should i just change my assert at the test
> >>> plan? Any other clues?
> >>>
> >>> thanks in advance!
> >>>
> >>>
> >>> On Wed, Oct 20, 2010 at 12:04 PM, Evandro Grezeli <
> >>> grezeli.evandro@gmail.com> wrote:
> >>>
> >>>> All,
> >>>>
> >>>> Does anyone had a bad experience uploading a file with jmeter version
> >>>> 2.4?
> >>>>
> >>>> When i select the file for upload and submit it in my application the
> >>>> following error occur:
> >>>> *
> >>>> java.io.FileNotFoundException: FILE.TXT (The system couldn't found the
> >>>> necessary file) at java.io.FileInputStream.open(Native Method) at
> >>>> java.io.FileInputStream.(Unknown Source) at
> java.io.FileInputStream.(Unknown
> >>>> Source) at
> >>>>
> org.apache.jmeter.protocol.http.sampler.PostWriter.writeFileToStream(PostWriter.java:406)
> >>>> at
> >>>>
> org.apache.jmeter.protocol.http.sampler.PostWriter.sendPostData(PostWriter.java:115)
> >>>> at
> >>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sendPostData(HTTPSampler.java:122)
> >>>> at
> >>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:508)
> >>>> at
> >>>>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
> >>>> at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:242) *
> >>>>
> >>>> I'm recording with proxy server, btw.
> >>>> To simplify, the file.txt it's located at my root system (C:)
> >>>>
> >>>> --
> >>>> Atenciosamente
> >>>> Regards
> >>>> Evandro Grezeli de B. Neves
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Atenciosamente
> >>> Regards
> >>> Evandro Grezeli de B. Neves
> >>>
> >>>
> >>>
> >>
> >>
> >> --
> >> Atenciosamente
> >> Regards
> >> Evandro Grezeli de B. Neves
> >>
> >>
> >>
> >
> >
> > --
> > Atenciosamente
> > Regards
> > Evandro Grezeli de B. Neves
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


-- 
Atenciosamente
Regards
Evandro Grezeli de B. Neves

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