JMeter Script Recording Issue - Proxy Working, but No Recording












0















The current state of my JMeter setup and test plan is:




  • JMeter 5

  • Certificate Authority generated and imported into Firefox.

  • Checked that the port # in the HTTP(S) Test Script Recorder matches that in the proxy server set up in Firefox.

  • Have added a Recording Controller to my Thread Group.

  • Have added Cache and Cookie Managers to my Thread Group.

  • When I start the proxy server, i.e., Start the HTTP(S) Test Script Recorder, I can walk the example application I'm testing - including HTTPS requests. (And if the HTTP(S) Test Script Recorder is not started I get "The proxy server is refusing connections" message from Firefox.)

  • I have ensured that the selected Target Controller in the HTTP(S) Test Script Recorder is a recording controller I've added to my Thread Group.

  • No Sampler/Requests are being added under the Recording Controller.


Has anyone else encountered a situation in JMeter in which the proxy server seems to be working correctly but no sampler/requests are actually being recorded? And even if this case is novel, do you have any suggestions? Thank-you in advance for your advice.










share|improve this question























  • Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

    – Albert L Baker
    Nov 29 '18 at 0:34


















0















The current state of my JMeter setup and test plan is:




  • JMeter 5

  • Certificate Authority generated and imported into Firefox.

  • Checked that the port # in the HTTP(S) Test Script Recorder matches that in the proxy server set up in Firefox.

  • Have added a Recording Controller to my Thread Group.

  • Have added Cache and Cookie Managers to my Thread Group.

  • When I start the proxy server, i.e., Start the HTTP(S) Test Script Recorder, I can walk the example application I'm testing - including HTTPS requests. (And if the HTTP(S) Test Script Recorder is not started I get "The proxy server is refusing connections" message from Firefox.)

  • I have ensured that the selected Target Controller in the HTTP(S) Test Script Recorder is a recording controller I've added to my Thread Group.

  • No Sampler/Requests are being added under the Recording Controller.


Has anyone else encountered a situation in JMeter in which the proxy server seems to be working correctly but no sampler/requests are actually being recorded? And even if this case is novel, do you have any suggestions? Thank-you in advance for your advice.










share|improve this question























  • Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

    – Albert L Baker
    Nov 29 '18 at 0:34
















0












0








0








The current state of my JMeter setup and test plan is:




  • JMeter 5

  • Certificate Authority generated and imported into Firefox.

  • Checked that the port # in the HTTP(S) Test Script Recorder matches that in the proxy server set up in Firefox.

  • Have added a Recording Controller to my Thread Group.

  • Have added Cache and Cookie Managers to my Thread Group.

  • When I start the proxy server, i.e., Start the HTTP(S) Test Script Recorder, I can walk the example application I'm testing - including HTTPS requests. (And if the HTTP(S) Test Script Recorder is not started I get "The proxy server is refusing connections" message from Firefox.)

  • I have ensured that the selected Target Controller in the HTTP(S) Test Script Recorder is a recording controller I've added to my Thread Group.

  • No Sampler/Requests are being added under the Recording Controller.


Has anyone else encountered a situation in JMeter in which the proxy server seems to be working correctly but no sampler/requests are actually being recorded? And even if this case is novel, do you have any suggestions? Thank-you in advance for your advice.










share|improve this question














The current state of my JMeter setup and test plan is:




  • JMeter 5

  • Certificate Authority generated and imported into Firefox.

  • Checked that the port # in the HTTP(S) Test Script Recorder matches that in the proxy server set up in Firefox.

  • Have added a Recording Controller to my Thread Group.

  • Have added Cache and Cookie Managers to my Thread Group.

  • When I start the proxy server, i.e., Start the HTTP(S) Test Script Recorder, I can walk the example application I'm testing - including HTTPS requests. (And if the HTTP(S) Test Script Recorder is not started I get "The proxy server is refusing connections" message from Firefox.)

  • I have ensured that the selected Target Controller in the HTTP(S) Test Script Recorder is a recording controller I've added to my Thread Group.

  • No Sampler/Requests are being added under the Recording Controller.


Has anyone else encountered a situation in JMeter in which the proxy server seems to be working correctly but no sampler/requests are actually being recorded? And even if this case is novel, do you have any suggestions? Thank-you in advance for your advice.







jmeter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 '18 at 19:49









Albert L BakerAlbert L Baker

1




1













  • Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

    – Albert L Baker
    Nov 29 '18 at 0:34





















  • Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

    – Albert L Baker
    Nov 29 '18 at 0:34



















Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

– Albert L Baker
Nov 29 '18 at 0:34







Thank-you for your excellent suggestions. I started over with a new test plan and was able to record the script required. I was never able to debug the problem with the original script. Just a couple of notes and the excellent suggestions:have now reset log file for debug; I did start the new test plan from the template; my Firefox proxy and crt were generated and installed correctly. I will explore the suggested Chrome extension and Blazemeter. Thank-you all for your informative answers. ALB

– Albert L Baker
Nov 29 '18 at 0:34














4 Answers
4






active

oldest

votes


















0














You shouldn't create your own Test Script Recorder script, simply because you can make mistakes, just use predefined JMeter's template




  • Choose Menu: File -> Templates


  • (Recording is selected) Click Create



Your Recording script is set








share|improve this answer































    0
















    1. Take a look at jmeter.log file - if there is an issue with your setup you should get some clues regarding what's wrong from there. It is also a good idea to add the next line to log4j2.xml file:



      <Logger name="org.apache.jmeter.protocol.http.proxy" level="debug" /> 


      it will increase log level verbosity for the HTTP(S) Test Script Recorder




    2. Make sure your Firefox is configured to use the proxy for all protocols and there are no exclusions for localhost, 127.0.0.1 or your IP address/hostname



      enter image description here



    3. Try clearing your browsing history as it might be the case "stale" certificate is still present or something is cached.


    As the last resort be aware of an alternative way of recording a JMeter test using JMeter Chrome Extension - in this case you will not have to worry about proxies and SSL certificates.






    share|improve this answer































      0














      For script recording you can use Blazemeter plugin.
      For more information you can refer https://blog.e-zest.com/3-simple-ways-to-a-jmeter-script






      share|improve this answer































        0














        you need to add ApacheJMeterTemporaryRootCA certificate in your firefox by setting
        Go to tools > option > Certificate > View Certificate > import certificates.



        Now restart the firefox.






        share|improve this answer
























        • Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

          – Albert L Baker
          Dec 1 '18 at 0:13











        Your Answer






        StackExchange.ifUsing("editor", function () {
        StackExchange.using("externalEditor", function () {
        StackExchange.using("snippets", function () {
        StackExchange.snippets.init();
        });
        });
        }, "code-snippets");

        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "1"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53488024%2fjmeter-script-recording-issue-proxy-working-but-no-recording%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        You shouldn't create your own Test Script Recorder script, simply because you can make mistakes, just use predefined JMeter's template




        • Choose Menu: File -> Templates


        • (Recording is selected) Click Create



        Your Recording script is set








        share|improve this answer




























          0














          You shouldn't create your own Test Script Recorder script, simply because you can make mistakes, just use predefined JMeter's template




          • Choose Menu: File -> Templates


          • (Recording is selected) Click Create



          Your Recording script is set








          share|improve this answer


























            0












            0








            0







            You shouldn't create your own Test Script Recorder script, simply because you can make mistakes, just use predefined JMeter's template




            • Choose Menu: File -> Templates


            • (Recording is selected) Click Create



            Your Recording script is set








            share|improve this answer













            You shouldn't create your own Test Script Recorder script, simply because you can make mistakes, just use predefined JMeter's template




            • Choose Menu: File -> Templates


            • (Recording is selected) Click Create



            Your Recording script is set









            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 27 '18 at 6:58









            user7294900user7294900

            22.4k113360




            22.4k113360

























                0
















                1. Take a look at jmeter.log file - if there is an issue with your setup you should get some clues regarding what's wrong from there. It is also a good idea to add the next line to log4j2.xml file:



                  <Logger name="org.apache.jmeter.protocol.http.proxy" level="debug" /> 


                  it will increase log level verbosity for the HTTP(S) Test Script Recorder




                2. Make sure your Firefox is configured to use the proxy for all protocols and there are no exclusions for localhost, 127.0.0.1 or your IP address/hostname



                  enter image description here



                3. Try clearing your browsing history as it might be the case "stale" certificate is still present or something is cached.


                As the last resort be aware of an alternative way of recording a JMeter test using JMeter Chrome Extension - in this case you will not have to worry about proxies and SSL certificates.






                share|improve this answer




























                  0
















                  1. Take a look at jmeter.log file - if there is an issue with your setup you should get some clues regarding what's wrong from there. It is also a good idea to add the next line to log4j2.xml file:



                    <Logger name="org.apache.jmeter.protocol.http.proxy" level="debug" /> 


                    it will increase log level verbosity for the HTTP(S) Test Script Recorder




                  2. Make sure your Firefox is configured to use the proxy for all protocols and there are no exclusions for localhost, 127.0.0.1 or your IP address/hostname



                    enter image description here



                  3. Try clearing your browsing history as it might be the case "stale" certificate is still present or something is cached.


                  As the last resort be aware of an alternative way of recording a JMeter test using JMeter Chrome Extension - in this case you will not have to worry about proxies and SSL certificates.






                  share|improve this answer


























                    0












                    0








                    0









                    1. Take a look at jmeter.log file - if there is an issue with your setup you should get some clues regarding what's wrong from there. It is also a good idea to add the next line to log4j2.xml file:



                      <Logger name="org.apache.jmeter.protocol.http.proxy" level="debug" /> 


                      it will increase log level verbosity for the HTTP(S) Test Script Recorder




                    2. Make sure your Firefox is configured to use the proxy for all protocols and there are no exclusions for localhost, 127.0.0.1 or your IP address/hostname



                      enter image description here



                    3. Try clearing your browsing history as it might be the case "stale" certificate is still present or something is cached.


                    As the last resort be aware of an alternative way of recording a JMeter test using JMeter Chrome Extension - in this case you will not have to worry about proxies and SSL certificates.






                    share|improve this answer















                    1. Take a look at jmeter.log file - if there is an issue with your setup you should get some clues regarding what's wrong from there. It is also a good idea to add the next line to log4j2.xml file:



                      <Logger name="org.apache.jmeter.protocol.http.proxy" level="debug" /> 


                      it will increase log level verbosity for the HTTP(S) Test Script Recorder




                    2. Make sure your Firefox is configured to use the proxy for all protocols and there are no exclusions for localhost, 127.0.0.1 or your IP address/hostname



                      enter image description here



                    3. Try clearing your browsing history as it might be the case "stale" certificate is still present or something is cached.


                    As the last resort be aware of an alternative way of recording a JMeter test using JMeter Chrome Extension - in this case you will not have to worry about proxies and SSL certificates.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 27 '18 at 9:22









                    Dmitri TDmitri T

                    71.9k33662




                    71.9k33662























                        0














                        For script recording you can use Blazemeter plugin.
                        For more information you can refer https://blog.e-zest.com/3-simple-ways-to-a-jmeter-script






                        share|improve this answer




























                          0














                          For script recording you can use Blazemeter plugin.
                          For more information you can refer https://blog.e-zest.com/3-simple-ways-to-a-jmeter-script






                          share|improve this answer


























                            0












                            0








                            0







                            For script recording you can use Blazemeter plugin.
                            For more information you can refer https://blog.e-zest.com/3-simple-ways-to-a-jmeter-script






                            share|improve this answer













                            For script recording you can use Blazemeter plugin.
                            For more information you can refer https://blog.e-zest.com/3-simple-ways-to-a-jmeter-script







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 27 '18 at 18:18









                            Kishore E BhamareKishore E Bhamare

                            1




                            1























                                0














                                you need to add ApacheJMeterTemporaryRootCA certificate in your firefox by setting
                                Go to tools > option > Certificate > View Certificate > import certificates.



                                Now restart the firefox.






                                share|improve this answer
























                                • Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                  – Albert L Baker
                                  Dec 1 '18 at 0:13
















                                0














                                you need to add ApacheJMeterTemporaryRootCA certificate in your firefox by setting
                                Go to tools > option > Certificate > View Certificate > import certificates.



                                Now restart the firefox.






                                share|improve this answer
























                                • Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                  – Albert L Baker
                                  Dec 1 '18 at 0:13














                                0












                                0








                                0







                                you need to add ApacheJMeterTemporaryRootCA certificate in your firefox by setting
                                Go to tools > option > Certificate > View Certificate > import certificates.



                                Now restart the firefox.






                                share|improve this answer













                                you need to add ApacheJMeterTemporaryRootCA certificate in your firefox by setting
                                Go to tools > option > Certificate > View Certificate > import certificates.



                                Now restart the firefox.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Nov 28 '18 at 16:20









                                kalpeshkalpesh

                                165




                                165













                                • Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                  – Albert L Baker
                                  Dec 1 '18 at 0:13



















                                • Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                  – Albert L Baker
                                  Dec 1 '18 at 0:13

















                                Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                – Albert L Baker
                                Dec 1 '18 at 0:13





                                Thank-you for the assistance. I don't know what I did wrong / omitted when I was stuck, but I triple checked the certificate was correctly generated, current (not expired - I resent the associated parameter in the jmeter.properties file to have the cert good for 1 year), and correctly installed in Firefox. As I mentioned in my follow-up note, I started over using the recording template and all went well. But I do want to thank everyone for their prompt and informative suggestions. Had I more patience, am sure I would have tracked down my error - but, alas, time and patience ran out.

                                – Albert L Baker
                                Dec 1 '18 at 0:13


















                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53488024%2fjmeter-script-recording-issue-proxy-working-but-no-recording%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Futebolista

                                Lallio

                                Jornalista