The blank screen was the response from the file attachment request. I am not 
using the browser.

Thanks & Regards
Murthy




________________________________
From: Deepak Shetty <[email protected]>
To: JMeter Users List <[email protected]>
Sent: Thursday, September 24, 2009 1:28:40 PM
Subject: Re: file upload problem

what blank screen are you talking about?
are you by any chance using your browser?


On Thu, Sep 24, 2009 at 10:23 AM, murthy gandikota <
[email protected]> wrote:

> I turned off the proxy and ran the script. I got a blank screen ... no
> server response for the file upload....
>
> Thanks & Regards
> Murthy
>
>
>
>
> ________________________________
> From: Deepak Shetty <[email protected]>
> To: JMeter Users List <[email protected]>
> Sent: Thursday, September 24, 2009 1:12:43 PM
> Subject: Re: file upload problem
>
> The proxy is used to record a script. once the script is recorded , there
> is
> no need for the proxy. the script is the same whether you create it
> manually
> or whether you recorded it
>
>
> regards
> deepak
>
> On Thu, Sep 24, 2009 at 10:10 AM, murthy gandikota <
> [email protected]> wrote:
>
> > I don't understand your comment about "no proxy here" for item#b below.
> The
> > proxy is running when the file is being uploaded. Shouldn't this be the
> > case? There is no user authentication. The app runs fine without file
> > upload. I have just now turned off the file upload and everything is
> > hunkydory.
> > I think my question should be very elementary because I am not able to
> > upload using jmeter. There are no errors in the log.......
> >
> > Thanks & Regards
> > Murthy
> >
> >
> >
> > ________________________________
> > From: Deepak Shetty <[email protected]>
> > To: JMeter Users List <[email protected]>
> > Sent: Thursday, September 24, 2009 12:42:23 PM
> > Subject: Re: file upload problem
> >
> > You are confusing two issues
> > a. Recording Jmeter Script with proxy - Interesting to see why , but not
> > really a priority, can be tackled later.
> >
> > b. Running a Jmeter script with file upload. (no proxy here).
> >
> > Whether JMeter sends the file is separate from whether your application
> > adds/updates the record. If your file path is correct then Jmeter will be
> > sending the file , its probably related data that isn't correct.
> > Compare what Jmeter does with Fiddler/LiveHttpHeaders. You've havent
> > provided any other details (e.g. does your app need the user to be
> > authenticated before he can upload anything , is there any other related
> > data, is there any https involved), you'll need to check your app
> >
> > regards
> > deepak
> >
> >
> >
> >
> > On Thu, Sep 24, 2009 at 9:28 AM, murthy gandikota <
> > [email protected]> wrote:
> >
> > > Thanks for the fast reply. I have placed the file to upload in the bin
> > > directory (from where Jmeter.bat was launched). I still don't see the
> > file
> > > getting across to the server. Jmeter's proxy is the one I am
> suspecting.
> > I
> > > could be wrong. I appreciate your help.
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: sebb <[email protected]>
> > > To: JMeter Users List <[email protected]>
> > > Sent: Thursday, September 24, 2009 12:12:41 PM
> > > Subject: Re: file upload problem
> > >
> > > 2009/9/24 murthy gandikota <[email protected]>:
> > > > There are no errors in Jmeter when the file attachment request was
> > > processed.
> > > > The file attachment is not going through to the server. The backend
> is
> > a
> > > servlet that extracts the attachment and saves in DB. I verify that the
> > file
> > > is uploaded against the DB.
> > > >
> > > > Ignoring all else:
> > > > I would like to know how can I record a file attachment using Jmeter
> > > proxy? All of my tests have shown me that the file attachment is not
> > going
> > > through.
> > >
> > > Same as recording any other HTTP interchange.
> > >
> > > Note that some browsers don't pass the full path name of the file when
> > > they upload, so you need to make sure that any files are in the JMeter
> > > working directory - or use a browser that passes the full path name.
> > >
> > > The path seen by JMeter should be obvious from the generated sampler,
> > > and if the file is not found it will be logged.
> > >
> > > > Thanks & Regards
> > > > Murthy
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: sebb <[email protected]>
> > > > To: JMeter Users List <[email protected]>
> > > > Sent: Thursday, September 24, 2009 11:49:12 AM
> > > > Subject: Re: file upload problem
> > > >
> > > > 2009/9/24 murthy gandikota <[email protected]>:
> > > >> The app works fine with Fiddler. The Jmeter's  HTTP Proxy  is
> blocking
> > > the file attachment.
> > > >
> > > > What do you mean by "blocking"?
> > > > Is there an error reported in the HTTP Response or jmeter log file?
> > > > If so, what?
> > > >
> > > > We can't help if you don't tell us what happened.
> > > >
> > > >> I don't know what else to try.
> > > >
> > > > Just add the appropriate sampler without using the Proxy.
> > > > Also see
> > > >
> > > > http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
> > > >
> > > >> I'd appreciate your help.
> > > >
> > > > You need to provide enough information to allow others to help.
> > > >
> > > >> Regards
> > > >> Murthy
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> ________________________________
> > > >> From: Deepak Shetty <[email protected]>
> > > >> To: JMeter Users List <[email protected]>
> > > >> Sent: Wednesday, September 23, 2009 5:19:54 PM
> > > >> Subject: Re: file upload problem
> > > >>
> > > >> as always compare your Jmeter sent data with your browser sent data
> > > (using
> > > >> livehttpheaders or equivalent). in all probability you  havent sent
> > the
> > > data
> > > >> as your server expects.(or the server is performing some
> authorization
> > > >> checks etc which arent being fulfilled).
> > > >> you should verify whether jmeter is sending data using something
> like
> > > >> wireshark. Your jboss/tomcat not printing out a message does not
> > > necessarily
> > > >> indicate that the file was not sent, only that it wasnt successful.
> > > >>
> > > >> the proxy not working is strange , does your app work with any other
> > > proxy?
> > > >> e,g, use fiddler in IE
> > > >>
> > > >> regards
> > > >> deepak
> > > >>
> > > >>
> > > >>
> > > >> On Wed, Sep 23, 2009 at 2:01 PM, murthy gandikota <
> > > >> [email protected]> wrote:
> > > >>
> > > >>> Hi Deepak
> > > >>> Thanks for your reply
> > > >>> The test plan has a request to upload a file by specifying a
> > parameter.
> > > >>>
> > > >>> The parameter name is uploadFileName
> > > >>> The mime type is application/pdf
> > > >>> The file to attach is given with its entire path like c:\test.pdf
> > > >>>
> > > >>> The resulting Jmeter script is not sending the file attachment. I
> > > verified
> > > >>> it on the server. If there were a file attachment the server would
> > > print out
> > > >>> a message on the console. BTW, it is Jboss with embedded Tomcat
> > > >>>
> > > >>> Regarding IE/Firefox, I tried to record the file attachment by
> > running
> > > >>> Jmeter's Proxy. The recording was partially successful in the sense
> > > that the
> > > >>> file upload request was created but no file was sent to the server.
> > On
> > > the
> > > >>> contrary, I am seeing a file download from the server. This
> behavior
> > is
> > > not
> > > >>> reproducible without the proxy. I think the proxy is intercepting
> the
> > > file
> > > >>> attachment and precluding it from sending to the server.
> > > >>>
> > > >>> I'd appreciate your help.
> > > >>> Murthy
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> ________________________________
> > > >>> From: Deepak Shetty <[email protected]>
> > > >>> To: JMeter Users List <[email protected]>
> > > >>> Sent: Wednesday, September 23, 2009 4:44:36 PM
> > > >>> Subject: Re: file upload problem
> > > >>>
> > > >>> a. Should have no bearing on your problem
> > > >>> b. What exactly did you try in your script? what is the response
> you
> > > are
> > > >>> getting (using View results tree).?
> > > >>> c. What do you mean tried in IE/firefox? if its not working from
> the
> > > >>> browser
> > > >>> it probably wont work from Jmeter .
> > > >>>
> > > >>> On Wed, Sep 23, 2009 at 1:27 PM, murthy gandikota <
> > > >>> [email protected]> wrote:
> > > >>>
> > > >>> > Hi
> > > >>> >
> > > >>> > I am new to this group and jmeter. So forgive me if this question
> > has
> > > >>> been
> > > >>> > asked before. I am using 2.3.3.2 v
> > > >>> >
> > > >>> > For the first time I am trying to upload a file. The request has
> > been
> > > set
> > > >>> > up to upload an application/pdf mime type file.
> > > >>> > However, the request doesn't go through because:
> > > >>> > a) I have a constant throughput timer set for 10 minutes
> > > >>> > b) In response to the upload, the server apparently is sending a
> > file
> > > to
> > > >>> > download (which does not happen normally)
> > > >>> > c) tried this with both IE and Firefox
> > > >>> >
> > > >>> > I have drawn all blanks so far in searching for this topic on
> web.
> > > >>> >
> > > >>> > Can someone please tell me there is a simple solution to all
> this?
> > > >>> >
> > > >>> > Thanks
> > > >>> > Murthy
> > > >>> >
> > > >>> >
> > > >>> >
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [email protected]
> > > > For additional commands, e-mail: [email protected]
> > > >
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
>
>
>



      

Reply via email to