You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by venkatakurathi <ve...@hotmail.com> on 2012/05/24 17:52:48 UTC

why upload of xml is creating issues when compared to normal file upload?

does uploading a normal file (like .doc/.txt/.pdf.....) and xml differs in
jmeter?
i have given the path to file in-- send files with request and type in both
cases.but only successful in uploading normal files,failed to upload xml
files..cn some one explain why it happens?
in my application when u upload a xml file the backend activities are
1)xml is traversed and db will be created
2)xml is placed in a location.
 when i debug it with fiddler i came to know response is coming same in both
cases(fiddler & jmeter)...but when i check at the backend i am not finding
the xml placed at my destination location.

in fiddler i am finding the content of xml in parameters list
but in jmeter ,request shows ...
Content-Disposition: form-data; name="selectedFiles";
filename="xxxx_Data.xml"
Content-Type: text/xml
Content-Transfer-Encoding: binary

<actual file content, not shown here>
-----------------------------7d159c1302d0y0--

is it being really uploaded?
how to see the file content here to confirm whether its uploaded?

any help in this will be really appreaciated & helps me a lot to move
further...

-----
Venkat Akurathi
91-9703186688
--
View this message in context: http://jmeter.512774.n5.nabble.com/why-upload-of-xml-is-creating-issues-when-compared-to-normal-file-upload-tp5713319.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: why upload of xml is creating issues when compared to normal file upload?

Posted by sebb <se...@gmail.com>.
On 25 May 2012 07:59, venkatakurathi <ve...@hotmail.com> wrote:
> i have given the correct file name & tried to upload the file from various
> locations.
> if i give wrong file name i ll be encountered with response ..
> java.io.FileNotFoundException: E:\data\xxxx.xml (The system cannot find the
> file specified)
>
> i am getting the proper response only but unable to find the uploaded file
> at destination?

The destination server is doing something different; check its logs.

Compare what a browser sends with what JMeter sends.

Check the response that the server sends for the POST.

> -----
> Venkat Akurathi
> 91-9703186688
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/why-upload-of-xml-is-creating-issues-when-compared-to-normal-file-upload-tp5713319p5713341.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: why upload of xml is creating issues when compared to normal file upload?

Posted by venkatakurathi <ve...@hotmail.com>.
i have given the correct file name & tried to upload the file from various
locations.
if i give wrong file name i ll be encountered with response ..
java.io.FileNotFoundException: E:\data\xxxx.xml (The system cannot find the
file specified)

i am getting the proper response only but unable to find the uploaded file
at destination?

-----
Venkat Akurathi
91-9703186688
--
View this message in context: http://jmeter.512774.n5.nabble.com/why-upload-of-xml-is-creating-issues-when-compared-to-normal-file-upload-tp5713319p5713341.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: why upload of xml is creating issues when compared to normal file upload?

Posted by sebb <se...@gmail.com>.
On 24 May 2012 16:52, venkatakurathi <ve...@hotmail.com> wrote:
> does uploading a normal file (like .doc/.txt/.pdf.....) and xml differs in
> jmeter?

No difference; JMeter does not care what the file type is.

> i have given the path to file in-- send files with request and type in both
> cases.but only successful in uploading normal files,failed to upload xml
> files..cn some one explain why it happens?

Wrong file name?

> in my application when u upload a xml file the backend activities are
> 1)xml is traversed and db will be created
> 2)xml is placed in a location.
>  when i debug it with fiddler i came to know response is coming same in both
> cases(fiddler & jmeter)...but when i check at the backend i am not finding
> the xml placed at my destination location.
>
> in fiddler i am finding the content of xml in parameters list
> but in jmeter ,request shows ...
> Content-Disposition: form-data; name="selectedFiles";
> filename="xxxx_Data.xml"
> Content-Type: text/xml
> Content-Transfer-Encoding: binary
>
> <actual file content, not shown here>
> -----------------------------7d159c1302d0y0--
>
> is it being really uploaded?

Yes.

> how to see the file content here to confirm whether its uploaded?

JMeter does not include the file contents in the request panel, so you
will have to read the file.

> any help in this will be really appreaciated & helps me a lot to move
> further...
>
> -----
> Venkat Akurathi
> 91-9703186688
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/why-upload-of-xml-is-creating-issues-when-compared-to-normal-file-upload-tp5713319.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org