JMeter Beginner Tutorial 24 - How to test File Upload

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 เม.ย. 2017
  • FREE Courses - automationstepbystep.com/
    Today we will learn:
    1. How to create test for file upload
    2. How to record test for file upload
    ____________________________________
    1 How to create test for File Upload
    Step 1 : Create a Test Plan - Thread Group - HTTP Request
    Step 2 : Add values in HTTP Request sampler
    Step 3 : Add File Upload details
    Step 4 : Add Listeners to view results
    Step 5 : Run and Validate
    ____________________________________
    2 How to record test for File Upload
    Step 1 : Add Template - Recording
    Step 2 : Provide a port number (e.g. 8181)
    Step 3 : Set browser to listen to this port
    Step 4 : Start Recording
    Step 5 : Filter the samples you need from recorded samples
    Step 6 : Run and Validate
    __________________________________________
    Helpful Tips:
    In case you face any issues..
    Check the following :
    Method is POST
    Use multipart/form-data for POST Box is checked
    File location | Parameter | Mime Type are correct
    Check the logs for any other error
    In case you face any issues in recording the scenario...
    Watch :
    • JMeter Beginner Tutori...
    ___________________________________________
    References :
    www.tinyupload.com/
    www.freeformatter.com/mime-typ...
    ----------- PERFORMANCE TESTING -----------
    JMeter Beginner - bit.ly/2oBbtIU
    JMeter Intermediate - bit.ly/2oziNVB
    JMeter Advanced - bit.ly/2Q22Y6a
    JMeter Tips & Tricks - bit.ly/2NOfWD2
    Performance Testing - bit.ly/2wEXbLS
    _______ ONLINE COURSES TO LEARN _______
    Visit - automationstepbystep.com/
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    Never Stop Learning
    Raghav

ความคิดเห็น • 208

  • @RaghavPal
    @RaghavPal  5 ปีที่แล้ว +2

    Online courses - automationstepbystep.com/

    • @walterandy7050
      @walterandy7050 2 ปีที่แล้ว

      You all probably dont care at all but does anyone know of a way to get back into an instagram account..?
      I was dumb lost my password. I appreciate any help you can give me.

    • @kristopherryland837
      @kristopherryland837 2 ปีที่แล้ว

      @Walter Andy Instablaster =)

    • @walterandy7050
      @walterandy7050 2 ปีที่แล้ว

      @Kristopher Ryland i really appreciate your reply. I found the site through google and Im waiting for the hacking stuff atm.
      Looks like it's gonna take a while so I will reply here later when my account password hopefully is recovered.

    • @walterandy7050
      @walterandy7050 2 ปีที่แล้ว

      @Kristopher Ryland It worked and I actually got access to my account again. Im so happy:D
      Thanks so much, you saved my account!

    • @kristopherryland837
      @kristopherryland837 2 ปีที่แล้ว

      @Walter Andy Happy to help xD

  • @tin5653
    @tin5653 7 ปีที่แล้ว +5

    I would like to congratulate you on putting together a highly informative and structured video. Well done!! Keep it up....

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Thanks Agustin for your kind words.

  • @aravindawesome2671
    @aravindawesome2671 2 ปีที่แล้ว +1

    Great effort.Content looks pretty impressive with zoom in and off..Keep it up!

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Thanks a ton Aravind

  • @grzegorzchrzanowski3417
    @grzegorzchrzanowski3417 6 ปีที่แล้ว

    Thank you for this video. Have a good day.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      You're welcome.

  • @rabimaniupadhaya1097
    @rabimaniupadhaya1097 5 ปีที่แล้ว

    Very Useful video, any one can understand easily.
    Thanks

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Rabi

  • @prashantht.v8289
    @prashantht.v8289 7 ปีที่แล้ว +1

    Excellent videos are very informative Thanks for postsing

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Prashanth, i am glad you liked it.

  • @mohsenbou
    @mohsenbou ปีที่แล้ว

    thanks for your learning
    👋👍

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Most welcome Mohsen

  • @sireeshabade2694
    @sireeshabade2694 5 ปีที่แล้ว

    hi sir thanks lot sir good job and good job ur doing. i will share your videos .please upload more videos sir

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Sure Sireesha, I will do

  • @fredy8237
    @fredy8237 2 ปีที่แล้ว

    Excellent… thanks

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Most welcome Fredy

  • @chandrashekars2960
    @chandrashekars2960 7 ปีที่แล้ว +1

    Thanks sir

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      you're welcome Chandra Shekar

  • @murugappanm1107
    @murugappanm1107 6 ปีที่แล้ว +1

    nice video

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      thanks for watching

  • @MohamedSalahAboFares
    @MohamedSalahAboFares 7 ปีที่แล้ว +2

    thanks a lot for this video
    Kindly let me know the recording program that u r using it.

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว +1

      i an using mac in-built programs.

  • @sromankov6102
    @sromankov6102 5 ปีที่แล้ว

    Great video, thanks. Could you please tell how i can dynamically change name and content of json file by every request in jmeter

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi, you can provide the data like name etc from variables outside the test script or use csv file. Check for parameterisation videos in jmeter playlist here - automationstepbystep.com/online-courses/

  • @muralidharramapatruni7957
    @muralidharramapatruni7957 7 ปีที่แล้ว +1

    Hi Raghav . Thanks for the videos. They are very informative and you are very good at explaining things. Well done..
    Also i would like to know if you have any video explaining how to deal with Kerberos authentication. I saw many posts online but none of them were informative. It will be great if you have or make one.. thanks again.

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Muralidhar, thanks for watching and liking. I do not have any video on that as of now. Will try to make something on that soon.

    • @muralidharramapatruni7957
      @muralidharramapatruni7957 7 ปีที่แล้ว +1

      Thanks for your prompt response. to add on to our audience requests , the course will be complete with a video on Master and Slave configuration too. No one have proper videos or explanation on that topic too.

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      sure. Taken down.

  • @artattackbymaya8862
    @artattackbymaya8862 2 ปีที่แล้ว +1

    Hi. Very informative and well-structured content. I have one question. I am looking for the mime-type for .tdms files. Could you please help me with the same?

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi, I will need to see some online examples

    • @artattackbymaya8862
      @artattackbymaya8862 2 ปีที่แล้ว

      @@RaghavPalSure. Thank you. Please do let me know if you find something :)

  • @menezesn
    @menezesn 7 ปีที่แล้ว +1

    Hi Raghav, thanks for uploading these videos , it has helped to learn jmeter within no time.I have a query regarding put method ,
    our application uses PUT method to upload files , in put method when i specify file location , jmeter is not picking up the file and our services ends up in creating zero kb file .. can you please let me know how i should proceed?

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      hi Nixon, will be difficult to troubleshoot this without any logs. Just re-check the path provided is correct and accessible.

    • @menezesn
      @menezesn 7 ปีที่แล้ว

      Hi Raghav , i was able to resolve this , by removing parameter name and keeping it blank ..the test started picking the physical file location.

  • @meherreena
    @meherreena 4 ปีที่แล้ว

    Hi Raghav, very useful video thank you, quick question, can we upload video files to csv and test with the same method? My test case is filling up few fields in a webform and then upload a video at the same time. Thanks.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Reena, If its a file, the process should be the same. You can try

    • @meherreena
      @meherreena 4 ปีที่แล้ว

      @@RaghavPal So there are few mp4 files that I need to add one each time along with the other text fields in the webform.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Okay you can try that. Can also take some online help

  • @sadiarasheed668
    @sadiarasheed668 5 ปีที่แล้ว

    Hi Raghav,Thanks for all the videos and all the effort you are putting to educate all of us. I would like to ask a question, I have a scenario in which I need to test XML file upload. I have used blazemeter to record the test and even record the test with JMeter itself but don't know why my upload is not successful. My application is ASP.NET and there is a guid, i am new to performance testing i have used a regular expression for GUID but it's not working. Below is the code when I inspect the element.
    Can you suggest something which can help me in my test . Thank you.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sadia, will have to see your app and check

  • @hariprasadyadavali2524
    @hariprasadyadavali2524 5 ปีที่แล้ว +1

    Hi Raghav, Thanks a lot for this video but I don't understand what performance testing we are doing here. Just upload an image into the server and seeing results in the listener. Please explain to me if understood wrong.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Hari, so here we are checking the server's ability to handle multiple file uploads. When there will be multiple users doing file upload at the same time, how will server behave, will there be any performance issues etc..

  • @sk-creativemind7805
    @sk-creativemind7805 2 ปีที่แล้ว

    Hi Raghav,
    Thanks for the information. I have the download and upload task to perform.
    Let me try this and come back to you for any help.
    Thanks,
    Sayed

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว +1

      Great

    • @sk-creativemind7805
      @sk-creativemind7805 2 ปีที่แล้ว

      @@RaghavPal Hi Raghav, I have tried folder download functionality using your information and it's very helpful for me and i have achieved my task. Thank you so much for the help.
      Regards,
      Sayed

  • @nsukanyasukanya8543
    @nsukanyasukanya8543 5 ปีที่แล้ว

    Hi sir. Thank you. This vedio is very useful. I have one question I.e., if I have recorded a perticular function that has done on the browser. Now how can I run that recorded script later to see whether that functionality is working or not and if it's working how to check the response time. Please help me with the answer sir. Thanks in advance !!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sukanya, I did not completely understand your question. If you record and play the script and its working fine. It should work fine later as well unless their are some changes at the application or data. And response time etc you can check in Listeners. Pls check JMeter course here - automationstepbystep.com/online-courses/

    • @nsukanyasukanya8543
      @nsukanyasukanya8543 5 ปีที่แล้ว +1

      Thank you so much sir... I will try and get back to you if there is any concerns ☺️

  • @sonalkalokhe1310
    @sonalkalokhe1310 4 ปีที่แล้ว +1

    Hi Raghav,
    I have a put request which does the file upload in my application, also there is no name parameter for the image input element in that case what needs to be done currently facing file not found exception

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Sonal, pls check if this helps - www.blazemeter.com/blog/testing-advanced-rest-api-file-uploads-jmeter/

  • @arunvijeesh2281
    @arunvijeesh2281 6 ปีที่แล้ว

    Hi Ragav
    Whether we can increase thread users while uploading files ?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Arun, We can start the thread with multiple users as per our need. In case you want to increase the load while the run is in progress, that might not be doable in JMeter

  • @darshanhr1213
    @darshanhr1213 4 ปีที่แล้ว +1

    Hi Raghav,
    I'm getting the response as "Malformed multipart POST" in the response body. Can you please tell me how to fix this one.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Darshan, Check if this helps you - stackoverflow.com/questions/39007025/jmeter-multipart-request-with-file-upload

  • @ideavateknowledgesessions7010
    @ideavateknowledgesessions7010 6 ปีที่แล้ว

    Hi Raghav
    when I am using Recording template for file uploading got an error File not found exception so whether I will have to put my file in \bin\template folder or not ?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi, if you put your file in jmeter's bin folder then you don't need to give complete file path, else you will need to give the entire path.

  • @BharatsharmaVlogs
    @BharatsharmaVlogs 6 ปีที่แล้ว

    Thanks a Lot Raghav,
    I have one query for the same ,
    As per above scenario, we have posted only one file upload. But if we Add more files(e.g. using add button in 'file Upload' tab) in same Request Then how should i post all files one by one ??
    Kindly let me know the way.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Bharat, You can use parametrization using CSV file. There is a session video on that.

    • @BharatsharmaVlogs
      @BharatsharmaVlogs 6 ปีที่แล้ว

      Thanks Raghav,
      I hv Already Implemented above use case using .CSV file. But i need to know is there any way to do file upload by adding multiple files inside 'Files Upload' tab in single request.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Bharat, you should be able to do that. Pls try and let me know if you face issues.

  • @rajithabandaru
    @rajithabandaru 3 ปีที่แล้ว

    thanks a lot for the video, I want to upload in Webservice and the path of the file or file is expected in the request body, can u pls help me with that

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Ranjitha, check if this helps you
      www.blazemeter.com/blog/testing-advanced-rest-api-file-uploads-jmeter/
      stackoverflow.com/questions/56393070/jmeter-http-post-request-with-body-data-and-file-upload

  • @monalikajain
    @monalikajain 3 ปีที่แล้ว

    Hi raghav..can you please suggest how to upload multiple doc for single thread.

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Monalika, You can increase iterations in thread group

  • @umamaheswari1108
    @umamaheswari1108 6 ปีที่แล้ว

    Hi Raghav,
    We have excluded the png,gif kind of files while recording the file upload scenario. In that case how the png file is being uploaded? Please clarify.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Uma,
      You can try including them and test

  • @monalikajain
    @monalikajain 3 ปีที่แล้ว

    Hi raghav..can you please suggest how to upload multiple doc for single thread(user)

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      You can increase iterations in thread group

  • @OscarEduardoAlvaradoQuiroga
    @OscarEduardoAlvaradoQuiroga 7 ปีที่แล้ว

    thanks for this video, I would like to ask you a couple of questions.
    I am trying to upload a file from jmeter consuming a Restful service, on the other hand the service is implemented in java with spring. my service receives two parameters one string and the other multipart, when I send to my service with a payload I recognize the first string parameter, the second multipart parameter that must be the file sends it empty. I do not know if jmeter has problems with the Content-Disposition: form-data; name = "file"; filename = "test.txt" but it does not work. Maybe I'm doing something wrong. please I need help.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Oscar, if you can send me your jmx and complete scenario, i can look into it.

    • @OscarEduardoAlvaradoQuiroga
      @OscarEduardoAlvaradoQuiroga 6 ปีที่แล้ว

      Dear Raghav,
      This is the link where I attach part of the code in java that I use to create the service and the jmx I am using.
      drive.google.com/file/d/0BwNQ8b7jz9pBSGVIVGU0c2w3b3c/view?usp=sharing
      The problem that you comment in the comment of your video about uploading a file with Jmeter. Well what happens is that I try to use that jmx to be able to send a file to my service, but this one receives the attachment as null, empty, and I do not know why that happens. Please your help. Thank you.

    • @OscarEduardoAlvaradoQuiroga
      @OscarEduardoAlvaradoQuiroga 6 ปีที่แล้ว

      Some help?

  • @harishsaraf3621
    @harishsaraf3621 5 ปีที่แล้ว

    Hi Raghav ,
    Thanks for great tutorial.
    I want to test folder upload containing 100 images . How do I create script for that?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Hari, so you can parametrize it using csv file. You can watch the video for parameterization.

    • @harishsaraf3621
      @harishsaraf3621 5 ปีที่แล้ว

      @@RaghavPal thanks for responding back. I am uploading a file of 100 images with different extensions PNG,JPEG,gif etc. Is it possible to parameterize the MIME type also?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Should be able to if you can parametrize and provide variable there

  • @amaravathis8106
    @amaravathis8106 6 ปีที่แล้ว

    Thanks for the videos. I have a query. I have muliple csv files, and multiple users., need to upload a csv for each user. I have configured the users in CSV file and tried to configure multiple files in the file upload section, it is not successful. can anyone suggest ?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      What is the error you are getting. Do you have any log information. I believe in a single csv file you can give user info and csv location. One row for each user and refer data from there in your sampler.

  • @slobodanparizoski6869
    @slobodanparizoski6869 ปีที่แล้ว

    The recorder script saves the file location only with the filename (myphoto.jpeg). In this case, when you run again, the test fails with FileNotFound exception. I changed the file path to absolute path (C:Users\firstname.lastname\Desktop\myphoto.jpeg) and it works fine.

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว +1

      Hi Slobodan,
      Yes, when you use relative paths in JMeter, it is relative to the current working directory of the JVM process running JMeter. So, if you run the test from a different location, the relative path might not be valid and you will get a FileNotFoundException.
      Using an absolute path, as you have done, ensures that the file is located in the same place every time the test is run, regardless of the current working directory. This is why it works when you use an absolute path.
      In general, it is a good practice to use absolute paths when referencing files in your JMeter tests to avoid issues like this.

  • @danger8586
    @danger8586 3 ปีที่แล้ว

    Hi Raghav,
    I have a question script recorder and the recording through Badboy or blazemeter is the same ?
    Can I use Badboy or blazmeter instead of using script recorder directly from Jmeter?
    Kindly please advise

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Muhammad Mustafa, I will suggest to go with Blazemeter or JMeters Test Script Recorder. BadBoy is not stable now

    • @danger8586
      @danger8586 3 ปีที่แล้ว

      Automation Step by Step - Raghav Pal
      Hi Raghav,
      Noted, Thanks for the suggestion will follow the same as you mentioned.

  • @praveenamurali1236
    @praveenamurali1236 7 ปีที่แล้ว

    Hi ragav, I tried the way u said, but in drupal platform I am getting an error "An ajax error occurred" while trying to upload an image during recording.Any tips from ur end to solve this issue??

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Can you record the same using blazemeter plugin and check again. This video will help - th-cam.com/video/JI99ZOuI5tQ/w-d-xo.html

  • @familiacoura
    @familiacoura 7 ปีที่แล้ว

    Hi, Raghav! Congratulations on your videos! Could you help me, please? I need to test File Upload, but, before, it is necessary to insert the username and password. I have to access other pages to reach the page responsible for the upload action. In this case, how should the "path" be entered, please?

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Bruno, Thanks for watching. You can record your web test and navigation and follow the step at the file upload section. Please give it a try.

    • @familiacoura
      @familiacoura 7 ปีที่แล้ว

      Hi, Raghav! Thanks a lot for your attention and your tip. I tried to do it. May I explain with more details?
      For example:
      Page 1 (Username and Password) > Page 2 > Page 3 > Page 4 (Click on a box "Select File" and, after that, on a box "Upload" ).
      This action was recorded using Badboy software.
      The results were insteresting, because the "path" to the Page 3 is equal to the Page 4. So, when the "path" to the Page 4 is written in the browser, the Page 3 appears.
      Please, is there a solution for this situation?

  • @thilagavathip1629
    @thilagavathip1629 3 ปีที่แล้ว

    Hi Sir, Thank you for your valuable information. Please tell how to send plain text as post request of Rest API in jmeter. I tested with plain text but i am not getting proper output. how to use Groovy script in Jmeter. how to send plain text as post request to using Groovy and Jmeter.

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Thilagavathi, in case you are using APIs I will suggest to watch this - th-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html

  • @madhumuppala2274
    @madhumuppala2274 2 ปีที่แล้ว

    Hi Raghav,
    Thanks for the step-by-step explanation for the JMeter file upload.
    The only source we can purely rely on.
    I have quick question : How can we handle login or authentication in case of file upload to a server or S3 bucket?
    Also, if I wanted to upload any file like .dat or .text or .png, will there be any general MIME type I can use?

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi Madhu, thanks for the comment, I will check on your question

  • @MohamedSalahAboFares
    @MohamedSalahAboFares 7 ปีที่แล้ว

    I've a question
    I'm recording a script for the login form and all steps are success, but when i'm trying to record another case after login always there is an error appears once the script is running >
    401 - Unauthorized: Access is denied due to invalid credentials.
    You do not have permission to view this directory or page using the credentials that you supplied.

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว +1

      Hi Salah, your case is the typical problem of session id. What you will need to do is capture the session id after login and pass it on to other requests. This might be helpful - th-cam.com/video/7-NcyZuUQnw/w-d-xo.html

    • @MohamedSalahAboFares
      @MohamedSalahAboFares 7 ปีที่แล้ว

      I'm already capture the token in the login script and everything is OK, but in the second script the mentioned error appeared.

  • @fourwheeltraveller
    @fourwheeltraveller 7 ปีที่แล้ว

    Hi Raghav, thanks for the informative videos.
    I am recording the script using blazemeter and with that the FileUpload section remains empty for File Upload Http request.
    So I manually provided File Path, Parameter Name and MIME Type. Now when I am running the script, am facing the following exception.
    ERROR - jmeter.protocol.http.proxy.Proxy: [63948] Exception when processing sample java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    I am trying to upload an .xlsx file. Also the Http request path is something like: xyz/ajax/fileupload.ashx
    Please help!

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      hi Himanshu, check if this helps - stackoverflow.com/questions/3384714/problem-with-jmeter-and-http-proxy-server-with-ssl

  • @navyan1186
    @navyan1186 7 ปีที่แล้ว

    Hi Raghav,
    I'm trying to run a file upload script using jmeter. All the other steps have passed successfully except for the step that contains file upload. I'm receiving "HTTP Status 404 - Not Found" Apache Tomcat/8.0.43 in the response. I validated all the data provided in the request parameters and file upload parameters, but i'm still receiving the error at this step. It would be very much helpful if you could provide your input regarding this issue. Thanks much!
    Also, the log file displays "INFO o.a.j.s.FileServer: Stored: Test.docx"., but still no luck. (Required file is placed in jmeter bin folder)

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Navya, check if this helps - stackoverflow.com/questions/37051000/getting-404-error-in-response-in-case-post-request-in-jmeter

  • @VivekanandDeshmukh
    @VivekanandDeshmukh ปีที่แล้ว

    How can we upload mulitple files from single source folders i mean only giving the path of folder it should upload all files present in that folder. pls suggest something .......thankyou in advance

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Hi,
      In the http request sampler, in the "Files Upload" tab, add a new parameter with the "Name" as "file[]" and the "Path" as the folder path containing the files
      In this way, the folder path should be the path of the folder that you want to upload all files present in that folder
      The "[]" at the end of "file" is important as it tells JMeter to upload multiple files.
      In the "Path" field, you can use wildcards like , **/.extension, to select multiple files with a common extension or pattern

  • @kanikasharma8260
    @kanikasharma8260 4 ปีที่แล้ว

    Hi Raghav,
    I recorded a scenario for file upload using Blazemeter but I got an error after running the .jmx file. I check my .jmx file on cmd but it shows my .jmx file is fine. Also, do I need to add Filepath in Http request if I am using .jmx file from blazemeter.
    To be more specific, I got this error.
    2020-02-13 15:35:42,460 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
    java.lang.StringIndexOutOfBoundsException: begin 17, end -1, length 17
    Thanks In Advance.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Kanika, have you checked with jmx checker tool - th-cam.com/video/bYw-SKE-4Mk/w-d-xo.html

  • @harishsaraf3621
    @harishsaraf3621 5 ปีที่แล้ว

    Hi Raghav ,
    I am testing single file upload. The thing is if I do it manually through any browser time it takes to upload is about 36Second and if I do through Jmeter it takes around 60seconds as response time. Is there any sampler or any component available in Jmeter to match with Browser's speed ? Please help.
    Thanks

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Hari, pls check the thread count, Are you doing with a single user on JMeter.

    • @harishsaraf3621
      @harishsaraf3621 5 ปีที่แล้ว

      @@RaghavPal yes Raghav. For now I want to achieve same speed as browser with 1 user. Once it is achieved , planning to run it with multiple users.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Ok, thats strange to know, Without looking at your setup it will be difficult to troubleshoot. Pls see the client machine, env are all same, when you are doing the comparison

  • @sakshisinghal6930
    @sakshisinghal6930 4 หลายเดือนก่อน

    Hi sir , I need to know how to send a single thread having parameters along with file upload in Jmeter

    • @RaghavPal
      @RaghavPal  4 หลายเดือนก่อน

      Sakshi
      To send a single request with parameters and file upload in JMeter, follow these steps:
      1. Create an HTTP Request Sampler:
      - Add an HTTP Request sampler to your test plan.
      - Configure the server details (URL, method, etc.).
      2. Select "Use multipart/form-data":
      - In the HTTP Request sampler, check the "Use multipart/form-data for POST" option.
      - This is essential for sending files along with other parameters.
      3. Add Parameters:
      - If you need to send additional parameters (besides the file), add them as HTTP Request Parameters.
      - Specify the parameter names and values.
      4. Configure File Upload:
      - In the same HTTP Request sampler, go to the "Send Files With the Request" section.
      - Set the following properties:
      - File Path: Specify the path to your file (e.g., `path/to/your/file.txt`).
      - Parameter Name: Choose a parameter name for the file (e.g., `upload_file`).
      - MIME Type: Specify the MIME type of the file (e.g., `text/plain`).
      5. Boundary (Optional):
      - JMeter will automatically generate a boundary for the multipart request.
      - If you want to set a custom boundary, you can do so in the "Body Data" tab of the HTTP Request sampler.
      6. Run Your Test:
      - Execute your test plan to send the request with parameters and the uploaded file.
      Here's a simplified example of how the configuration might look in JMeter:
      ```
      HTTP Request
      - Server Name or IP: example.com
      - Port Number: 80
      - Method: POST
      - Path: /upload
      Parameters:
      - Parameter Name: username
      Value: john_doe
      - Parameter Name: description
      Value: My file upload
      Send Files With the Request:
      - File Path: path/to/your/file.txt
      - Parameter Name: upload_file
      - MIME Type: text/plain
      ```
      Remember to adjust the details (server, file path, parameter names, etc.) according to your specific use case. .

  • @GauravMishra-7819
    @GauravMishra-7819 6 ปีที่แล้ว +1

    Hi raghav, is there any link for selenium in c#?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Gaurav, not yet, but you can get some help online.
      I will create selenium with c# soon.

    • @GauravMishra-7819
      @GauravMishra-7819 6 ปีที่แล้ว +1

      Thanks

  • @JafferyKazim
    @JafferyKazim 7 ปีที่แล้ว

    Raghav,
    Good Evening
    is it possible to add Selenium web driver into Jmeter
    Thanks
    J

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Jaffery, yes there is also a webdriver plugin for jmeter - jmeter-plugins.org/wiki/WebDriverTutorial/

    • @JafferyKazim
      @JafferyKazim 7 ปีที่แล้ว

      Hello Raghav,
      i was able to add Webdriver plugin for Jmeter but page open as empty page

  • @mareddyramireddy9543
    @mareddyramireddy9543 3 ปีที่แล้ว

    how to upload the multiple files with the help of csv data set configuration with 10 threads

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi, you can create multiple CSV Data Set Config www.blazemeter.com/blog/how-to-pick-different-csv-files-at-jmeter-runtime/

  • @AmongManyWays
    @AmongManyWays 6 ปีที่แล้ว

    hi raghav how to use Http test script recorder for POST requests from Postman ?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi what exactly you are trying to do here? Record Postman actions or create a api test in JMeter.

  • @ProdigyXAKEP
    @ProdigyXAKEP 5 ปีที่แล้ว

    What if the button Upload does not have parameter Name? My button looks like:
    Next
    What should I put in Parameter Name?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi, you can select any unique parameter. Can try with id in your case. These links will help
      www.helpingtesters.com/file-upload-in-jmeter/
      stackoverflow.com/questions/37556816/how-to-upload-file-in-front-end-using-jmeter

  • @nina10103
    @nina10103 5 ปีที่แล้ว

    Hi, I need to upload a file in a web app made with JSF, when I record the script the request contains a boundary, the content type is Content-Type: multipart/form-data; boundary=webkitform I don't know what to add to the request. Have you done this before? What do I need to do to upload the file? Thank you.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Ana, have you tried recording the scenario and then look at the generated samplers?
      Also check this
      stackoverflow.com/questions/37556816/how-to-upload-file-in-front-end-using-jmeter
      www.blazemeter.com/blog/recording-file-uploads-jmeter

    • @nina10103
      @nina10103 5 ปีที่แล้ว

      @@RaghavPal Thank you for the answer, I record with the blazemeter extension and the request that is saved is this ibb.co/NNFsVzg in the value I'm using the jsviewState variables ibb.co/sFg5KCh but I don't see how to tell Jmeter to upload the file, the header is this ibb.co/KyFPjhZ

    • @nina10103
      @nina10103 5 ปีที่แล้ว

      @@RaghavPal I also record the script with the JMeter proxy, the problem is that the boundary that is generated automatically is not correct ibb.co/XDH1r0L
      ibb.co/k87hrRV
      ibb.co/R9LWj9S
      How can I send the correct boundary?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Ana, is your site accessible publicly. Just wanted to check at my end.

  • @mrdhwnkml
    @mrdhwnkml 2 ปีที่แล้ว

    Hi Raghav,
    I got this error,
    Thread Name:Thread Group 1-1
    Sample Start:2022-03-14 09:29:03 ICT
    Load time:4151
    Connect Time:343
    Latency:4151
    Size in bytes:229
    Sent bytes:697912
    Headers size in bytes:181
    Body size in bytes:48
    Sample Count:1
    Error Count:1
    Data type ("text"|"bin"|""):text
    Response code:400
    Response message:Bad Request
    HTTPSampleResult fields:
    ContentType: application/json; charset=utf-8
    DataEncoding: utf-8
    why I get this error? Thanks

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi, most probably you're sending malformed requests which server doesn't understand
      can check this
      kinsta.com/knowledgebase/400-bad-request/

  • @lisawaugh9846
    @lisawaugh9846 7 ปีที่แล้ว

    I am able to upload small files (

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Lisa, what size files are you trying with. Essentially from a client side application the regular files that needs to be uploaded to any application should be easily tested with JMeter. Let me know if there is some specific issue you are facing.

    • @lisawaugh9846
      @lisawaugh9846 7 ปีที่แล้ว

      Hi, the file that works is 500 KB and the one that fails is 582 KB. The file that fails in jmeter works fine in Postman. There are no errors listed in the jmeter log. I receive a 500 connection error (no additional details) from my server.

    • @lisawaugh9846
      @lisawaugh9846 7 ปีที่แล้ว

      hi Raghav, I am able to upload a file with size 500kb with jmeter but not 582kb. There are no errors in the log. I get a 500 response. However, if I use Postman to do the same upload that fails in jmeter it works. So that leads me to believe there is a limit in jmeter. Is there anyway to get around it?

    • @RaghavPal
      @RaghavPal  7 ปีที่แล้ว

      Hi Lisa, i am not able to troubleshoot this issue. May be you can do some browsing and try to find out.

  • @nitheeshbharadwaj3225
    @nitheeshbharadwaj3225 2 ปีที่แล้ว

    Hi, how to upload the multiple videos for load test?

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi Nitheesh, did not get exactly your scenario

  • @aradhana2462
    @aradhana2462 6 ปีที่แล้ว

    i am unable to upload file through proxy server, i am getting error as Upload File failed.but i can upload without proxy server..
    So how can i record script for file upload through jmeter..please suggest.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว +1

      You can try using blazemeter chrome plugin for recording.

  • @palanis4349
    @palanis4349 5 ปีที่แล้ว

    Hi Raghav
    I followed your steps to upload file, but getting below error
    "The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used."
    Please let me know how to solve this issue, Thanks in advance

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Palani, pls check what is the http method you are using, You can try one of these post or POST

  • @jagannukala6160
    @jagannukala6160 5 ปีที่แล้ว

    can i repeat the scenario in profile edit button ?????

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Jagan, you will have to check the scenario with the steps shown. Hopefully it should work

  • @PallaviDeore-yn9ts
    @PallaviDeore-yn9ts 6 หลายเดือนก่อน

    Hi raghav
    Muze excel file upload krna hai from bin folder to MIME type kaise put krna hai?

    • @RaghavPal
      @RaghavPal  6 หลายเดือนก่อน

      Pallavi
      Here's how to set the MIME type for uploading an Excel file from the bin folder in JMeter's HTTP Request sampler:
      1. Configure HTTP Request Sampler:
      - Open the HTTP Request sampler in JMeter.
      - Set the Method to POST (or the appropriate method for your upload endpoint).
      - Enter the correct URL of the upload endpoint.
      2. Set MIME Type in Headers:
      - Under the Headers tab, add a new header with the following details:
      - Name: Content-Type
      - Value: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (for .xlsx files)
      - Or, for older .xls files: application/vnd.ms-excel
      3. Specify File Path in Body Data:
      - Go to the Body Data tab.
      - Select File Upload from the drop-down list.
      - Enter the path to your Excel file in the File Path field: bin/your_excel_file.xlsx (replace with your actual file name and path).
      - Optionally, set a parameter name in the Parameter Name field if required by the server.
      4. Send the Request:
      - Save your test plan and run the HTTP Request sampler.
      - JMeter will send the POST request with the specified MIME type and the Excel file attached.
      Additional Tips:
      - Content-Disposition Header: Consider adding a `Content-Disposition` header with value like `filename="your_file_name.xlsx"` to suggest a filename to the server.
      - Other MIME Types: For different file types, use the appropriate MIME types (e.g., `image/jpeg` for JPEG images, `text/plain` for plain text files).
      - Parameter Name: If the server expects a specific parameter name for the file, provide it in the `Parameter Name` field.
      - Authentication: If the upload endpoint requires authentication, configure it under the "Authorization" tab.
      - Debugging: Use JMeter's View Results Tree listener to inspect the request details and server response to ensure successful upload.

  • @sirajtechnical4294
    @sirajtechnical4294 3 ปีที่แล้ว

    Hi Raghav , i have one issue while recording the Mobile script in Jmeter,
    1. Without Proxy setting in Mobile device i am trying to report incident in city App with Attachments then City App we can able to report the grievance and alerts is coming to Citizen engagement application, But when iam trying to do proxy setting in mobile device and iam trying to upload the attachment then in Mobile device it is showing the "Upload error" in Mobile application.
    1. Please suggest me for Mobile application upload file like image, video etc

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Siraj, looks like the feature does not work on proxy, I will need to check more online on this, Meanwhile if you have access to the dev team can discuss this Or Can try other ways to record the test

  • @reiloadtube
    @reiloadtube 9 หลายเดือนก่อน

    Hi Raghav, Thanks. How to upload to jmeter using master and slave machine, my result is file not found.

    • @RaghavPal
      @RaghavPal  9 หลายเดือนก่อน

      Reinaldo
      To upload a file to JMeter using a master and slave machine, you need to:
      1. Copy the file to the JMeter installation directory on the master machine.
      2. Update the `jmeter.properties` file on the master machine to add the file to the `remote_files` property.
      3. Start the JMeter server on the master machine.
      4. Start the JMeter slaves on the slave machines.
      5. Run the JMeter test on the master machine.
      The following is an example of how to update the `jmeter.properties` file to add a file to the `remote_files` property:
      ```
      remote_files=myfile.csv
      ```
      Once you have updated the `jmeter.properties` file, you need to start the JMeter server on the master machine and start the JMeter slaves on the slave machines. You can do this by running the following commands:
      ```
      # Start the JMeter server on the master machine
      jmeter-server
      # Start the JMeter slaves on the slave machines
      jmeter-slave
      ```
      Once the JMeter server and slaves are running, you can run the JMeter test on the master machine. The JMeter test will automatically upload the file to the slave machines.
      If you are getting a "file not found" error, it is likely that the JMeter slaves are not able to find the file. This could be because the file is not in the JMeter installation directory on the slave machines, or because the file name is misspelled in the `jmeter.properties` file.
      To troubleshoot the issue, you can try the following:
      * Make sure that the file is in the JMeter installation directory on the slave machines.
      * Make sure that the file name is spelled correctly in the `jmeter.properties` file.
      * Check the JMeter logs on the master machine and slave machines for more information about the error.
      I hope this helps

  • @devatharaju2721
    @devatharaju2721 3 ปีที่แล้ว

    how to upload excel file in Jmeter via post call for api testing . Please help

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Devatha, You will need to do that in multipart/form-data for POST.
      www.blazemeter.com/blog/testing-advanced-rest-api-file-uploads-jmeter
      stackoverflow.com/questions/39570205/uploading-file-to-rest-api-using-jmeter

  • @deepakMCA2009knit
    @deepakMCA2009knit 6 ปีที่แล้ว

    Each time I clicked on Upload button, results with Exception
    java.io.FileNotFoundException: C:\Users\Deepak\Desktop\JMeter\apache-jmeter-4.0\bin\examples\A.jpg (The system cannot find the file specified) at java.io.FileInputStream.open0(Native Method) at
    Location is correct.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Deepak, try getting a file from some other location and try to give single forward slash /

    • @guhanshanmugasundaram8850
      @guhanshanmugasundaram8850 5 ปีที่แล้ว

      Hi Raghav.
      I'm facing the same issue, unable to resolve this.
      Kindly help me out to solve this out

  • @vijaykidecha7491
    @vijaykidecha7491 6 ปีที่แล้ว

    How to upload new unique file every iteration and by every user from a folder? For example..if I have 5 users in test and in one folder I have file with name "A" to "Z" .now if user1 uploads file A then user2 should upload file B ,user3 file C and when unique file not found user should stop.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Vijay i think parametrization using csv should help here

    • @vijaykidecha7491
      @vijaykidecha7491 6 ปีที่แล้ว

      Automation Step-by-Step - Raghav Pal parameterization using CSV would work ,but I have 400 users and each user will upload 1500 -2000 file during run. So the option you r suggesting would increase my work

  • @kaiclaudio2286
    @kaiclaudio2286 ปีที่แล้ว

    Sorry sir, What if the html input do not have "name" parameter or any id?

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      Hi Kai
      If the HTML input element for file upload does not have a "name" parameter or any ID, you can still perform file upload in JMeter using alternative methods. Here are a few approaches you can try:
      1. Using XPath or CSS Selector: You can use XPath or CSS Selector to locate the file upload input element based on its attributes or position in the HTML structure. In JMeter's HTTP Request sampler, you can use the "XPath Extractor" or "CSS Selector Extractor" post-processor to extract the necessary attribute or value for file upload.
      2. Using Regular Expression Extractor: If the file upload input element is within a specific HTML block or pattern, you can use the "Regular Expression Extractor" post-processor to extract the required value for file upload. Regular expressions can help capture the necessary information from the HTML response.
      3. Recording the File Upload: If locating the file upload element proves challenging, you can record the file upload action using JMeter's HTTP(S) Test Script Recorder. This allows you to capture the actual HTTP request sent by the browser when performing the file upload. By configuring your browser to use JMeter as the proxy, you can record the file upload action and generate the necessary request in JMeter.
      Remember, file upload in JMeter requires constructing a multipart/form-data request with the appropriate headers and payload. Depending on your specific scenario, you may need to extract or generate values such as boundary, content-type, and file path dynamically.
      Additionally, it's important to ensure that you're sending the correct file content in the request payload. JMeter provides the "HTTP Request" sampler for sending the multipart/form-data request, and you can include the file content using the "Send Files with the Request" option.
      By using these alternative methods, you should be able to perform file upload in JMeter even if the HTML input element does not have a "name" parameter or any ID

  • @doomsvile
    @doomsvile 4 ปีที่แล้ว

    Did any of you guys face any issue when recording post requests? I'm getting an error code 419 and is not able to do any log in or file upload tests. Get requests are working perfectly. Could it be because of some issues with token access ?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Karan, 419 is for authentication timeout. You may have to regenerate credentials.
      419 - Authentication Timeout - Indicates that previously valid authentication has expired. Though not a part of the HTTP standard, the 419 status code is used as an alternative to 401 to differentiate from unauthorized clients being denied access.

    • @doomsvile
      @doomsvile 4 ปีที่แล้ว

      @@RaghavPal Ya thanks for the response and the videos. It was due to csrf token access mismatch, solved it.

  • @unnatikhalokar8501
    @unnatikhalokar8501 4 ปีที่แล้ว

    Hi Raghav, I am getting this error when I am uploading a file without recording script.
    Thread Name:Thread Group 1-1
    Sample Start:1970-01-01 05:30:00 IST
    Load time:0
    Connect Time:0
    Latency:0
    Size in bytes:835
    Sent bytes:0
    Headers size in bytes:0
    Body size in bytes:835
    Sample Count:1
    Error Count:1
    Data type ("text"|"bin"|""):text
    Response code:Non HTTP response code: java.net.MalformedURLException
    Response message:Non HTTP response message: unknown protocol: tinyupload.com
    HTTPSampleResult fields:
    ContentType:
    DataEncoding: null

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Unnati, check the protocol and server name/ip field. In Protocol we keep it blank for http and in case of https add the same and tinyupload.com will go in server name/ip field

    • @unnatikhalokar8501
      @unnatikhalokar8501 4 ปีที่แล้ว

      @@RaghavPal Thank you so much Raghav. It worked.

  • @NsquareRvideos
    @NsquareRvideos 3 ปีที่แล้ว

    I am facing the issue when i try to upload file into the application after login into application, Manually it is working fine but when i tried to upload file using jmeter I am getting error can you please help me on this.
    Getting Json response as message": "No Document Present",

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Nishant, can recheck the steps, in case something was missed, Also check this stackoverflow.com/questions/37556816/how-to-upload-file-in-front-end-using-jmeter

    • @NsquareRvideos
      @NsquareRvideos 3 ปีที่แล้ว

      @@RaghavPal Hi raghav i was able to resolve that issue.. But after uploading the file through jmeter.. And checking the same into application it is showing file uploaded with its name but image is blank when I try to open it

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      can check logs

  • @aniketkadukar7772
    @aniketkadukar7772 2 ปีที่แล้ว

    What to do if html file upload element don’t have any name parameter?

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi Om, this can help saicharanvaddiraju.medium.com/handle-calendar-event-using-cypress-select-current-date-f4b8c5f64342

  • @sk-creativemind7805
    @sk-creativemind7805 2 ปีที่แล้ว

    Hi Raghav,
    I am trying the file upload steps with your guidance and quite successful in that. One thing I am facing the issue here is that, I am not able to find the file uploaded confirmation message in the response message even though the script is passed and got the response as "OK" with code 200.
    Please help me.
    Thanks,
    Sayed

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi Sayed, are you using a different app than what I have used, It can be due to that

    • @sk-creativemind7805
      @sk-creativemind7805 2 ปีที่แล้ว

      @@RaghavPal Hi Raghav,
      Yes, I am using my actual application to perform this task.
      Please help me what could be the reason.
      Thanks,
      Sayed

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Okay in that case, it should be fine if you are getting success code, you can check your app to see what is actually displayed after a successful upload and try to verify that

    • @sk-creativemind7805
      @sk-creativemind7805 2 ปีที่แล้ว

      @@RaghavPal Yes Raghav, looked for that message in response content but unable to find the confirmation message. What could be the reason.
      Thanks,
      Sayed

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      not sure Sayed, may be application specific

  • @meditationmusic38
    @meditationmusic38 7 หลายเดือนก่อน

    When we have not tagname as input then how we used this scenario.

    • @RaghavPal
      @RaghavPal  7 หลายเดือนก่อน

      Here are the steps on how to handle file uploads in JMeter when you don't have a tagName as input:
      1. Identify the File Input Element:
      Inspect the HTML: Use your browser's developer tools to examine the HTML code of the file upload element. Look for attributes like id, name, type, or any other unique identifiers.
      Refer to API Documentation: If you're testing an API endpoint, consult the API documentation to understand how file uploads are structured and what parameters are required.
      2. Choose the Appropriate Sampler:
      HTTP Request Sampler: Use this if the file upload is part of a standard HTTP POST request.
      HTTP Raw Request Sampler: Use this for more complex scenarios where you need to construct the entire request manually, including headers and body content.
      3. Configure the Sampler:
      Method: Set the method to "POST".
      Path: Set the path to the file upload endpoint.
      Parameters:
      File Path: Provide the path to the file you want to upload on your local machine.
      MIME Type: Specify the MIME type of the file (e.g., "image/jpeg" for JPEG images).
      File Name: If necessary, set the desired filename for the uploaded file.
      Other Parameters: Include any additional parameters required by the endpoint, such as authentication tokens or metadata.
      4. Simulate File Selection (Optional):
      If the application triggers a file selection dialog, you might need to simulate this behavior using a JavaScript-based workaround or custom plugins.
      5. Add Assertions and Listeners:
      Use assertions to verify the successful upload of the file, such as checking for a specific response code or message.
      Use listeners to view detailed request and response information, including the uploaded file content.
      Example with HTTP Request Sampler:
      Path: /api/upload
      Method: POST
      Parameters:
      - name: file
      value:
      - name: mimetype
      value: image/jpeg
      Additional Considerations:
      Content-Type Header: JMeter might not automatically set the correct Content-Type header for multipart/form-data requests. Manually set it to multipart/form-data; boundary=, where is a unique string.
      File Size: Ensure that the file you're trying to upload is within the size limits of the application or server.
      Security Restrictions: Be mindful of any security restrictions that might prevent file uploads, such as firewalls or browser settings.

    • @meditationmusic38
      @meditationmusic38 7 หลายเดือนก่อน

      @@RaghavPal Thanks a lot for the information, Got it👍

  • @bhargav.thrinadh7815
    @bhargav.thrinadh7815 3 ปีที่แล้ว

    For our application we are able to record but after uploading the PDF file while recording in JMeter we are getting page error in chrome
    The error is this site can't be reached but manually it's working what we have to do?

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Bhargav, looks like something is missing or incorrect in your request, Pls check the url, formatting etc again

    • @bhargav.thrinadh7815
      @bhargav.thrinadh7815 3 ปีที่แล้ว

      @@RaghavPal actually the upload work is middle of my application flow when we are trying to continue the flow we are getting error if you want see the issue contact me in 9866071565 or my mail id is bhargav.thrinadh995@gmail.com

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Personal session will be difficult. Can try if I get some inputs

    • @bhargav.thrinadh7815
      @bhargav.thrinadh7815 3 ปีที่แล้ว

      @@RaghavPal I will give my system access you can see it directly I am trying to record the application but it's not recording for two applications remaining are working

  • @tejastoley6714
    @tejastoley6714 5 ปีที่แล้ว

    i am not able to add certificate in browser

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Tejas, what is the issue/error you are facing. Try to get some online help specific to your browser

  • @ankitaawati5231
    @ankitaawati5231 4 ปีที่แล้ว

    Hi
    How to upload a file while using blazemeter.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Ankita, you can try to record and open the recorded script in JMeter

    • @ankitaawati5231
      @ankitaawati5231 4 ปีที่แล้ว

      @@RaghavPal I have already tried this but then 404 not found error occurs for upload only.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Can use the manual way. Also check logs

  • @MuhammadNadeem-ef3dd
    @MuhammadNadeem-ef3dd ปีที่แล้ว

    tiny upload website is not working anymore can you provide some other website links

    • @RaghavPal
      @RaghavPal  ปีที่แล้ว

      trytestingthis.netlify.app/index.html

  • @user-ws4bj2ik9k
    @user-ws4bj2ik9k 6 หลายเดือนก่อน

    Upload Files
    Hi sir, In my application, i only have these kind of name for file upload, In this case, what parameter name should i use
    And also if i use recorder, without proxy file uploading correctly, with proxy it showing file size exceed or server error. i tried to do update other things(like add task) it not updating. Is it based on application related or it in proxy related things sir

    • @RaghavPal
      @RaghavPal  6 หลายเดือนก่อน

      Alex
      Here's how to address the file upload and proxy-related issues in JMeter:
      1. Parameter Name for File Upload:
      - Inspect Network Requests: Use your browser's developer tools (Network tab) to capture the actual request made when a file is uploaded.
      - Identify Key Parameter: Look for the parameter name used for the file data in the request body. It's often `file`, `upload`, or a custom name specific to your application.
      - Test Manually: If unsure, try different names in JMeter until the upload succeeds.
      2. Proxy-Related Issues:
      - Check Proxy Configuration: Ensure your JMeter proxy settings match those in your browser, including IP address, port, and authentication if required.
      - Review Proxy Server Logs: Look for errors or limitations related to file size or specific actions.
      - Test Without Proxy: If the issue persists, temporarily disable the proxy to isolate the cause.
      - Consider Alternative Solutions: If the proxy is restrictive, explore bypassing it for specific requests or using a different testing approach.
      Additional Troubleshooting Tips:
      - MIME Type: Ensure the MIME type of the uploaded file is correctly set in JMeter.
      - Encoding: Verify that file encoding is handled properly in both JMeter and your application.
      - File Path: Double-check the file path specified in JMeter's HTTP Request sampler.
      - Server-Side Limitations: Investigate potential server-side restrictions on file size or types.
      Specific to Your Scenario:
      - Angular Application: Be aware that Angular might dynamically generate parameter names. Use browser developer tools to capture the exact name used during upload.
      - Application-Related Issues: If other actions like adding tasks also fail with the proxy, further investigate application-specific behaviors or limitations.
      Key Points:
      - Use browser developer tools to inspect network requests and identify parameter names.
      - Thoroughly check proxy configurations and logs for errors or restrictions.
      - Consider alternative testing approaches if proxy issues persist.

    • @user-ws4bj2ik9k
      @user-ws4bj2ik9k 6 หลายเดือนก่อน

      Thanks for the information sir@@RaghavPal

  • @adityalokare3902
    @adityalokare3902 3 ปีที่แล้ว

    Hi Raghav,
    I am getting below error in view results tree listener:
    "Response code: Non HTTP response code: java.net.MalformedURLException
    Response message: Non HTTP response message: unknown protocol: tinyupload.com"
    Please help

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว +1

      Hi Aditya, check if all parameters of the request are given properly. You may try to use a diff application too

    • @adityalokare3902
      @adityalokare3902 3 ปีที่แล้ว

      @@RaghavPal It worked now
      Thanks Raghav

  • @paarthsstudio
    @paarthsstudio 3 ปีที่แล้ว

    277th like!

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Thanks Paarth