issue during recording of file parse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

issue during recording of file parse

Alexander Podelko
Hi, 
I ran into an issue recording in JMeter 3.3. The process I want to record includes selecting a file which then gets parsed and results shown.
Works fine without JMeter recording. The request is:
POST /epm/ui-rest/v1/requests/19433ef9-a3d2-4566-8eab-b1bdc2694d54/parseResults

with content like:-----------------------------63682221520041Content-Disposition: form-data; name="file"; filename="request_flat_1M_100_Cust.xlsx"Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
and then the file itself.
The response is the parsed file in a json-like format.
However during recording JMeter somehow decide to get the file from the JMeter folder - so I may see for that request in View Result Tree:
Response code: Non HTTP response code: java.io.FileNotFoundExceptionResponse message: Non HTTP response message: C:\apache-jmeter-3.3\bin\request_flat_1M_100_Cust.xlsx (The system cannot find the file specified)
The request itself gets recorded - but we don't have the proper response, so can't record beyond that point.
Any thoughts?
Thanks,Alex

pmd
Reply | Threaded
Open this post in threaded view
|

Re: issue during recording of file parse

pmd
Hello,
You need to put the file you use in bin folder.
Regards



On Thu, Dec 21, 2017 at 10:07 PM, Alexander Podelko <
[hidden email]> wrote:

> Hi,
> I ran into an issue recording in JMeter 3.3. The process I want to record
> includes selecting a file which then gets parsed and results shown.
> Works fine without JMeter recording. The request is:
> POST /epm/ui-rest/v1/requests/19433ef9-a3d2-4566-8eab-
> b1bdc2694d54/parseResults
>
> with content like:-----------------------------63682221520041Content-Disposition:
> form-data; name="file"; filename="request_flat_1M_100_Cust.xlsx"Content-Type:
> application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
> and then the file itself.
> The response is the parsed file in a json-like format.
> However during recording JMeter somehow decide to get the file from the
> JMeter folder - so I may see for that request in View Result Tree:
> Response code: Non HTTP response code: java.io.FileNotFoundExceptionResponse
> message: Non HTTP response message: C:\apache-jmeter-3.3\bin\request_flat_1M_100_Cust.xlsx
> (The system cannot find the file specified)
> The request itself gets recorded - but we don't have the proper response,
> so can't record beyond that point.
> Any thoughts?
> Thanks,Alex
>
>


--
Cordialement.
Philippe Mouawad.
Reply | Threaded
Open this post in threaded view
|

Re: issue during recording of file parse

sebb-2-2
JMeter can only record what the browser gives it, and browsers only
include the name of the file, not its path.

So either ensure the file is in the JMeter launch directory or edit
the test plan to include the path to the file.

On 21 December 2017 at 21:11, Philippe Mouawad
<[hidden email]> wrote:

> Hello,
> You need to put the file you use in bin folder.
> Regards
>
>
>
> On Thu, Dec 21, 2017 at 10:07 PM, Alexander Podelko <
> [hidden email]> wrote:
>
>> Hi,
>> I ran into an issue recording in JMeter 3.3. The process I want to record
>> includes selecting a file which then gets parsed and results shown.
>> Works fine without JMeter recording. The request is:
>> POST /epm/ui-rest/v1/requests/19433ef9-a3d2-4566-8eab-
>> b1bdc2694d54/parseResults
>>
>> with content like:-----------------------------63682221520041Content-Disposition:
>> form-data; name="file"; filename="request_flat_1M_100_Cust.xlsx"Content-Type:
>> application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
>> and then the file itself.
>> The response is the parsed file in a json-like format.
>> However during recording JMeter somehow decide to get the file from the
>> JMeter folder - so I may see for that request in View Result Tree:
>> Response code: Non HTTP response code: java.io.FileNotFoundExceptionResponse
>> message: Non HTTP response message: C:\apache-jmeter-3.3\bin\request_flat_1M_100_Cust.xlsx
>> (The system cannot find the file specified)
>> The request itself gets recorded - but we don't have the proper response,
>> so can't record beyond that point.
>> Any thoughts?
>> Thanks,Alex
>>
>>
>
>
> --
> Cordialement.
> Philippe Mouawad.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: issue during recording of file parse

glinius@live.com
In reply to this post by Alexander Podelko
The easiest option is copying your *request_flat_1M_100_Cust.xlsx* file to
the "bin" folder of your JMeter installation.

Another option would be considering using another browser (or other tool
capable of sending HTTP reuqest such as  curl
<https://medium.com/@petehouston/upload-files-with-curl-93064dcccc76>  
which will report the fill path of the file being uploaded to JMeter.

And finally you can use  JMeter Chrome Extension
<https://guide.blazemeter.com/hc/en-us/articles/206732579-Chrome-Extension>  
- in this case you won't have to worry about proxies, SSL certificates,
files locations, etc.

Just make sure you use full path to the file when replaying your test
scenario.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]