You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Konstantinos Dimkas <ks...@csd.auth.gr> on 2015/06/06 01:55:18 UTC

Uploading a file

Hi all, 
I am trying to test a cloud service and i am currently trying to upload a file. I have specified the file path and everything needed and the response cone is OK: 200.
The problem is that the file is not uploaded, because when i log-in i cannot find it.
Can anyone help?

Here is the response data:


Thanks in advance,
Konstantinos Dimkas




Re: Uploading a file

Posted by Peter Peterse <pe...@peterse-uithuizen.com>.
I think you have tot use an absolute path to the file you want to upload.

Regards,
Peter

Konstantinos Dimkas <ks...@csd.auth.gr> schreef op 6 juni 2015 01:55:18 CEST:
>Hi all, 
>I am trying to test a cloud service and i am currently trying to upload
>a file. I have specified the file path and everything needed and the
>response cone is OK: 200.
>The problem is that the file is not uploaded, because when i log-in i
>cannot find it.
>Can anyone help?
>
>Here is the response data:
>
>
>Thanks in advance,
>Konstantinos Dimkas

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Uploading a file

Posted by Deepak Shetty <sh...@gmail.com>.
compare a successful file upload (request/response including headers) v/s
Jmeter

On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:

> Hi all,
> I am trying to test a cloud service and i am currently trying to upload a
> file. I have specified the file path and everything needed and the response
> cone is OK: 200.
> The problem is that the file is not uploaded, because when i log-in i
> cannot find it.
> Can anyone help?
>
> Here is the response data:
>
> Thanks in advance,
> Konstantinos Dimkas
>
>
>
>

Re: Uploading a file

Posted by Konstantinos Dimkas <ks...@csd.auth.gr>.
I finally solved the problem by recording a test (with no exceptions) and compare it with my test. 
After i mover the zip files in the bin folder and added the mime type it worked fine.

Thank you all for your time!
> On Jun 9, 2015, at 6:05 PM, Deepak Shetty <sh...@gmail.com> wrote:
> 
> The server usually detects the client doesn't support javascript by something the client does( a parameter sent) or by the absence of it (for e.g. a cookie set , or a call made using javascript). The only way to diagnose such issue is compare a working set of request/response (e.g. from browser) with JMeter and replicate everything exactly. The other alternative is ask the developers of the application if they can tell from the server logs
> 
> On Tue, Jun 9, 2015 at 2:22 AM, Konstantinos Dimkas <ksdimkas@csd.auth.gr <ma...@csd.auth.gr>> wrote:
> Here is a screen shot of the test 
> 
> 
> In the response data in html in the first line it says “This application requires JavaScript for correct operation. Please enable JavaScript <http://enable-javascript.com/> and reload the page.” Can i do something about it? Could it be the reason that i cannot upload the file correctly?
> 
> Thanks for your time!
>> On Jun 7, 2015, at 9:31 PM, Deepak Shetty <shettyd@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Also you could always ask the devs why you get a 200 response code when the
>> app didnt work (usually some code is swallowing exceptions , but if you are
>> lucky it might be logged in some error log somewhere)
>> 
>> On Sun, Jun 7, 2015 at 11:22 AM, Deepak Shetty <shettyd@gmail.com <ma...@gmail.com>> wrote:
>> 
>>> hi
>>> In JMeter - use View Results Tree. (or you could use the same thing you
>>> use below)
>>> 
>>> Im assuming your application works normally - In which case you will have
>>> to see how you enable looking at the request/response . If you were using a
>>> browser you could use Fiddler or anything that monitors whatever the
>>> browser is doing. If its not browser you usually need either a Proxy or
>>> Tunnel (where the proxy or tunnel captures the data) and configure your
>>> application to use the Proxy or Tunnel.
>>> With this you could then compare the difference between what JMeter is
>>> sending and what the working application does.
>>> 
>>> regards
>>> deepak
>>> 
>>> On Sat, Jun 6, 2015 at 2:51 AM, Konstantinos Dimkas <ksdimkas@csd.auth.gr <ma...@csd.auth.gr>>
>>> wrote:
>>> 
>>>> I am using full path to the file i want to upload and the response code
>>>> is ok.
>>>> Deepak can you give me some more specific info please for the headers?
>>>> should i attach the imx file or put a print screen?
>>>> 
>>>> thank you all for responding
>>>> 
>>>> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bhatt.chaitanya@gmail.com <ma...@gmail.com>>
>>>> wrote:
>>>> 
>>>> Kindly share the sample script/testplan.
>>>> 
>>>> Thanks
>>>> Chaitanya M Bhatt
>>>> http://www.performancecompetence.com <http://www.performancecompetence.com/>
>>>> 
>>>> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ksdimkas@csd.auth.gr <ma...@csd.auth.gr>
>>>>> wrote:
>>>> 
>>>>> Hi all,
>>>>> I am trying to test a cloud service and i am currently trying to upload
>>>>> a file. I have specified the file path and everything needed and the
>>>>> response cone is OK: 200.
>>>>> The problem is that the file is not uploaded, because when i log-in i
>>>>> cannot find it.
>>>>> Can anyone help?
>>>>> 
>>>>> Here is the response data:
>>>>> 
>>>>> Thanks in advance,
>>>>> Konstantinos Dimkas
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> Konstantinos Dimkas
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
> 
> Konstantinos Dimkas
> 
> 
> 
> 

Konstantinos Dimkas




Re: Uploading a file

Posted by Deepak Shetty <sh...@gmail.com>.
The server usually detects the client doesn't support javascript by
something the client does( a parameter sent) or by the absence of it (for
e.g. a cookie set , or a call made using javascript). The only way to
diagnose such issue is compare a working set of request/response (e.g. from
browser) with JMeter and replicate everything exactly. The other
alternative is ask the developers of the application if they can tell from
the server logs

On Tue, Jun 9, 2015 at 2:22 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:

> Here is a screen shot of the test
>
> In the response data in html in the first line it says “This application
> requires JavaScript for correct operation. Please enable JavaScript
> <http://enable-javascript.com/> and reload the page.” Can i do something
> about it? Could it be the reason that i cannot upload the file correctly?
>
> Thanks for your time!
>
> On Jun 7, 2015, at 9:31 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
> Also you could always ask the devs why you get a 200 response code when the
> app didnt work (usually some code is swallowing exceptions , but if you are
> lucky it might be logged in some error log somewhere)
>
> On Sun, Jun 7, 2015 at 11:22 AM, Deepak Shetty <sh...@gmail.com> wrote:
>
> hi
> In JMeter - use View Results Tree. (or you could use the same thing you
> use below)
>
> Im assuming your application works normally - In which case you will have
> to see how you enable looking at the request/response . If you were using a
> browser you could use Fiddler or anything that monitors whatever the
> browser is doing. If its not browser you usually need either a Proxy or
> Tunnel (where the proxy or tunnel captures the data) and configure your
> application to use the Proxy or Tunnel.
> With this you could then compare the difference between what JMeter is
> sending and what the working application does.
>
> regards
> deepak
>
> On Sat, Jun 6, 2015 at 2:51 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
> I am using full path to the file i want to upload and the response code
> is ok.
> Deepak can you give me some more specific info please for the headers?
> should i attach the imx file or put a print screen?
>
> thank you all for responding
>
> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bh...@gmail.com>
> wrote:
>
> Kindly share the sample script/testplan.
>
> Thanks
> Chaitanya M Bhatt
> http://www.performancecompetence.com
>
> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ksdimkas@csd.auth.gr
>
> wrote:
>
>
> Hi all,
> I am trying to test a cloud service and i am currently trying to upload
> a file. I have specified the file path and everything needed and the
> response cone is OK: 200.
> The problem is that the file is not uploaded, because when i log-in i
> cannot find it.
> Can anyone help?
>
> Here is the response data:
>
> Thanks in advance,
> Konstantinos Dimkas
>
>
>
>
>
> Konstantinos Dimkas
>
>
>
>
>
>
> Konstantinos Dimkas
>
>
>
>

Re: Uploading a file

Posted by Konstantinos Dimkas <ks...@csd.auth.gr>.
Here is a screen shot of the test 


In the response data in html in the first line it says “This application requires JavaScript for correct operation. Please enable JavaScript <http://enable-javascript.com/> and reload the page.” Can i do something about it? Could it be the reason that i cannot upload the file correctly?

Thanks for your time!
> On Jun 7, 2015, at 9:31 PM, Deepak Shetty <sh...@gmail.com> wrote:
> 
> Also you could always ask the devs why you get a 200 response code when the
> app didnt work (usually some code is swallowing exceptions , but if you are
> lucky it might be logged in some error log somewhere)
> 
> On Sun, Jun 7, 2015 at 11:22 AM, Deepak Shetty <sh...@gmail.com> wrote:
> 
>> hi
>> In JMeter - use View Results Tree. (or you could use the same thing you
>> use below)
>> 
>> Im assuming your application works normally - In which case you will have
>> to see how you enable looking at the request/response . If you were using a
>> browser you could use Fiddler or anything that monitors whatever the
>> browser is doing. If its not browser you usually need either a Proxy or
>> Tunnel (where the proxy or tunnel captures the data) and configure your
>> application to use the Proxy or Tunnel.
>> With this you could then compare the difference between what JMeter is
>> sending and what the working application does.
>> 
>> regards
>> deepak
>> 
>> On Sat, Jun 6, 2015 at 2:51 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
>> wrote:
>> 
>>> I am using full path to the file i want to upload and the response code
>>> is ok.
>>> Deepak can you give me some more specific info please for the headers?
>>> should i attach the imx file or put a print screen?
>>> 
>>> thank you all for responding
>>> 
>>> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bh...@gmail.com>
>>> wrote:
>>> 
>>> Kindly share the sample script/testplan.
>>> 
>>> Thanks
>>> Chaitanya M Bhatt
>>> http://www.performancecompetence.com
>>> 
>>> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ksdimkas@csd.auth.gr
>>>> wrote:
>>> 
>>>> Hi all,
>>>> I am trying to test a cloud service and i am currently trying to upload
>>>> a file. I have specified the file path and everything needed and the
>>>> response cone is OK: 200.
>>>> The problem is that the file is not uploaded, because when i log-in i
>>>> cannot find it.
>>>> Can anyone help?
>>>> 
>>>> Here is the response data:
>>>> 
>>>> Thanks in advance,
>>>> Konstantinos Dimkas
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> Konstantinos Dimkas
>>> 
>>> 
>>> 
>>> 
>> 

Konstantinos Dimkas




Re: Uploading a file

Posted by Deepak Shetty <sh...@gmail.com>.
Also you could always ask the devs why you get a 200 response code when the
app didnt work (usually some code is swallowing exceptions , but if you are
lucky it might be logged in some error log somewhere)

On Sun, Jun 7, 2015 at 11:22 AM, Deepak Shetty <sh...@gmail.com> wrote:

> hi
> In JMeter - use View Results Tree. (or you could use the same thing you
> use below)
>
> Im assuming your application works normally - In which case you will have
> to see how you enable looking at the request/response . If you were using a
> browser you could use Fiddler or anything that monitors whatever the
> browser is doing. If its not browser you usually need either a Proxy or
> Tunnel (where the proxy or tunnel captures the data) and configure your
> application to use the Proxy or Tunnel.
> With this you could then compare the difference between what JMeter is
> sending and what the working application does.
>
> regards
> deepak
>
> On Sat, Jun 6, 2015 at 2:51 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
>> I am using full path to the file i want to upload and the response code
>> is ok.
>> Deepak can you give me some more specific info please for the headers?
>> should i attach the imx file or put a print screen?
>>
>> thank you all for responding
>>
>> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bh...@gmail.com>
>> wrote:
>>
>> Kindly share the sample script/testplan.
>>
>> Thanks
>> Chaitanya M Bhatt
>> http://www.performancecompetence.com
>>
>> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ksdimkas@csd.auth.gr
>> > wrote:
>>
>>> Hi all,
>>> I am trying to test a cloud service and i am currently trying to upload
>>> a file. I have specified the file path and everything needed and the
>>> response cone is OK: 200.
>>> The problem is that the file is not uploaded, because when i log-in i
>>> cannot find it.
>>> Can anyone help?
>>>
>>> Here is the response data:
>>>
>>> Thanks in advance,
>>> Konstantinos Dimkas
>>>
>>>
>>>
>>>
>>
>> Konstantinos Dimkas
>>
>>
>>
>>
>

Re: Uploading a file

Posted by Deepak Shetty <sh...@gmail.com>.
hi
In JMeter - use View Results Tree. (or you could use the same thing you use
below)

Im assuming your application works normally - In which case you will have
to see how you enable looking at the request/response . If you were using a
browser you could use Fiddler or anything that monitors whatever the
browser is doing. If its not browser you usually need either a Proxy or
Tunnel (where the proxy or tunnel captures the data) and configure your
application to use the Proxy or Tunnel.
With this you could then compare the difference between what JMeter is
sending and what the working application does.

regards
deepak

On Sat, Jun 6, 2015 at 2:51 AM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:

> I am using full path to the file i want to upload and the response code is
> ok.
> Deepak can you give me some more specific info please for the headers?
> should i attach the imx file or put a print screen?
>
> thank you all for responding
>
> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bh...@gmail.com>
> wrote:
>
> Kindly share the sample script/testplan.
>
> Thanks
> Chaitanya M Bhatt
> http://www.performancecompetence.com
>
> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
> wrote:
>
>> Hi all,
>> I am trying to test a cloud service and i am currently trying to upload a
>> file. I have specified the file path and everything needed and the response
>> cone is OK: 200.
>> The problem is that the file is not uploaded, because when i log-in i
>> cannot find it.
>> Can anyone help?
>>
>> Here is the response data:
>>
>> Thanks in advance,
>> Konstantinos Dimkas
>>
>>
>>
>>
>
> Konstantinos Dimkas
>
>
>
>

Re: Uploading a file

Posted by Konstantinos Dimkas <ks...@csd.auth.gr>.
I am using full path to the file i want to upload and the response code is ok.
Deepak can you give me some more specific info please for the headers?
should i attach the imx file or put a print screen?

thank you all for responding 
> On Jun 6, 2015, at 3:00 AM, chaitanya bhatt <bh...@gmail.com> wrote:
> 
> Kindly share the sample script/testplan.
> 
> Thanks
> Chaitanya M Bhatt
> http://www.performancecompetence.com <http://www.performancecompetence.com/>
> 
> On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ksdimkas@csd.auth.gr <ma...@csd.auth.gr>> wrote:
> Hi all, 
> I am trying to test a cloud service and i am currently trying to upload a file. I have specified the file path and everything needed and the response cone is OK: 200.
> The problem is that the file is not uploaded, because when i log-in i cannot find it.
> Can anyone help?
> 
> Here is the response data:
> 
> 
> Thanks in advance,
> Konstantinos Dimkas
> 
> 
> 
> 

Konstantinos Dimkas




Re: Uploading a file

Posted by chaitanya bhatt <bh...@gmail.com>.
Kindly share the sample script/testplan.

Thanks
Chaitanya M Bhatt
http://www.performancecompetence.com

On Fri, Jun 5, 2015 at 4:55 PM, Konstantinos Dimkas <ks...@csd.auth.gr>
wrote:

> Hi all,
> I am trying to test a cloud service and i am currently trying to upload a
> file. I have specified the file path and everything needed and the response
> cone is OK: 200.
> The problem is that the file is not uploaded, because when i log-in i
> cannot find it.
> Can anyone help?
>
> Here is the response data:
>
> Thanks in advance,
> Konstantinos Dimkas
>
>
>
>