7 | JMeter | Test Script Recorder |

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 144

  • @blastanoizz2
    @blastanoizz2 10 месяцев назад +3

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

    • @RaghavPal
      @RaghavPal  10 месяцев назад +1

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

  • @sureshkumarmadevan3011
    @sureshkumarmadevan3011 3 года назад +1

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

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 8 месяцев назад +1

    Thank you for your work, Raghav! Well done!

    • @RaghavPal
      @RaghavPal  8 месяцев назад

      Most welcome Svetlana

  • @adityanetalkar2649
    @adityanetalkar2649 3 года назад +4

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

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks for watching Aditya

  • @UmerFarooq_697
    @UmerFarooq_697 Год назад

    Superb , nicely explained and handled the topic wisely

    • @RaghavPal
      @RaghavPal  Год назад

      Thanks for watching Umer

  • @shrutisankhyayan7316
    @shrutisankhyayan7316 7 месяцев назад +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  7 месяцев назад

      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.

  • @3VAudioVideo
    @3VAudioVideo 3 года назад +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  3 года назад +2

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

    • @3VAudioVideo
      @3VAudioVideo 3 года назад +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!!

  • @saajidhnawwar8505
    @saajidhnawwar8505 Год назад +1

    I cant find the ApacheTemporaryRootCA file under the bin folder

    • @RaghavPal
      @RaghavPal  Год назад +3

      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 Год назад

      @@RaghavPal Thanks sir! It worked.

  • @pavithram3571
    @pavithram3571 2 года назад +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  2 года назад

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

  • @Tanned_guy
    @Tanned_guy Месяц назад

    I am not getting this certificate inside the bin folder, please let me know why it is happening and what the resolution is.

    • @RaghavPal
      @RaghavPal  Месяц назад +1

      Try starting recording once.. it will generate the certificate in the bin folder

  • @angulurisaiakhil2210
    @angulurisaiakhil2210 3 года назад +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  3 года назад +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 3 года назад

      @@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  3 года назад +1

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

  • @princekeshari6934
    @princekeshari6934 2 года назад

    Nice video sir

  • @parthkotadia5996
    @parthkotadia5996 3 года назад

    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
    ?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Parth, Blazemeter is easy

  • @StevenLarkin
    @StevenLarkin 2 года назад

    OK this was good very good
    thanks

    • @RaghavPal
      @RaghavPal  2 года назад

      You're welcome Steven

  • @aniketsonawane6381
    @aniketsonawane6381 3 года назад +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  3 года назад

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

  • @nikhitaveeram5686
    @nikhitaveeram5686 Год назад

    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  Год назад

      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.

  • @uniquetechnicalmaster6506
    @uniquetechnicalmaster6506 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

      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

  • @navsw26
    @navsw26 3 года назад

    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  3 года назад

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

    • @pratikshapatle1397
      @pratikshapatle1397 2 года назад

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

  • @zhenyucai
    @zhenyucai Год назад

    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  Год назад

      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 Год назад

      @@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  Год назад +1

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

  • @javlontursunov6527
    @javlontursunov6527 2 года назад

    Bro, thank you so much!

  • @sangeetharonanki2800
    @sangeetharonanki2800 2 года назад

    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  2 года назад

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

  • @snehatapkir8254
    @snehatapkir8254 Год назад

    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  Год назад

      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.

  • @lukaszlewosinski84
    @lukaszlewosinski84 2 года назад

    |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  2 года назад

      Hi Lukasz, may be, will need to check online

  • @soundorbbeats
    @soundorbbeats 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

      it will get downloaded in JMeter bin folder

  • @Gsuresh_3
    @Gsuresh_3 3 месяца назад

    Why we want test scripting recording? Can you explain it properly where it can be useful in project

    • @RaghavPal
      @RaghavPal  3 месяца назад +1

      Suresh
      it is a feature to help us create our test scripts without having to do everything manually

    • @Gsuresh_3
      @Gsuresh_3 3 месяца назад

      @@RaghavPal sir,
      we can make selenium scripts also right , my point is what makes difference?

    • @RaghavPal
      @RaghavPal  3 месяца назад +1

      to reduce manual effort

  • @sanjukumawatvlogs5902
    @sanjukumawatvlogs5902 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Sanju, will need to check the errors and logs

  • @chunji6489
    @chunji6489 11 месяцев назад

    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  11 месяцев назад +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 10 месяцев назад

      @@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  10 месяцев назад

      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 10 месяцев назад

      @@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  10 месяцев назад +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.

  • @siddharthdeshmukh7189
    @siddharthdeshmukh7189 5 месяцев назад

    How to set proxy in Mac and How to install Certificate in keychain access macbook ?

    • @RaghavPal
      @RaghavPal  5 месяцев назад

      Siddharth
      Ok, Let's tackle both of your questions:
      1. Setting Proxy in JMeter on Mac:
      To configure JMeter to use a proxy, you have a couple of options:
      - Command Line:
      Run the following command in your terminal, replacing `your_proxy_host` and `your_proxy_port` with the actual values:
      ```
      jmeter -H your_proxy_host -P your_proxy_port
      ```
      - Using system.properties:
      Edit the `system.properties` file located in the `bin` folder of your JMeter installation. Add the following lines:
      ```
      http.proxyHost=your_proxy_host
      http.proxyPort=your_proxy_port
      https.proxyHost=your_proxy_host
      https.proxyPort=your_proxy_port
      ```
      2. Installing a Certificate in Keychain Access (Mac):
      - Open Keychain Access (you can find it in `/Applications/Utilities/Keychain Access.app`).
      - Select either the login or System keychain.
      - Drag the certificate file onto the Keychain Access app.
      - If prompted, provide the name and password for an administrator user on your Mac.
      That should cover both proxy setup in JMeter and certificate installation in Keychain Access
      --

  • @kishorchintala7578
    @kishorchintala7578 3 года назад

    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  3 года назад

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

    • @kishorchintala7578
      @kishorchintala7578 3 года назад

      @@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  3 года назад

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

    • @siva306
      @siva306 2 года назад

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

  • @rajesh9615
    @rajesh9615 10 месяцев назад

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

    • @RaghavPal
      @RaghavPal  10 месяцев назад

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

  • @Shiva_nevici
    @Shiva_nevici 24 дня назад

    thx man!

  • @shahavejsiddiqui9897
    @shahavejsiddiqui9897 3 года назад

    First comment 😊

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks for watching

    • @shahavejsiddiqui9897
      @shahavejsiddiqui9897 3 года назад

      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  3 года назад

      What exactly is the need of bypassing

    • @shahavejsiddiqui9897
      @shahavejsiddiqui9897 3 года назад

      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  3 года назад

      Do you get token as the response of some request, if yes, you can check video on correlation and json extractor
      ruclips.net/video/7-NcyZuUQnw/видео.html
      ruclips.net/video/3w0x6u4-6ng/видео.html

  • @marcusbengtsson501
    @marcusbengtsson501 8 месяцев назад

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

    • @RaghavPal
      @RaghavPal  8 месяцев назад

      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.
      .

  • @devdalia2699
    @devdalia2699 3 года назад

    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  3 года назад

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

  • @stutigoyal2060
    @stutigoyal2060 3 года назад

    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  3 года назад

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

    • @stutigoyal2060
      @stutigoyal2060 3 года назад

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

    • @RaghavPal
      @RaghavPal  3 года назад +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

  • @yashuniq5433
    @yashuniq5433 3 года назад

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

    • @RaghavPal
      @RaghavPal  3 года назад

      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 3 года назад

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

  • @rakibtester3575
    @rakibtester3575 2 месяца назад

    Hi, is there any reference video for Mac OS for test script recorder

    • @RaghavPal
      @RaghavPal  2 месяца назад

      Rahi
      what specific issue are you facing on Mac. I believe the steps are same on windows and mac

    • @rakibtester3575
      @rakibtester3575 2 месяца назад

      @@RaghavPal I set all the configurations as per the videos. The web proxy server is set as "localhost" & port is "8888". After that, I added the certifications.
      Then start the test but the browser click is not recording.

    • @RaghavPal
      @RaghavPal  2 месяца назад

      will need to check more details.. can try searching online for this

  • @savithrisarnala4481
    @savithrisarnala4481 2 года назад

    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  2 года назад

      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 2 года назад

      OK sir thank you

  • @_himanshu.fitness_
    @_himanshu.fitness_ 6 месяцев назад

    for macOS ?
    how to install certificate

    • @RaghavPal
      @RaghavPal  6 месяцев назад

      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
      --

  • @RAJUKUMAR-gm7hb
    @RAJUKUMAR-gm7hb 3 года назад

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

    • @RaghavPal
      @RaghavPal  3 года назад

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

  • @odalytejada5578
    @odalytejada5578 3 года назад

    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  3 года назад

      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 3 года назад

      @@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  3 года назад

      Hi Odaly, can check online for your specific device

  • @nikhilmattoo8852
    @nikhilmattoo8852 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

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

    • @pavithram3571
      @pavithram3571 2 года назад

      @@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

  • @Sandesh-z8v
    @Sandesh-z8v 4 месяца назад

    I got .webp file... What to do ? remove ?

    • @RaghavPal
      @RaghavPal  4 месяца назад

      Check the steps again.. if you still face issues, let me know your detailed steps

  • @dikshatiwari8062
    @dikshatiwari8062 Год назад

    can we use apk file for performance testing on j meter

    • @RaghavPal
      @RaghavPal  Год назад

      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.

  • @snehalkhot5937
    @snehalkhot5937 3 года назад

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

  • @vijithanani3190
    @vijithanani3190 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

      What is the error Vijitha

    • @vijithanani3190
      @vijithanani3190 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад

      ok, if you face again, send with all details

    • @vijithanani3190
      @vijithanani3190 2 года назад

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

    • @vijithanani3190
      @vijithanani3190 2 года назад

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

  • @savithrisarnala4481
    @savithrisarnala4481 2 года назад

    Hi sir 4gb ram system supports jmeter?

    • @RaghavPal
      @RaghavPal  2 года назад

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

  • @bujjisuni4468
    @bujjisuni4468 3 года назад

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

  • @GIEC_MSridhar
    @GIEC_MSridhar 2 года назад

    🤩😘😘😘😘

  • @deepaknirmalya9084
    @deepaknirmalya9084 2 года назад

    Can you make a video perfmon plugin on live server?

    • @RaghavPal
      @RaghavPal  2 года назад

      I will plan Deepak

    • @deepaknirmalya9084
      @deepaknirmalya9084 2 года назад

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

    • @RaghavPal
      @RaghavPal  2 года назад +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

  • @keerthi554
    @keerthi554 2 года назад

    how to add certificate on mac

    • @RaghavPal
      @RaghavPal  2 года назад

      can goto network settings

  • @poucxs9246
    @poucxs9246 6 дней назад

    How to set certificate for Jmeter 5.6.3 ruclips.net/video/g0OrP8x1Xg4/видео.html

    • @RaghavPal
      @RaghavPal  5 дней назад

      To set an SSL certificate for JMeter 5.6.3, follow these steps:
      Download the SSL Certificate:
      Get the certificate from the website (e.g., using your browser's "Export Certificate" option)
      Convert Certificate to .p12 or .jks Format (if needed):
      Use OpenSSL to convert the certificate to a .p12 format:
      openssl pkcs12 -export -in your-cert.crt -inkey your-private.key -out your-cert.p12 -name jmeter
      Configure JMeter to Use the Keystore:
      Open jmeter.properties (in the bin folder).
      Set the following properties to point to your keystore file:
      properties
      javax.net.ssl.keyStore=/path/to/your-cert.p12
      javax.net.ssl.keyStorePassword=your-keystore-password
      javax.net.ssl.keyStoreType=PKCS12 # Or JKS if using JKS format
      Restart JMeter and run your test.
      This should allow JMeter to trust and use the SSL certificate for HTTPS requests
      -