JMeter Beginner Tutorial 25 - How to test File Download

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 เม.ย. 2017
  • Free Tutorials - automationstepbystep.com/
    Hi I am Raghav & Today we will learn:
    1. How to create test for file download
    Step 1: Add Thread Group - HTTP Request sampler
    Step 2 : Add values in HTTP Request sampler
    Step 3 : Add Listeners to view results
    Step 4 : Add Listener - Save Responses to a file
    Step 5 : Add values to this Listener
    Step 6 : Run and Validate
    ______________________________________
    Helpful Tips
    How to avoid overwriting downloaded files.
    in a multi-user test
    Use function : ${__threadNum} as Prefix
    ___________________________________________
    References :
    ftp://speedtest.tele2.net/
    ----------- 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 _______
    FREE courses - automationstepbystep.com/
    Udemy Discounts - automationstepbystep.com/udem...
    GitHub - github.com/Raghav-Pal/
    Udemy - www.udemy.com/user/raghav-pal-3/
    Training schedule - automationstepbystep.com/trai...
    ----------- UI TESTING -----------
    Selenium Beginners - bit.ly/2MGRS8K
    Selenium Java Framework from Scratch - bit.ly/2N9xvR6
    Selenium Python - bit.ly/2oyMp5x
    Selenium Tips - bit.ly/2owxc50
    Selenium Builder - bit.ly/2MKNtlq
    Katalon Studio - bit.ly/2wARFdi
    Robot Framework with RIDE- bit.ly/2Px6Ue9
    Robot Framework with Eclipse - bit.ly/2N8DZxb
    Protractor - bit.ly/2KtqVkU
    TestProject - bit.ly/2DRNJYE
    ----------- API TESTING -----------
    Web Services (API) - bit.ly/2MGafL7
    SoapUI - bit.ly/2MGahmd
    Postman - bit.ly/2wz8LrW
    General - bit.ly/2PYdwmV
    Katalon Studio API Testing - bit.ly/2BwuCTN
    ----------- MOBILE TESTING -----------
    Appium - bit.ly/2ZHFSGX
    Mobile Playlist - bit.ly/2PxpeUv
    ----------- CI | CD | DEVOPS -----------
    Jenkins Beginner - bit.ly/2MIn8EC
    Jenkins Tips & Trick - bit.ly/2LRt6xC
    Docker - bit.ly/2MInnzx
    Kubernetes - bit.ly/2MJIlMK
    ----------- VERSION CONTROL SYSTEM -----------
    Git & GitHub - bit.ly/2Q1pagY
    GitLab - bit.ly/2kQPGyQ
    ----------- PROGRAMMING -----------
    Java Beginners - bit.ly/2PVUcXs
    Java Tips & Tricks - bit.ly/2CdcDnJ
    GROOVY - bit.ly/2FvWV5C
    JAVASCRIPT - bit.ly/2KJDZ8o
    PYTHON - bit.ly/2Z4iRye
    ----------- IDE -----------
    Visual Studio Code - bit.ly/2V15yvt
    ----------- MAVEN -----------
    Maven - bit.ly/2NJdDRS
    ----------- OTHERS -----------
    Redis- bit.ly/2N9jyCG
    Misc - bit.ly/2Q2q5xQ
    Tools & Tips - bit.ly/2oBfwoR
    QnA Friday- bit.ly/2NgwGpw
    Sunday Special - bit.ly/2wB23BO
    Ask Raghav - bit.ly/2CoJGWf
    Interviews - bit.ly/2NIPPxk
    All Playlists - bit.ly/2LSiezA
    Keep Learning,
    Raghav
    ---------- Connect with Raghav -----------
    Website - automationstepbystep.com/
    LifeCharger - lifecharger.org/
    Udemy Courses - www.udemy.com/user/raghav-pal-3/
    Facebook - / automationstepbystep
    Twitter - / automationsbs
    TH-cam - / automationstepbystep
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    Never Stop Learning
    Raghav

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

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

    Thankyou, very helpful to me!

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

      Glad it was helpful!

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

    Good one. It Helped

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

      Happy to know this Navin

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

    This HTTP download request can be fit in many differrent servers, including FTP ones, right? FPT download request only fits for FPT server.
    Is that the difference? Thank you.

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

      Hi Denis, FTP Request will take connection properties from FTP Request Default, whereas HTTP Request will refer HTTP Request defaults. So FTP Req and FTP req defaults are more suited for FTP tests

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

    Hey Raghav! Very informative content,
    Can You provide some industry level scenarios, it'll help us better....!!!!

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

      Hi Monojeet, the examples i have provided are very basic that can be used to setup tests as required in industry, I will still see if i can take some more examples that can help

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

    Hi..
    i have a question..after clicking a link some file will download on my local and it will take several minutes to take download.
    does performance testing or the response time of the request will give the time taking for the download ?
    response time of the request is completing in fraction of seconds , but in application itself ,the application takes several minutes to complete download of file...so how can we proceed with the issue..

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

      Hi Rupesh, JMeter is server-side performance analysis tools. It does not take into consideration the client performance.

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

    Thank you!

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

      Most welcome Yaryna

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

    Hello, thanks for your videos, I have to ask.. do you know any other kind of assertion to verify that the type of the document downloaded was correct for example like .xlsx?

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

      Not that I know of

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

    Thanks Raghav. I have able to setup a jmx for file download after seeing this video. Even k had set up for image download
    But can u pls show some real time example when this should be used in which case. That would be really helpful

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

      Hi Prayas, real life example will be anytime you want to do a performance test on file upload functionality.

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

    Hi Raghav,
    In our application, there is a section that will generate the graphs which testing that item, JMeter is displaying the processed data along with other important values but the graph how is plotted is not coming. Could you please help me in this like how to get the plotted graph in JMeter.
    - Swati

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

      Hi Swati, are you talking about graph assertions. You will find that in assertion video

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

    Hi Raghav
    How to download each time a new file for each loop, I noticed for multiple users it works fine but if I'm using loop controller then it's appending all the file in one single file

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

      Hi Disha, you can use some random string to be appended to the file name

  • @user-ud1eq5wp3t
    @user-ud1eq5wp3t 11 หลายเดือนก่อน

    Hi Raghav,
    I need help, here my scenario is, these is one preauth tab where case id displays in that cases displays there is upload document option but here this case id is unique for each user and I need to check if 100 user uploads the document at same time for their cases then what will be response

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

      Srishti
      To test the scenario where 100 users upload documents at the same time, you can use the following steps:
      1. Create a JMeter test plan with a Thread Group that has 100 threads.
      2. In each thread, add a HTTP Request sampler that performs the document upload.
      3. In the HTTP Request sampler, set the Case ID parameter to a unique value for each thread.
      4. Run the JMeter test plan.
      The response that you will get will depend on the server's capacity to handle 100 concurrent document uploads. If the server is able to handle the load, then all 100 document uploads will be successful. However, if the server is not able to handle the load, then some of the document uploads may fail.
      Here are some things to keep in mind when testing this scenario:
      * The server's capacity will depend on a number of factors, including the server's hardware, the software that is running on the server, and the number of other requests that are being processed by the server at the same time.
      * You may need to adjust the number of threads in the Thread Group to find the point at which the server starts to experience performance problems.
      * You can use the JMeter Listeners to monitor the performance of the test plan. This will help you to identify any bottlenecks or performance issues.
      I hope this helps

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

    Hi Raghav, your video is very useful. I have one doubt in File Download . How can i check download file format(i need to check my file format is pdf or not). could you help me in this

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

      Hi Sangeetha, you can use any script sampler like BeanShell or JSR223 to check the location of the file and its name

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

    I stuck on one point and needed your help as I could not get much help on internet.
    1. I am using Blazemeter to record my actions on my application.
    2. In my application I have to select some criteria on UI (to download only few records) then it is downloading output report on my local as XLSX format.
    Note: With this criteria report shows 10-12 records.
    3. Then I am using this recorded action in JMETER to check the performance with single user.
    4. This request is executing fine and getting response 200 in result tree.
    5. Now I change the input criteria (changing in recorded "http request" parameter in JMeter directly) to get huge records in download file (appr. 6500 records).
    6. In this case when I start running (by Click Start button), this request is showing response code "500 - Internal Server Error" in result tree.
    Q1: Please tell me how to handle this case when we are downloading huge data in XLSX format on the basis of given criteria on UI?
    Q2: Or is there any other way to do this kind of work i.e. instead-of recording actions by Blazemeter then play in JMeter?
    Need help...
    ~Devesh Tapan

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

      Hi Devesh, try out the following:
      Check what does the logs say.
      Can you record the scenario when you are trying to download bulk data and see if that is working fine.
      Also try using HTTP Test Recorder in JMeter and see if this work - th-cam.com/video/amEHuq8auTU/w-d-xo.html

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

    Hi Raghav. Can u please let us know how to write variables in logfile using bean shell sampler.

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

      Hi Revanth, these links will help you:
      stackoverflow.com/questions/8352281/write-extracted-data-to-a-file-using-jmeter
      stackoverflow.com/questions/26179894/how-to-save-jmeter-variables-to-csv-file
      sattish-performanceengg.blogspot.in/2015/05/how-to-write-data-to-csv-in-jmeter.html

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

    Hi, Raghav! Your videos are very good! Congratulations!
    Please, could you help me in the situation below?
    For instance:
    Page 1 (Username and Password) > Page 2 > Page 3 > Page 4 (Select an option and, after that, click the box "Download").
    These actions were recorded by Badboy software.
    The script was used in JMeter. As "Listener", the option "Save Responses to a file" was chosen. The result was wrong, because a file has a content similar to that of Page 1.
    In a manual mode, the file must be a spreadsheet with other information.

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

      Hi Bruno, you can try to record using blazemeter chrome plugin or JMeter http script recorder and try. Might have to do some customisations.

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

      Hi, Raghav! Thanks a lot for your attention and advices! I'll try! Best regards.

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

    Hi Raghav, I tried to download a csv file which actually i am getting in response.
    Data is getting displayed in response perfectly but i want to see the same in downloaded file but it seems to be empty.

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

      will need to check on this

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

    Hi raghav,
    This scenario does nt work in case of..if i need to open link and download the file..
    The download file does nt have link address,
    please reply

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

      Need to record the download file scenario and everytime file downloaded is different

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

      Okay, here the primary target is to check the performance during file download. It should be good in case that is working fine.

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

    Hi Mr.Raghav, Is the Same procedure for Downloading .png image files also....Can u plz help me on this

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

      Hi, yes, you can use the same process for any file download

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

    how are you able to use FTP port in HTTP sampler for file downloading. It is failing in the jmeter 4.0 version.

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

      Hi Bharat, is it specific for Jmeter 4.0. Working on other ver ?

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

      @@RaghavPal even for Jmeter 5.0 not working

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

    Hi Raghav,
    I need to download a file by clicking on a button. so, what is happening is on clicking the button the data which is present on the window open gets downloaded in an excel sheet and i need that process to get automated and later compare that file. can i do this ?? if yes, can you tell me how i should try.

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

      Hi Ekaparna, This will be part of functional testing. You will have to do scripting for this.

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

      Hi Raghav,
      Thanks, Can you please suggest some tutorials to learn that also.

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

      Hi Raghav,
      Thanks, Can you please suggest some tutorials to learn that also.

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

      I do not know any direct link, will have to search for it

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

      I figured it out, thanks for your help. Learnt a lot from your videos.

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

    if i "right click " the download option ,its not able to show "copy link address" how to do it.once i click the download button its shows csv or xlsx .after selecting csv formate its show "save as " exter folder ...how to record this kind of issues

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

      Hi, I will need to check on this

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

    Hi Sir, in place of filename prefix, can we include variables ? ${file_save_path} ? i tried but not resolving.

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

      jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file Telling that we cannot use these variables Thanks

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

      Hi Rajesh, sorry for late reply, Is this fixed. You can let me know more details if not yet

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

      Automation Step by Step - Raghav Pal above link i followed sir , it is telling variables not allowed

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

    I have a question. If I download a file (100MByte) 100 times (to test the load), the working-memory of my JMETER PC grows extremely linearly.
    Does anybody have a solution ? It looks as if JMETER first packs the file into the RAM and then swaps it out into the file.

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

      Hi Ralf
      The reason why the working memory of your JMeter PC grows extremely linearly when you download a file 100 times is because JMeter is caching the file in memory. This means that JMeter is storing the entire file in memory, even after it has been downloaded.
      There are a few things that you can do to solve this problem:
      * You can increase the size of the JMeter heap. This will give JMeter more memory to store the file in.
      * You can use the `-J-Xmx` JVM option to specify the maximum size of the JMeter heap. For example, to set the maximum size of the JMeter heap to 1024 MB, you would use the following option:
      ```
      -J-Xmx1024m
      ```
      * You can use the `-J-XX:MaxDirectMemorySize` JVM option to specify the maximum size of the direct memory. This is the memory that JMeter can use to store the file in a non-paged area of memory. For example, to set the maximum size of the direct memory to 1024 MB, you would use the following option:
      ```
      -J-XX:MaxDirectMemorySize=1024m
      ```
      * You can use the `-J-XX:+UseParallelGC` JVM option to enable parallel garbage collection. This will help JMeter to garbage collect the file more efficiently.
      I hope this helps

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

    Very helpful video. Could you please help me for folder download scenario as well.
    Thanks,
    Sayed

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

      I will check Sayed

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

    Hi, can you help me with the extension. I am able to download the file, but want to open that as excel file.

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

      Hi Neelima, this is to download file and check the performance of file download, cannot open the file

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

    Hi Raghav, Could u pls xplain me how to upload application/json file in request?

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

      I will do a session on this Sri

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

    Hi Raghav, Download API call is giving me 200 as Response code, but when i am trying to check the response data, its shows be blank array.. which actually works on front end. Is this something my script is failing? but actually i am getting 200 response code

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

      Hi Neelima, try to add some think time between requests, Also first try with a single request and verify

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

    Hi Raghav,
    I am using JMeter ver 4.0 and ${__threadNum} function is not creating the number sequence in this. when I opened the downloads folder the files are created like this, ${__threadNum}MyFile.zip and when I choose the Don't add number to the prefix option, the files generated like this, ${__threadNum}MyFile1.zip, ${__threadNum}MyFile2.zip and ${__threadNum}MyFile3.zip ...Can you plz look into this once and try to give me a solution.

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

      Hi Anil, Can you tell me step wise what you did. Might have to take a look into your jmx file

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

      Hi Raghav,
      1) I created the Thread Group with 3 users
      2) added, HTTP Request sampler with the server name as: speedtest.tele2.net && path as: /1KB.zip
      3) added the listeners, View results tree and Save response to a file
      4) In the Filename prefix, I mentioned this :"C:\Users\HP\Downloads\apache-jmeter-4.0\Jmeter downloads\{__threadNum}MyFile", as a path to where the file to be downloads and selected the Don't add number to the prefix option.

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

      Hi Anil, just see this video and check if you missed something. Here replace time function with thread func th-cam.com/video/oE8LJAbDJlM/w-d-xo.html

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

      Try adding foreslash in front of function name i.e. /{__threadNum}MyFile.
      In your case: C:\Users\HP\Downloads\apache-jmeter-4.0\Jmeter downloads\/{__threadNum}MyFile
      That should solve the problem (I had the same)

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

      Yup, it's worked.
      Thanks, Nemanja.

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

    Hi My question is I need to download pdf from my application..by doing load test....if I click on download it will ask file path to save.. one time fine but how it will do automatically.....above video scenario will work?

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

      Hi Logesh
      To automatically download a PDF file from your application using JMeter, you can use the following steps:
      1. Create a new JMeter test plan.
      2. Add a HTTP Request sampler to the test plan.
      3. In the HTTP Request sampler, set the URL of the PDF file that you want to download.
      4. Add a JSR223 Sampler to the test plan.
      5. In the JSR223 Sampler, enter the following code:
      ```
      import java.io.File;
      import java.io.FileOutputStream;
      import java.io.InputStream;
      public class DownloadPDF {
      public void download(String url) throws Exception {
      InputStream inputStream = new URL(url).openStream();
      FileOutputStream outputStream = new FileOutputStream("my-pdf.pdf");
      byte[] buffer = new byte[1024];
      int bytesRead;
      while ((bytesRead = inputStream.read(buffer)) != -1) {
      outputStream.write(buffer, 0, bytesRead);
      }
      outputStream.close();
      inputStream.close();
      }
      }
      ```
      This code will download the PDF file from the URL to the file `my-pdf.pdf`.
      6. Run the JMeter test plan.
      The PDF file will be downloaded to the specified file location.
      Here are some additional tips for automatically downloading PDF files from your application using JMeter:
      * You can use the `JSR223 Sampler` to execute any JavaScript code that you want. This means that you can use the `saveAs()` method to download the PDF file without having to write any custom code.
      * You can use the `HTTP Request` sampler to set the cookies that are required to download the PDF file.
      * You can use the `Thread Group` element to control the number of times that the PDF file is downloaded.
      I hope this helps

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

      Tanks a lot .....brother

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

    can we download any kind of file like pdfs and all using that way

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

      Hi Nilanjana,
      Yes, it should work for all files

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

    As your way, I tried to test a file download. However, my file is always *.unknown (instead *.xls) and I cannot open it. So, please tell me how to fix it. Thank you.

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

      Hi Anh, how does the file downloads when you do it manually. JMeter itself should not change the extension. You can show the logs if you face any such issue.

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

      Hi Raghav Pal,
      I don't know why, but I uploaded a file with [*.xls]
      After that, I downloaded that file via jMeter and I got a file with [*.unknown] so I cannot open it. I must change the extension back to [.xls] then it's ok.

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

      Does this show the same behaviour if you download it manually.

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

      No, it's different. The extension is always .unknown when downloading manually :D
      However, I knew a way to solve it:
      1. Upload a file with .xls
      2. Setup in jmeter - Save Responses to a file: C:\User\Desktop\Myfile.xls
      3. Checked on 2 options: Don't add number to prefix & Don't add suffix
      That's all!

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

      glad you found a solution

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

    is it same test case for pdf download???

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

      Hi Varsha, you can try pdf too with the same process

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

    hi sir, in my case file is only downloaded in Text/HTML format not in .pdf format, so how to resolve this problem sir ?

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

      Hi Shubham, will need to check the link from where you are downloading and if you are giving the request parameters correctly and completely

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

    i have used the function ${__threadNum} but the file generated had like name : ${__threadNum}_File

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

      Can you send a pic of your setup

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

      @@RaghavPal i.imgur.com/mW0UYWd.png this is a screenshot && it save files w/o extension

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

      Hi Bilal try to use forward slash / in your path or double backslash before $ \\

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

      Hi Bilal, use forward slashes / in your path or use double backslash before $ like \\$

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

      @@RaghavPal it work now but still saving files without extension

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

    Hi my doubt is 10 users are there out of 10 35% users browsing 65% buying 10%0users are regisration the new users how to do that in any web application please help

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

      Hi Rajesh, this will help you - www.blazemeter.com/blog/running-jmeter-samplers-defined-percentage-probability/

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

    how to download pdf file after login in website using jmeter

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

      you will need to give the link as shown here

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

    I have added like this C:\Users\Chandrima\OneDrive\Desktop\jmeter_files\file\${__threadNum}_myfile
    it is added as ${__threadNum}_myfile

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

      Chandrima
      It looks like you're trying to download files using JMeter, and you've encountered an issue with the file path. Let's address this:
      1. File Path Issue:
      - The path you've provided (`C:\Users\Chandrima\OneDrive\Desktop\jmeter_files\file\${__threadNum}_myfile`) contains a variable `${__threadNum}`. This variable is not being resolved correctly.
      - To dynamically generate file names based on thread number, you can use JMeter's built-in functions or variables.
      2. Correcting the Path:
      - Instead of directly using `${__threadNum}`, you can use JMeter's built-in variable `${__threadNum}` within your path.
      - Modify your path as follows:
      ```
      C:\Users\Chandrima\OneDrive\Desktop\jmeter_files\file\${__threadNum}_myfile
      ```
      - JMeter will replace `${__threadNum}` with the actual thread number during execution.
      3. Verify Configuration:
      - Ensure that your JMeter configuration is set up correctly for file downloads (e.g., HTTP Request sampler with "Save response to a file" option).
      - Confirm that the file path is accessible and writable.
      --

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

      @@RaghavPal Still not solved 😥

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

      will need to check more on this.. try checking online specially on JMeter forums