7 | JMeter | Test Script Recorder |

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 142

  • @blastanoizz2
    @blastanoizz2 9 місяців тому +3

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

    • @RaghavPal
      @RaghavPal  9 місяців тому +1

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

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 8 місяців тому +1

    Thank you for your work, Raghav! Well done!

    • @RaghavPal
      @RaghavPal  8 місяців тому

      Most welcome Svetlana

  • @sureshkumarmadevan3011
    @sureshkumarmadevan3011 3 роки тому +1

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

  • @UmerFarooq_697
    @UmerFarooq_697 Рік тому

    Superb , nicely explained and handled the topic wisely

  • @shrutisankhyayan7316
    @shrutisankhyayan7316 6 місяців тому +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  6 місяців тому

      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.

  • @adityanetalkar2649
    @adityanetalkar2649 3 роки тому +4

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

    • @RaghavPal
      @RaghavPal  3 роки тому

      Thanks for watching Aditya

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

  • @Tanned_guy
    @Tanned_guy 25 днів тому

    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  24 дні тому +1

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

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

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

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

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

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

  • @chunji6489
    @chunji6489 10 місяців тому

    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  10 місяців тому +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.

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

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

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

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

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

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

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

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

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

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

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

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

  • @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 ❤️.

  • @rajesh9615
    @rajesh9615 9 місяців тому

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

    • @RaghavPal
      @RaghavPal  9 місяців тому

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

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

  • @princekeshari6934
    @princekeshari6934 2 роки тому

    Nice video sir

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

  • @_himanshu.fitness_
    @_himanshu.fitness_ 5 місяців тому

    for macOS ?
    how to install certificate

    • @RaghavPal
      @RaghavPal  5 місяців тому

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

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

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

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

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

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

  • @Sandesh-z8v
    @Sandesh-z8v 3 місяці тому

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

    • @RaghavPal
      @RaghavPal  3 місяці тому

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

  • @StevenLarkin
    @StevenLarkin 2 роки тому

    OK this was good very good
    thanks

  • @savithrisarnala4481
    @savithrisarnala4481 2 роки тому

    Hi sir 4gb ram system supports jmeter?

    • @RaghavPal
      @RaghavPal  2 роки тому

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

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

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

  • @snehalkhot5937
    @snehalkhot5937 3 роки тому

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

  • @javlontursunov6527
    @javlontursunov6527 2 роки тому

    Bro, thank you so much!

  • @Shiva_nevici
    @Shiva_nevici 15 днів тому

    thx man!

  • @keerthi554
    @keerthi554 2 роки тому

    how to add certificate on mac

    • @RaghavPal
      @RaghavPal  2 роки тому

      can goto network settings

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

  • @bujjisuni4468
    @bujjisuni4468 3 роки тому

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

  • @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
      ua-cam.com/video/7-NcyZuUQnw/v-deo.html
      ua-cam.com/video/3w0x6u4-6ng/v-deo.html

  • @GIEC_MSridhar
    @GIEC_MSridhar 2 роки тому

    🤩😘😘😘😘