7 | JMeter | Test Script Recorder |

Sdílet
Vložit
  • čas přidán 5. 06. 2024
  • Hi, for those with a missing ApacheJMeterTemporaryRootCA certificate in the bin folder while trying to import certificates to your browser,
    Click on the "start" button on the HTTP(S) Test Script Recorder and it will generate one for you.
    You may bes going step by step, and trying to import first and then start the recorder.
    All FREE courses - automationstepbystep.com/
    - [x] How to record your test on JMeter
    - [x] How to add & use Test Script Recorder
    - [x] How to add & use Recording Controller
    - [x] How to use proxy on Firefox, Chrome and System
    - [x] How to add SSL Certificate
    - [x] How to do Request Filtering
    - [x] How to use Recording Template
    Join Automation Step By Step channel: czcams.com/users/automationste...
    Stories by Raghav - automationstepbystep.com/stor...
    My Udemy Courses - automationstepbystep.com/udem...
    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.
    #JMeterBeginnerTutorials
    _______ ONLINE COURSES TO LEARN _______
    automationstepbystep.com/onli...
    GitHub - github.com/Raghav-Pal/
    Udemy - www.udemy.com/user/raghav-pal-3/
    Training by Raghav at your venue - raghav.qna@gmail.com
    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
    ------------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
    ---------- Connect with Raghav -----------
    Website - automationstepbystep.com/
    LifeCharger - lifecharger.org/
    Udemy Courses - www.udemy.com/user/raghav-pal-3/
    Facebook - / automationstepbystep
    Twitter - / learnwithraghav
    CZcams - / automationstepbystep
    Never Stop Learning
    Raghav

Komentáře • 128

  • @sureshkumarmadevan3011
    @sureshkumarmadevan3011 Před 3 lety +1

    Great info on using JMeter for building a test script. Very much appreciated for sharing your knowledge.

  • @blastanoizz2
    @blastanoizz2 Před 4 měsíci +1

    This is exactly what I was looking for, concise yet very clear. Thank you so much!

    • @RaghavPal
      @RaghavPal  Před 4 měsíci +1

      You're very welcome. You may find the JMeter Masterclass also helpful automationstepbystep.com/

  • @adityanetalkar2649
    @adityanetalkar2649 Před 3 lety +4

    Amazing content!! Thank you for the knowledge your blessing me.

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 Před 3 měsíci +1

    Thank you for your work, Raghav! Well done!

  • @697umer
    @697umer Před 9 měsíci

    Superb , nicely explained and handled the topic wisely

  • @javlontursunov6527
    @javlontursunov6527 Před 2 lety

    Bro, thank you so much!

  • @3VAudioVideo
    @3VAudioVideo Před 2 lety +1

    Question. Why would one want to exclude URL patterns (as shown at the end of the video)? Wouldn't play back without them show response times to be faster, and therefore not replicating real user experience? QA would report a faster response time to DEV so they would sign off on SLA, and then when product is released to the public, customers will complain and then QA would be blamed for it. Please correct me if I am wrong as I am not an expert at Load/Performance testing.

    • @RaghavPal
      @RaghavPal  Před 2 lety +2

      Hi, JMeter checks the server side performance and not client side

    • @3VAudioVideo
      @3VAudioVideo Před 2 lety +1

      @@RaghavPal OK, thanks. I will have to look more into it so I can understand better because I thought what we were doing here is to exclude what is being returned by the server. Thanks again for your AWESOME-Rocking-Kick-Azz videos!!

  • @StevenLarkin
    @StevenLarkin Před rokem

    OK this was good very good
    thanks

  • @parthkotadia5996
    @parthkotadia5996 Před 2 lety

    This test script recording VS blazemeter
    Which one should be used ( For official purpose )
    I feel blazemeter plugin makes it easier, what's your take on this, Sir
    ?

  • @shrutisankhyayan7316
    @shrutisankhyayan7316 Před měsícem +1

    Thanks for the informative video Raghav, I followed your comment on Blazemeter but due to some security concern the extension is blocked for the erp that we are using. I want to use the test script recorder itself and following this video but can you please let me know if there is anything that I should check beforehand with the security/infrastructure team or can I proceed with the setting mentioned in this video. Thanks!

    • @RaghavPal
      @RaghavPal  Před měsícem

      Shruti
      When using JMeter's built-in test script recorder, there are a few considerations you should keep in mind, especially from a security and infrastructure perspective:
      1. Network Configuration:
      - Ensure that your network configuration allows communication between the machine running JMeter and the application under test (AUT).
      - Check if any firewalls, proxies, or network restrictions might interfere with the recording process. You may need to whitelist specific IP addresses or domains.
      2. Proxy Settings:
      - If your organization uses a proxy server, configure JMeter to use the proxy settings.
      - Go to "Options" > "Recorder" in JMeter, and set up the proxy accordingly.
      - Make sure the proxy settings match those used by your AUT.
      3. SSL Certificates:
      - When recording HTTPS traffic, JMeter acts as a man-in-the-middle (MITM) proxy.
      - Ensure that your security team is aware of this and approves the use of JMeter for recording.
      - You may need to import JMeter's self-signed SSL certificate into your browser or system trust store.
      4. Security Policies:
      - Check if your organization has any security policies related to tool usage.
      - Some companies restrict the use of certain tools due to security concerns.
      - Discuss with your security team to ensure compliance.
      5. Sensitive Data Handling:
      - Be cautious when recording sensitive data (e.g., passwords, tokens, personal information).
      - Avoid recording sensitive data during testing.
      - If you accidentally record sensitive data, remove it from the test script before execution.
      6. Authentication and Authorization:
      - If your AUT requires authentication (e.g., login), ensure that you handle it appropriately during recording.
      - Set up JMeter's HTTP Authorization Manager to handle credentials.
      7. Recording Scenarios:
      - Plan your recording scenarios carefully. Focus on critical user flows.
      - Avoid recording unnecessary interactions (e.g., static resources, ads) to keep the script concise.
      8. Script Cleanup:
      - After recording, review the generated script.
      - Remove any unnecessary requests or redundant steps.
      - Parameterize dynamic values (e.g., session IDs, timestamps).
      9. Performance Impact:
      - Recording can impact the performance of your AUT.
      - Conduct recording during off-peak hours if possible.
      10. Documentation:
      - Document the recording process, including any deviations from standard practices.
      - Share this documentation with your infrastructure and security teams.
      Remember that JMeter's test script recorder captures all HTTP/HTTPS traffic, so it's essential to follow security best practices. If you encounter any issues during recording, involve your security and infrastructure teams early to address them effectively.

  • @princekeshari6934
    @princekeshari6934 Před rokem

    Nice video sir

  • @stutigoyal2060
    @stutigoyal2060 Před 3 lety

    Hey, you are really a big help to me in my automation learning. Just one question- I could not find tutorials for automation on Android Studio. Do you have these tutorials?

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Hi Stuti, I have one video in appium playlist, Can check here - automationstepbystep.com/

    • @stutigoyal2060
      @stutigoyal2060 Před 3 lety

      @@RaghavPal that's for Android physical device.. not Android Studio

    • @RaghavPal
      @RaghavPal  Před 3 lety +1

      Okay in the appium series I have a video for Appium Studio and I confused it with that, Sorry, Not yet on Android Studio, will plan

  • @navsw26
    @navsw26 Před 2 lety

    Hi Raghav, I am trying to use recording template. When I open a recording template test plan, the HTTP(s) Test Recorder is disabled. Also , my proxy settings in chrome are same as with the manual recording session. I have even added the certificate. But when I start recording enabling or disabling the test recorder, nothing is getting recorded. Please help. Thank you.

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi, mostly it must be due to the proxy setup, try checking some online examples

    • @pratikshapatle1397
      @pratikshapatle1397 Před rokem

      @@RaghavPal Raghav I tried it.. But mine is showing same.. Nothing is get recorded

  • @sangeetharonanki2800
    @sangeetharonanki2800 Před 2 lety

    Hi sir, Though I have set the proxy and target controller as use recording controller and start recording my browser activities, I am unable to see even a single transaction captured in my thread group

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Sangeetha, can check if anything is missed, if you still face issues, can try recording using blazemeter chrome plugin

  • @lukaszlewosinski84
    @lukaszlewosinski84 Před 2 lety

    |Hi, i cant start recording. I add crt, and add corect proxy. Now when i click on start recording by chrome inform me about not secure connection. I click on advanced options and try to open page anyway. But page have some visuals bugs and when i click to stop recording nothing happends. Maybe i need change something is my chrome browser?

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Lukasz, may be, will need to check online

  • @aniketsonawane6381
    @aniketsonawane6381 Před 3 lety +1

    Hey guys, I am using Blazemeter script recorder to record my application log in and navigation steps. When I load that jmx file in jmeter and run, I keep getting 401 unauthorized error. Is there someone here who can help me with the same? Thank you

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Hi Ankit, your application needs some authorization like username, password, you can add that in the HTTP SAMPLER

  • @InfoSphere10
    @InfoSphere10 Před rokem

    Hiii!!! Can you tell me where i gonna to download a Apache Security Certificate...?

    • @RaghavPal
      @RaghavPal  Před rokem

      it will get downloaded in JMeter bin folder

  • @angulurisaiakhil2210
    @angulurisaiakhil2210 Před 2 lety +1

    I am not having the certificate in my bin folder and the version of JMeter I'm having is 5.4.1. Is there any other possibility to get it, please??

    • @RaghavPal
      @RaghavPal  Před 2 lety +1

      Hi, for those with a missing ApacheJMeterTemporaryRootCA certificate in the bin folder while trying to import certificates to your browser,
      Click on the "start" button on the HTTP(S) Test Script Recorder and it will generate one for you.
      You may bes going step by step, and trying to import first and then start the recorder.

    • @angulurisaiakhil2210
      @angulurisaiakhil2210 Před 2 lety

      @@RaghavPal yeah I have done the same procedure. But after starting the recording the hits were not getting captured..dont know why?? Could you please help me..

    • @RaghavPal
      @RaghavPal  Před 2 lety +1

      I am not sure where exactly are you doing the mistake, May be can check some more online resources and try again

  • @nikhitaveeram5686
    @nikhitaveeram5686 Před 7 měsíci

    Hi,, I have done an installation of jmeter in my system but i can't see Apache jmeter root certification in my folder..can u please help

    • @RaghavPal
      @RaghavPal  Před 7 měsíci

      Nikhita
      The ApacheJMeterTemporaryRootCA.crt certificate is generated automatically by JMeter when you start it for the first time. The certificate is stored in the JMeter bin directory.
      If you cannot see the certificate in the JMeter bin directory, you can try the following:
      * Make sure that you are looking in the correct directory. The JMeter bin directory is typically located at `C:\Program Files\ApacheJMeter\bin` on Windows, or `/usr/share/jmeter/bin` on Linux.
      * Try restarting JMeter.
      * Try regenerating the certificate. To regenerate the certificate, start JMeter and then go to the Options menu and select "Help > Regenerate Root CA Certificate".
      If you are still having problems, you can try asking for help on the JMeter mailing list or IRC channel.
      In the meantime, you can manually create a certificate using the following command:
      ```
      keytool -genkey -alias jmeter -keystore jmeter.keystore -storepass password
      ```
      This will create a keystore file called `jmeter.keystore` with a password of `password`. The keystore will contain a certificate that you can use to trust JMeter.
      To import the certificate into your browser, open the browser's certificate manager and import the certificate from the `jmeter.keystore` file.
      Once you have imported the certificate, you should be able to record HTTPS requests with JMeter.

  • @pavithram3571
    @pavithram3571 Před rokem +1

    Hi Sir, Once enable the proxy, I lost my internet connection. So I could not able to load the page. Please guide me asap.

    • @RaghavPal
      @RaghavPal  Před rokem

      After you enable proxy, it will only work when you start recording

  • @odalytejada5578
    @odalytejada5578 Před 2 lety

    hello, sorry that I make a question about a different video. i have followed you for a long time, and have learned a lot, thanks to you. I have been tried to make a recording in JMeter from my android mobile, I have watched this video like a 20 times, still struggling when I made the set up in my phone, set the network with the IP of my computer, set to manual the proxy, IP setting in DHCP same proxy port that I have in JMeter, download the certificate and my cellphone and after all these steps my WIFI service is set to airplane mode. when I try to do the recording I don't have service in my phone due is airplane mode. how I can fix that. could you please give some guidance?

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Odaly, this can be due to the settings or features of the specific device, It normally happens for security over the network, I can suggest 2 options here:
      1. Check for your specific device, how can you do a work around
      2. Try using some cloud device for the test

    • @odalytejada5578
      @odalytejada5578 Před 2 lety

      @@RaghavPal thanks a lot for the reply. do i need to check with the provider of the device ? or which specific info do i need to look at in my device

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Odaly, can check online for your specific device

  • @zhenyucai
    @zhenyucai Před rokem

    Thanks for creating this video. I've followed your Java, JMeter Installation videos to set up my environment, and I am able to run basic JMeter tests on my machine. However, when I follow this video to try the recording feature, I run into this error "could not create script recorder - see log for details: Cannot find keytool application and no keystore was provided". Your help is greatly appreciated!

    • @RaghavPal
      @RaghavPal  Před rokem

      Hi Zhenyu
      This error message indicates that JMeter is unable to find the keytool application, which is required for the recording feature to work. Keytool is a tool that comes with the Java Development Kit (JDK) and is used to manipulate Java Keystores, which are used for secure storage of cryptographic keys and certificates.
      To resolve this issue, you can try the following steps:
      Make sure that you have installed the JDK on your machine and that the JDK's bin directory is included in your system's PATH environment variable.
      Check that the keytool application is available on your system by opening a command prompt and typing "keytool" at the prompt. If the keytool application is not found, you may need to add the JDK's bin directory to your PATH environment variable.
      If the keytool application is available on your system, check that the JMeter recording settings are correctly configured. In the JMeter application, go to the "HTTP(S) Test Script Recorder" element in the Test Plan and make sure that the "Keystore" and "Keystore password" fields are correctly configured. If you don't have a keystore file, you can create one using the keytool application.
      If you still encounter the same error message, you can try specifying the location of the keytool application manually. To do this, go to the "HTTP(S) Test Script Recorder" element in the Test Plan and specify the path to the keytool application in the "Path to keytool executable" field.

    • @zhenyucai
      @zhenyucai Před rokem

      @@RaghavPal Thank you for your detailed info. I appreciated it. I've tried everything, plus different JMeter and Java releases, except for "Keystore" and "Keystore password" fields in "HTTP(S) Test Script Recorder" as you suggested. I don't see these fields in my JMeter 5.5 or 5.4.3. Can you help provide more details or create another video for this? And also I don't seem to have a keystore file, and I don't know how to create it.

    • @RaghavPal
      @RaghavPal  Před rokem +1

      I will check, Meanwhile, pls take online help and try some options

  • @chunji6489
    @chunji6489 Před 5 měsíci

    In my login case, I need to provide the real-time TOTP value. So for such case, once I have the original recorded, it can not be execute as it, because of the TOTP. Comments ?

    • @RaghavPal
      @RaghavPal  Před 5 měsíci +1

      Chun Ji
      Here are strategies to handle real-time TOTP values for login validation in JMeter:
      1. Dynamic TOTP Generation:
      - JSR223 PreProcessor:
      - Use a JSR223 PreProcessor (Groovy or BeanShell) to dynamically generate TOTP values before each request.
      - Employ a TOTP library like Google's TOTP library or OTP-Java.
      - Example (Groovy):
      ```groovy
      import org.apache.commons.codec.binary.Base32;
      import javax.crypto.spec.SecretKeySpec;
      import javax.crypto.Mac;
      // Replace with your TOTP secret key
      def secretKey = "your_secret_key";
      // Generate TOTP value
      def totp = new TOTP(new SecretKeySpec(new Base32().decode(secretKey), "HmacSHA1"), 6).now();
      // Set TOTP value in request parameter or header
      vars.put("totp_value", totp);
      ```
      2. Parameterized TOTP Values:
      - CSV Data Set Config:
      - Use a CSV Data Set Config to provide a list of pre-generated TOTP values.
      - JMeter will iterate through the values for different users or threads.
      3. External TOTP Generator:
      - External Service:
      - Use an external service to generate and provide TOTP values.
      - Integrate the service with JMeter using a JSR223 PreProcessor or HTTP Request.
      4. Server-Side Bypass (for Testing Purposes):
      - Temporary Modification:
      - If feasible for testing purposes, temporarily disable or bypass TOTP validation on the server-side.
      - Be cautious as this approach weakens security.
      Key Considerations:
      - Security: Store TOTP secrets securely, avoiding hardcoding them in scripts.
      - Timing: Ensure accurate TOTP generation considering server time and clock synchronization.
      - Approach Selection: Choose the method that best suits your security requirements, testing needs, and project constraints.

    • @chunji6489
      @chunji6489 Před 5 měsíci

      @@RaghavPal Thanks for the help. When I was to have the http test case recorded, I was using a fixed TOTP value, per that user's secect-key, by that moment. Once the record work is done, It is the hard-coded, expired TOTP value being saved. In order to rerun the script with this user account, I need to make the dynamic call instead, something you suggested as "new TOTP(new SecretKeySpec(new Base32().decode(secretKey), "HmacSHA1"), 6).now()" . Is that possible to have this included in the recorded test case ?

    • @RaghavPal
      @RaghavPal  Před 5 měsíci

      Yes, it's entirely possible to include dynamic TOTP generation within your recorded JMeter test case. Here's a step-by-step guide:
      1. Add a JSR223 PreProcessor:
      - Right-click the HTTP Request sampler that requires dynamic TOTP generation.
      - Select "Add" > "Pre Processors" > "JSR223 PreProcessor."
      2. Write the TOTP Generation Code:
      - Paste the following code into the PreProcessor's "Script" area, replacing placeholders with actual values:
      ```java
      import org.apache.commons.codec.binary.Base32;
      import javax.crypto.Mac;
      import javax.crypto.spec.SecretKeySpec;
      import org.apache.commons.codec.binary.Hex;
      // Replace with the actual secret key
      String secretKey = "your_secret_key";
      // Generate TOTP code
      long time = System.currentTimeMillis() / 1000 / 30; // Time in 30-second intervals
      byte[] key = new Base32().decode(secretKey);
      byte[] data = new byte[8];
      long value = time;
      for (int i = 8; i-- > 0; value >>>= 8) {
      data[i] = (byte) value;
      }
      SecretKeySpec signKey = new SecretKeySpec(key, "HmacSHA1");
      Mac mac = Mac.getInstance("HmacSHA1");
      mac.init(signKey);
      byte[] hash = mac.doFinal(data);
      int offset = hash[20 - 1] & 0xF;
      int binary = ((hash[offset] & 0x7F)

    • @chunji6489
      @chunji6489 Před 4 měsíci

      @@RaghavPal Thank you for the help. I think I am making progress and have used the dynamic totp value where it is needed. Anyway, another question is, how you compare this "Http Test Script Recorder way" vs "to have selenium plug-in the JMETER cases" ? When I was to create a test case using the 2nd option, I have the checkbox to "accept insecure cert". Could such be filter out during Script Recorder way ?

    • @RaghavPal
      @RaghavPal  Před 4 měsíci +1

      Here's a comparison of the HTTP Test Script Recorder and Selenium plugin for JMeter, addressing insecure certificate handling:
      HTTP Test Script Recorder
      - Captures HTTP requests: Records browser interactions, generating HTTP requests for JMeter test plans.
      - Bypassing insecure certificates:
      - Not directly supported within the recorder.
      - Requires manual configuration in JMeter test plan:
      - Add HTTP Request Defaults element.
      - Under "Advanced" tab, check "Allow Self-Signed Certificates."
      Selenium Plugin for JMeter
      - Integrates Selenium WebDriver: Enables browser-based UI testing within JMeter.
      - Insecure certificate handling:
      - Offers a checkbox in Selenium Sampler to accept insecure certificates.
      - Can also be configured in WebDriver settings using `DesiredCapabilities`.
      Key Considerations for Choosing:
      - Testing goals:
      - Pure HTTP testing: Use HTTP Test Script Recorder.
      - Browser-based UI testing: Selenium plugin is essential.
      - Certificate handling flexibility: Selenium plugin offers more direct control.
      - Performance: HTTP Test Script Recorder generally performs better for HTTP-only tests.
      - Maintenance: HTTP recordings might require manual adjustments for dynamic content.
      - Integration with other JMeter features: HTTP recordings integrate seamlessly with other JMeter elements.
      Additional Considerations:
      - Security: Exercise caution when accepting insecure certificates, especially in production environments.
      - Correlation: Both methods might require correlation for dynamic parameters.
      - Best practices:
      - Start with HTTP Test Script Recorder for basic HTTP testing.
      - Transition to Selenium plugin for browser-based UI interactions and advanced certificate handling.
      Choose the approach that best aligns with your testing needs and technical requirements.

  • @yashuniq5433
    @yashuniq5433 Před 3 lety

    Hi sir, in my jmeter bin folder it doesn't showing me certificate. Is there any alternative for it.

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Hi Yash, check this comment by Saideep,
      Not sure if anyone else had this confusion but for those with a missing ApacheJMeterTemporaryRootCA certificate in the bin folder while trying to import certificates to your browser,
      Click on the "start" button on the HTTP(S) Test Script Recorder and it will generate one for you.
      As I was going step by step, I was trying to import first and then start the recorder.

    • @yashuniq5433
      @yashuniq5433 Před 3 lety

      @@RaghavPal hii sir, now it's showing. Thank you so much for quick reply ❤️.

  • @uniquetechnicalmaster6506

    Sir raghav,
    When I go to bin folder of jmeter I am unable to find certificate file

    • @RaghavPal
      @RaghavPal  Před rokem

      Try downloading apache-jmeter-2.6.zip from www.apache.org/dist/jmeter/binaries/
      stackoverflow.com/questions/10480042/how-to-resolve-the-error-unable-to-access-jarfile-apachejmeter-jar-errorlevel-1

  • @devdalia2699
    @devdalia2699 Před 2 lety

    As I read , JMeter isn’t good for more users like 60K , Do you have another App to do load and stress test for my website

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Dev, that will be the limitation of the machine and infrastructure

  • @snehatapkir8254
    @snehatapkir8254 Před 6 měsíci

    after setting proxy unable to record getting error like check proxy setting after doing all the settings ,unabel to connect with proxy,please help

    • @RaghavPal
      @RaghavPal  Před 6 měsíci

      Sneha
      The error message "unable to connect with proxy" suggests that JMeter is unable to establish a connection with the proxy server you've configured. This could arise due to various reasons, including incorrect proxy settings, firewall restrictions, or proxy server inaccessibility.
      To troubleshoot this issue, follow these steps:
      1. **Verify Proxy Settings:**
      * Double-check the proxy settings in JMeter's "HTTP(S) Test Script Recorder" under the "Proxy" tab.
      * Ensure that the proxy host, port, and username (if required) are entered correctly.
      * Verify that the proxy server is accessible from the machine running JMeter.
      2. **Check Firewall Rules:**
      * Inspect your firewall settings to ensure that JMeter is allowed to communicate with the proxy server.
      * If necessary, configure firewall rules to allow outbound connections from JMeter to the proxy server's IP address and port.
      3. **Validate Proxy Server Status:**
      * Confirm that the proxy server is running and accepting connections.
      * If using an external proxy server, check with the proxy administrator to ensure the server is functioning properly.
      4. **Test Proxy Connection:**
      * Use a network diagnostic tool like ping or telnet to test connectivity to the proxy server.
      * If ping or telnet is successful, it indicates that the proxy server is reachable from your network.
      5. **Review Proxy Protocol:**
      * Verify that you're using the correct proxy protocol in your JMeter settings.
      * Common proxy protocols include HTTP, HTTPS, and SOCKS.
      * Check the proxy server documentation to determine the supported protocol.
      6. **Clear Proxy Cache:**
      * If you've made recent changes to the proxy settings, try clearing the proxy cache in JMeter.
      * This might resolve issues caused by cached outdated proxy information.
      7. **Use Alternative Proxy Recording Methods:**
      * Consider using alternative proxy recording methods, such as using the JMeter Chrome Extension or recording traffic directly on the target device.
      * These methods might circumvent issues related to JMeter's proxy recording functionality.
      Remember to restart JMeter after making any changes to the proxy settings to ensure they take effect.

  • @saajidhnawwar8505
    @saajidhnawwar8505 Před rokem +1

    I cant find the ApacheTemporaryRootCA file under the bin folder

    • @RaghavPal
      @RaghavPal  Před rokem +2

      Hi Saajidh, generally when you start recording, the certificate will get generated.
      If you can't find the ApacheTemporaryRootCA.crt file under the bin folder of JMeter, it is likely because the file was not generated when you started the HTTP(S) Test Script Recorder.
      To generate the ApacheTemporaryRootCA.crt file, follow these steps:
      Start the HTTP(S) Test Script Recorder by right-clicking on the Test Plan and selecting Add > Non-Test Elements > HTTP(S) Test Script Recorder.
      Click the Start button to start the recorder.
      In the Recording Controller, add a new Sampler by right-clicking and selecting Add > Sampler > HTTP Request.
      In the HTTP Request, set the Server Name or IP field to localhost and the Port Number to 8888.
      Click the Start button to start the sampler.
      Open your browser's settings and navigate to the network or proxy settings.
      Set the proxy settings to use the IP address and port number of the JMeter proxy server. By default, the JMeter proxy server listens on port 8888.
      Save the proxy settings and start browsing the website you want to test.
      After you have finished browsing, stop the sampler and the recorder.
      The ApacheTemporaryRootCA.crt file should now be generated under the bin folder of JMeter.
      If the file is still not generated, check that you have the appropriate permissions to write files to the bin folder. If you still can't generate the file, try running JMeter as an administrator or try specifying a different folder to save the file in the HTTP(S) Test Script Recorder settings.

    • @saajidhnawwar8505
      @saajidhnawwar8505 Před rokem

      @@RaghavPal Thanks sir! It worked.

  • @savithrisarnala4481
    @savithrisarnala4481 Před rokem

    I do same process but it was not recording properly and it does not talking current giving path and port it goes to default port 443 pls anyone help me what is the problem?

    • @RaghavPal
      @RaghavPal  Před rokem

      Hi Savithri, will need to check the setup again, can take help from here - jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html

    • @savithrisarnala4481
      @savithrisarnala4481 Před rokem

      OK sir thank you

  • @user-on7zi3rn2q
    @user-on7zi3rn2q Před 3 měsíci

    Sir I am not able to find root certificate in bin library , could not create script recorder

    • @RaghavPal
      @RaghavPal  Před 3 měsíci +1

      Milind
      If you're encountering issues with JMeter's root certificate, let's troubleshoot it. The root certificate is essential for recording HTTPS traffic using the JMeter script recorder. Here are some steps to resolve this issue:
      1. Generate the Root Certificate:
      - The root certificate is automatically generated by JMeter when you start the HTTP(S) Test Script Recorder. Before starting the recorder, you won't see any certificate in the "bin" folder.
      - To generate the certificate:
      - Open JMeter.
      - Go to File > Templates > Recording > Create.
      - In the HTTP(S) Test Script Recorder, click the Start button.
      - JMeter will create the ApacheJMeterTemporaryRootCA.crt file in the "bin" folder of your JMeter installation.
      2. Check the "bin" Folder:
      - Navigate to your JMeter installation directory.
      - Look for the bin folder.
      - You should find the ApacheJMeterTemporaryRootCA.crt file there.
      3. Install the Certificate in Your Browser:
      - Once the certificate is generated, you need to install it in your browser.
      - For Firefox:
      1. Open Firefox.
      2. Go to Options > Privacy & Security > Certificates.
      3. Click on View Certificates.
      4. In the Authorities tab, click Import.
      5. Select the ApacheJMeterTemporaryRootCA.crt file from the "bin" folder.
      6. Follow the prompts to install the certificate.
      - For other browsers, follow similar steps to import the certificate.
      4. Security Note:
      - Do not download certificates from the internet or use third-party certificates. Only use the certificate generated by your own JMeter installation.
      - Installing unknown certificates can expose you to security risks (such as man-in-the-middle attacks).
      5. Alternative Approach:
      - Consider using the JMeter Chrome Extension for recording. It simplifies the process and eliminates the need to worry about proxies and SSL certificates.
      Remember to follow these steps carefully, and you should be able to create the script recorder successfully.
      ...

  • @kishorchintala7578
    @kishorchintala7578 Před 2 lety

    Hi Raghav, When I try to add certificate in Mac, I get "This root certificate is not trusted", When I trty to record I get Your connection is not private

    • @RaghavPal
      @RaghavPal  Před 2 lety

      You may need to set the proxy, can check some online examples

    • @kishorchintala7578
      @kishorchintala7578 Před 2 lety

      @@RaghavPal I have fixed, now I am able to record successfully, but in reply I get 403 Forbidden error. How to fix it ?

    • @RaghavPal
      @RaghavPal  Před 2 lety

      403 means it need authentication, check if you have provided correct credentials

    • @siva306
      @siva306 Před 2 lety

      @@kishorchintala7578 I am also getting the same error you mentioned kishor. how you fixed it ?

  • @RAJUKUMAR-gm7hb
    @RAJUKUMAR-gm7hb Před 3 lety

    Hi sir im certificate instead but again error come your certificate error how to solve that problem

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Hi Raju, check the logs and copy the message and search online, You can also find some earlier comments on this

  • @snehalkhot5937
    @snehalkhot5937 Před 3 lety

    Can you please make a video on performance monitoring tool like newrelic

  • @savithrisarnala4481
    @savithrisarnala4481 Před rokem

    Hi sir 4gb ram system supports jmeter?

    • @RaghavPal
      @RaghavPal  Před rokem

      yes, but don't give too much load in your test

  • @rajesh9615
    @rajesh9615 Před 4 měsíci

    When i am doing all the same steps but it is not working for me your connection is private error occurs

    • @RaghavPal
      @RaghavPal  Před 4 měsíci

      Rajesh
      will need more details, what all steps you did, where exactly you faced issue and error details

  • @marcusbengtsson501
    @marcusbengtsson501 Před 2 měsíci

    I am unable to do proxy settings in windows 11, it resets every time i save

    • @RaghavPal
      @RaghavPal  Před 2 měsíci

      Marcus
      The issue you're experiencing with the JMeter Test Script Recorder proxy settings resetting on Windows 11 could be due to several reasons. Here are some steps you can take to troubleshoot and resolve the issue:
      1. Run as Administrator: Make sure you're running JMeter as an administrator. Right-click on the JMeter executable and select "Run as administrator". This ensures that JMeter has the necessary permissions to modify system settings.
      2. Check JMeter Configuration: Verify that JMeter is configured correctly to use your corporate proxy, if applicable. You can do this by adding the following lines to the `system.properties` file located in the `bin` folder of your JMeter installation:
      ```
      http.proxyHost=your_corporate_proxy_host
      http.proxyPort=your_corporate_proxy_port
      https.proxyHost=your_corporate_proxy_host
      https.proxyPort=your_corporate_proxy_port
      ```
      Replace `your_corporate_proxy_host` and `your_corporate_proxy_port` with your actual proxy details¹.
      3. Modify Network Settings: If you're using a browser to record scripts, ensure that the browser's proxy settings are set to point to JMeter's Test Script Recorder (e.g., `localhost` and port `8888`). In some cases, you might need to configure the browser manually each time you start recording².
      4. Windows Proxy Settings: If you're referring to the system-wide proxy settings in Windows 11, it's possible that group policies or antivirus software might be reverting your changes. Check if there are any such policies in place that might be affecting your settings.
      .

  • @sanjukumawatvlogs5902
    @sanjukumawatvlogs5902 Před 2 lety

    bro! some result is showing an error(total 16 errors)!

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Sanju, will need to check the errors and logs

  • @dikshatiwari8062
    @dikshatiwari8062 Před rokem

    can we use apk file for performance testing on j meter

    • @RaghavPal
      @RaghavPal  Před rokem

      Hi Diksha
      Yes, you can use APK (Android Package Kit) files for performance testing with JMeter. However, you will need to use a JMeter plugin called "Android JMeter Plugin" to simulate the mobile app's behavior.
      Here are the steps to use the Android JMeter Plugin with an APK file:
      Install the Android JMeter Plugin in JMeter.
      Convert the APK file to a JMX (JMeter Test Plan) file using the APK to JMX Converter tool.
      Open the converted JMX file in JMeter.
      Set up the test plan and configure the HTTP requests according to your needs.
      Run the test and analyze the results.
      Note that performance testing on mobile apps can be complex, as it involves simulating real-world scenarios such as network latency, different mobile devices, and user behaviors. Therefore, it's important to carefully plan and design your test scenarios to ensure accurate and meaningful results.

  • @_himanshu.fitness_
    @_himanshu.fitness_ Před 8 dny

    for macOS ?
    how to install certificate

    • @RaghavPal
      @RaghavPal  Před 8 dny

      Himanshu
      Installing certificates on macOS involves a few steps, depending on the type of certificate you're dealing with. Let's cover a couple of scenarios:
      1. Adding Certificates to Keychain Access:
      - If you have a certificate file (e.g., `.cer`, `.pem`, or `.crt`), you can add it to your keychain using the Keychain Access app. Here's how:
      1. Open the Keychain Access app on your Mac.
      2. Select either the login or System keychain (depending on your preference).
      3. Drag the certificate file onto the Keychain Access app.
      4. If prompted, provide the name and password for an administrator user on your computer.
      - This process allows you to quickly access secure websites and other resources using the added certificate
      2. Installing an SSL Certificate on macOS Servers:
      - If you're dealing with SSL certificates for a server, follow these steps:
      1. Prepare your certificate files:
      - Download the zip folder from your Certificate Authority (CA) and extract the files with `.crt` and `.ca-bundle` extensions.
      - These files typically include your root, intermediate, and primary certificates.
      2. Add your `.ca-bundle` file to the Keychain:
      - Start by adding the CA bundle file to your keychain.
      3. Add your primary certificate:
      - Next, add your primary certificate (the one associated with your domain).
      4. Assign the new certificate to the services you intend to secure (e.g., web servers, email servers, etc.)
      3. Setting Up HTTPS on localhost for Development:
      - If you're working on local development, consider using `mkcert`. It's a simple tool for creating locally-trusted development certificates:
      - Install `mkcert` using Homebrew:
      ```bash
      brew install mkcert
      brew install nss # If you use Firefox
      ```
      - Run the following command to install the certificate:
      ```bash
      mkcert -install
      ```
      - This will create a locally-trusted certificate that you can use for HTTPS on `localhost`
      Remember to choose the appropriate method based on your specific use case
      --

  • @nikhilmattoo8852
    @nikhilmattoo8852 Před 2 lety

    Hi Sir, manual proxy set karne par mera site open nahi ho raha hai. Kya baat ek baar bata sakte hai

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Hi Nikhil, Did you try after starting the JMeter Test Script Recorder

    • @pavithram3571
      @pavithram3571 Před rokem

      @@RaghavPal Hi Sir, I'm also facing the same problem. Once enable the proxy, I lost my internet connection. So I could not able to load the page. Please guide me asap

  • @bujjisuni4468
    @bujjisuni4468 Před 3 lety

    Sir can you please do the video on jmeter native mobile app recording

  • @GIEC_MSridhar
    @GIEC_MSridhar Před rokem

    🤩😘😘😘😘

  • @vijithanani3190
    @vijithanani3190 Před rokem

    Hi I am getting error in Firefox browser when I searched website page

    • @RaghavPal
      @RaghavPal  Před rokem

      What is the error Vijitha

    • @vijithanani3190
      @vijithanani3190 Před rokem

      @@RaghavPal now it is opened tq u.when I searched in Firefox browser in that proxy connection error I am getting.

    • @RaghavPal
      @RaghavPal  Před rokem

      ok, if you face again, send with all details

    • @vijithanani3190
      @vijithanani3190 Před rokem

      @@RaghavPal how to getting DB connections and CPU utilization in AWS cloud watch logs by using jmeter

    • @vijithanani3190
      @vijithanani3190 Před rokem

      @@RaghavPal I am getting same error "the proxy server is refusing connections"

  • @keerthi554
    @keerthi554 Před 2 lety

    how to add certificate on mac

  • @deepaknirmalya9084
    @deepaknirmalya9084 Před rokem

    Can you make a video perfmon plugin on live server?

    • @RaghavPal
      @RaghavPal  Před rokem

      I will plan Deepak

    • @deepaknirmalya9084
      @deepaknirmalya9084 Před rokem

      @@RaghavPal Sir I have asked you many things from past 1 year always same answer ..

    • @RaghavPal
      @RaghavPal  Před rokem +1

      Deepak, I know there is a big list of topics I need to cover, I have been slow, I will try to cover most of them

  • @shahavejsiddiqui9897
    @shahavejsiddiqui9897 Před 3 lety

    First comment 😊

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Thanks for watching

    • @shahavejsiddiqui9897
      @shahavejsiddiqui9897 Před 3 lety

      Hi Raghav ...
      Can you please make a video on how we can bypass login UI in cypress step by step ..
      I hope you will do it...
      Thanks for this video 🙂

    • @RaghavPal
      @RaghavPal  Před 3 lety

      What exactly is the need of bypassing

    • @shahavejsiddiqui9897
      @shahavejsiddiqui9897 Před 3 lety

      Every time we need to login .. to execute our test cases and if I automate login it takes time.. that's why we need to bypass the login ...
      I m Using request() method but I m unable to save auth token to do further task

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Do you get token as the response of some request, if yes, you can check video on correlation and json extractor
      czcams.com/video/7-NcyZuUQnw/video.html
      czcams.com/video/3w0x6u4-6ng/video.html