JMeter Beginner Tutorial | JMeter How to Record API from Postman using Proxy

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • website - automationstep...
    How to create a Recording Test Plan
    How to set Proxy
    How to record API Requests
    Join Automation Step By Step channel: www.youtube.co...
    Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    If my work has helped you, consider helping any animal near you, in any way you can.
    _______ ONLINE COURSES TO LEARN _______
    automationstep...
    Udemy Discounts - automationstep...
    GitHub - github.com/Rag...
    Udemy - www.udemy.com/...
    Training by Raghav at your venue - raghav.qna@gmail.com
    Training schedule - automationstep...
    ----------- 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
    ------------VIRTUALISATION------------
    Virtualization on windows - bit.ly/2SItIL9
    ----------- VERSION CONTROL SYSTEM -----------
    Git & GitHub - bit.ly/2Q1pagY
    GitLab - bit.ly/2kQPGyQ
    ----------- 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
    ----------- 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
    ----------- BUILD TOOLS -----------
    Maven - bit.ly/2NJdDRS
    Gradle - bit.ly/30l3h1B
    ----------- 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 - automationstep...
    LifeCharger -
    Udemy Courses - www.udemy.com/...
    Facebook - / automationstepbystep
    Twitter - / learnwithraghav
    TH-cam - / automationstepbystep
    Never Stop Learning
    Raghav

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

  • @ТатьянаТерентьева-ч1ъ
    @ТатьянаТерентьева-ч1ъ 2 ปีที่แล้ว

    It is very helpful for my current working taks!
    Thank you very much for share this!

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

      You are welcome!

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

    Thanks Raghav! It was really helpful.

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

      Most welcome Udish

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

    Thank u...learned a new thing

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

      Most welcome Chaithanya

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

    Great explanation, Keep it up :)

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

      Thanks a lot Dilan

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

    That is just awesome. If you could elaborate a bit about request chaining that how it had worked, i mean the global variable how that would be transformed into JMeter, that would be great. Anyways. Thank you!

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

      I will plan on that Zohaib

  • @amitgulhane-nd5rr
    @amitgulhane-nd5rr 2 ปีที่แล้ว

    sir if we add the proxy in postman and try to run the test script recorder and try to hit API then it should gives error , then how you are getting response as successful and script is record in jmeter

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

      Hi, If you are running a test script recorder in JMeter and you have added a proxy in Postman, it's possible that the test script recorder may not be able to capture the request and response correctly due to the proxy settings
      To avoid this issue, you can try to disable the proxy settings in Postman before running the test script recorder in JMeter
      Another way to handle this is to configure the proxy settings in JMeter to match the settings in Postman
      This can be done by going to the "HTTP(S) Test Script Recorder" in JMeter and configuring the "Proxy Server" and "Port" fields to match the settings in Postman
      Also, you can check in the postman if you are able to hit the API and get the response or not. If you are getting error then you have to check the proxy settings or the API endpoint.

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

    great!
    thanks
    just have a question. If I use proxy as it is showed in the video, I can`t send the request and there is no internet connection and I can`t record any API from Postman using Proxy. How is it solwed?

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

      Hi Roman, proxy is used here so that we can record the network traffic from a specific source. In case your API does not work with proxy, wil need to explore further on this. In case I get to know will update

  • @avinashkunapareddy7429
    @avinashkunapareddy7429 9 วันที่ผ่านมา

    Hi Raghav,
    How to get the names of APIs as it is in Jmeter while recording from Postman without editing manually in Jmeter

    • @RaghavPal
      @RaghavPal  8 วันที่ผ่านมา +1

      Avinash
      In JMeter, while recording APIs from Postman, you can get API names automatically (without manual editing) using these steps:
      ✅ Step 1: Open JMeter and add HTTP(S) Test Script Recorder (under "Non-Test Elements").
      ✅ Step 2: Set Port (e.g., 8888) and start recording.
      ✅ Step 3: Open Postman → Settings → Proxy → Set Proxy to `localhost:8888`.
      ✅ Step 4: Send API requests from Postman.
      ✅ Step 5: JMeter will capture requests under the Recording Controller with default names.
      ✅ Step 6: To keep the original API names, go to HTTP(S) Test Script Recorder → Check "Use Headers to Name Requests".
      ✅ Step 7: Stop recording, and the APIs should appear with original names.
      Let me know if you need more details! 🚀

    • @avinashkunapareddy7429
      @avinashkunapareddy7429 8 วันที่ผ่านมา

      @RaghavPal thank you so much

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

    Hi Raghav, in this case cannot we just make performance testing for API with only Postman? We need also jMeter to generate more Threads to apply the non-functional test?

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

      Hi Gabriel,
      In Postman, we do not have option for creating virtual users and a proper performance testing setup

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

    If I have scripts written in Javascript in postman, will it still be possible to integrate with Jmeter?Are
    there any restrictions?

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

      Hi Akshatha, I have not done much hands-on on this specific thing, will need to check

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

    Kindly put video on read and write excel using groovy for rest api in soapui

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

      Sure Kalith, I will plan

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

    Nice share and thank you very much, btw is it possible to do this Jmeter record api but from katalon? (katalon studio preferences proxy)

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

      Yes the video will get published in a few days

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

    What is the automation use case to do this recording? At which phase I should go for this?

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

      Hi Anushya, following are the use cases :
      1. When you do not want to create api requests manually in JMeter and can use tools like Postman, SoapUI, Katalon Studio to run your API's and record in JMeter. (There are videos for all these tools)
      th-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html
      2. When you have your functional API tests created on any of the above tools and just need to copy them in JMeter for Performance testing
      3. To save time & effort

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

      @@RaghavPal Thanks and appreciate you.

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

    I want to do vice versa , I want to get http request from jmeter to postman ,is it possible?

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

      Hi Kapil
      Yes, it is possible to get HTTP requests from JMeter to Postman. There are a few ways to do this:
      * **Use the JMeter HTTP(S) Test Script Recorder:** This is a tool in JMeter that allows you to record HTTP requests and save them as a JMeter script. You can then import the JMeter script into Postman and use it to replay the requests.
      * **Use the JMeter Postman Plugin:** This is a plugin for JMeter that allows you to export HTTP requests from JMeter to Postman. You can then import the requests into Postman and use them to replay the requests.
      * **Use the Postman API:** The Postman API allows you to interact with Postman programmatically. You can use the API to export HTTP requests from JMeter to Postman.
      Here are the steps on how to use the JMeter HTTP(S) Test Script Recorder to get HTTP requests from JMeter to Postman:
      1. Start JMeter.
      2. Create a new JMeter test plan.
      3. Add a HTTP(S) Test Script Recorder sampler to the test plan.
      4. Configure the HTTP(S) Test Script Recorder sampler with the desired settings.
      5. Run the test plan.
      6. Once the test plan has finished running, the HTTP requests will be saved as a JMeter script.
      7. Import the JMeter script into Postman.
      Here are the steps on how to use the JMeter Postman Plugin to get HTTP requests from JMeter to Postman:
      1. Install the JMeter Postman Plugin.
      2. Start JMeter.
      3. Create a new JMeter test plan.
      4. Add a HTTP(S) Test Script Recorder sampler to the test plan.
      5. Configure the HTTP(S) Test Script Recorder sampler with the desired settings.
      6. Run the test plan.
      7. Once the test plan has finished running, the HTTP requests will be exported to Postman.
      Here are the steps on how to use the Postman API to get HTTP requests from JMeter to Postman:
      1. Import the Postman API library into your project.
      2. Create a new Postman request.
      3. Set the request method to `POST`.
      4. Set the request URL to the URL of the Postman API.
      5. Set the request body to the JSON representation of the HTTP requests you want to export.
      6. Send the request.
      7. The HTTP requests will be imported into Postman.
      I hope this helps

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

      @raghavpal.. I tried the above steps for converring the jmeter script to postman... It didn't work. Please share your inputs.

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

    After proxy settings i am getting error like tunneling socket could not be established, cause = getaddrinfo ENOENT localhoist. How could i over come this error

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

      Hi Pavithra, are you running newman command
      I believe this is mostly due to some proxy settings, check again and can take some online help
      stackoverflow.com/questions/33162560/error-tunneling-socket-while-executing-npm-install

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

      @@RaghavPal thanks

  • @AtifKhan-te5eg
    @AtifKhan-te5eg 2 ปีที่แล้ว

    hi sir I am facing issues when I change proxy server to local host postman not working

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

      will need to check the details and logs Atif

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

    Hi can you please confirm why I am getting error every time I am clicking on template 😢

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

      will need to check details for that

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

    What's the difference between Postman and Jmeter ?

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

      Hi Sayuri, Postman is API platform and JMeter is performance testing platform

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

      @@RaghavPal Thank you Sir. Also can you post a video explaining it as an interview question..

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

      I will try

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

    👍

  • @321noone
    @321noone 3 ปีที่แล้ว

    why do we need to create a proxy?

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

      So we can capture the network traffic and calls, and because we need to capture from a specific rout and not all traffic, so we need proxy