jmeter how to record http(s) script recorder for uploading xml file












2















jmeter 5.0 windows 10



I am using jmeter to load test a localhost:5000 app and want to record it using htts test script recorder
I go file-->templates-->select template --create and it scaffolds a test for me
I then go to firefox and go to proxy and change setting and also install the certificate



I then click on the http(s) test script recorder on the left and hit the start button which results in a pop up to install the certificate



then there is another pop up enter image description here



what values should i be selecting in html sampler setting and the highlighted



this is what I want to achieve



go to http://localhost:5000/
then upload a xml file(I have stored it in my jmeter/bin dir) and get a multi checkbox item results back
then check some of the check boxes and then hit submit button










share|improve this question



























    2















    jmeter 5.0 windows 10



    I am using jmeter to load test a localhost:5000 app and want to record it using htts test script recorder
    I go file-->templates-->select template --create and it scaffolds a test for me
    I then go to firefox and go to proxy and change setting and also install the certificate



    I then click on the http(s) test script recorder on the left and hit the start button which results in a pop up to install the certificate



    then there is another pop up enter image description here



    what values should i be selecting in html sampler setting and the highlighted



    this is what I want to achieve



    go to http://localhost:5000/
    then upload a xml file(I have stored it in my jmeter/bin dir) and get a multi checkbox item results back
    then check some of the check boxes and then hit submit button










    share|improve this question

























      2












      2








      2








      jmeter 5.0 windows 10



      I am using jmeter to load test a localhost:5000 app and want to record it using htts test script recorder
      I go file-->templates-->select template --create and it scaffolds a test for me
      I then go to firefox and go to proxy and change setting and also install the certificate



      I then click on the http(s) test script recorder on the left and hit the start button which results in a pop up to install the certificate



      then there is another pop up enter image description here



      what values should i be selecting in html sampler setting and the highlighted



      this is what I want to achieve



      go to http://localhost:5000/
      then upload a xml file(I have stored it in my jmeter/bin dir) and get a multi checkbox item results back
      then check some of the check boxes and then hit submit button










      share|improve this question














      jmeter 5.0 windows 10



      I am using jmeter to load test a localhost:5000 app and want to record it using htts test script recorder
      I go file-->templates-->select template --create and it scaffolds a test for me
      I then go to firefox and go to proxy and change setting and also install the certificate



      I then click on the http(s) test script recorder on the left and hit the start button which results in a pop up to install the certificate



      then there is another pop up enter image description here



      what values should i be selecting in html sampler setting and the highlighted



      this is what I want to achieve



      go to http://localhost:5000/
      then upload a xml file(I have stored it in my jmeter/bin dir) and get a multi checkbox item results back
      then check some of the check boxes and then hit submit button







      python-3.x performance file-upload jmeter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 0:52









      user17970user17970

      608




      608
























          1 Answer
          1






          active

          oldest

          votes


















          0
















          1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:



            enter image description here



            If you set something as the prefix - it will be added to each sampler name



            enter image description here



          2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.



          3. Just in case make sure your Firefox proxy settings look like:



            enter image description here



            to wit:




            • proxy is being used for all protocols

            • no exclusions are being made



          4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.






          share|improve this answer
























          • After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

            – user17970
            Nov 20 '18 at 18:30











          • Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

            – ABCDEFG
            Nov 29 '18 at 16:34











          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%2f53384713%2fjmeter-how-to-record-https-script-recorder-for-uploading-xml-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0
















          1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:



            enter image description here



            If you set something as the prefix - it will be added to each sampler name



            enter image description here



          2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.



          3. Just in case make sure your Firefox proxy settings look like:



            enter image description here



            to wit:




            • proxy is being used for all protocols

            • no exclusions are being made



          4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.






          share|improve this answer
























          • After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

            – user17970
            Nov 20 '18 at 18:30











          • Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

            – ABCDEFG
            Nov 29 '18 at 16:34
















          0
















          1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:



            enter image description here



            If you set something as the prefix - it will be added to each sampler name



            enter image description here



          2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.



          3. Just in case make sure your Firefox proxy settings look like:



            enter image description here



            to wit:




            • proxy is being used for all protocols

            • no exclusions are being made



          4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.






          share|improve this answer
























          • After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

            – user17970
            Nov 20 '18 at 18:30











          • Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

            – ABCDEFG
            Nov 29 '18 at 16:34














          0












          0








          0









          1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:



            enter image description here



            If you set something as the prefix - it will be added to each sampler name



            enter image description here



          2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.



          3. Just in case make sure your Firefox proxy settings look like:



            enter image description here



            to wit:




            • proxy is being used for all protocols

            • no exclusions are being made



          4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.






          share|improve this answer















          1. Prefix - is just a string which will be added to the generated HTTP Request sampler labels. If you don't provide any prefix you will have the names like 1, 2, 3, 4, etc.:



            enter image description here



            If you set something as the prefix - it will be added to each sampler name



            enter image description here



          2. Create new transaction after request (ms) - if you put i.e. 5000 into this field and during recording you will not click anywhere for 5+ seconds - JMeter will put all subsequent requests into a new Transaction Controller. Transaction Controller's main function is to measure the total child of its children. for example on the above image foo10 is the Transaction Controller and it will measure the cumulative time of execution of samplers from foo10 to foo17 and report it as a single transaction. For example you can have your whole sequence as a single transaction or have 2 separate transactions: upload file and submit.



          3. Just in case make sure your Firefox proxy settings look like:



            enter image description here



            to wit:




            • proxy is being used for all protocols

            • no exclusions are being made



          4. You should be importing certificate into the Firefox after starting the proxy as the certificate has limited life time span (7 days) and if you will not be recording for more than 7 days you will not be able to use the certificate anymore without regenerating it. So make sure that "fresh" certificate is imported into the Firefox.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 '18 at 7:12









          Dmitri TDmitri T

          69.7k33458




          69.7k33458













          • After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

            – user17970
            Nov 20 '18 at 18:30











          • Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

            – ABCDEFG
            Nov 29 '18 at 16:34



















          • After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

            – user17970
            Nov 20 '18 at 18:30











          • Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

            – ABCDEFG
            Nov 29 '18 at 16:34

















          After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

          – user17970
          Nov 20 '18 at 18:30





          After struggling with Jmeter for half a day, some one else recommended badboy software and its very simple to use and to top it you can export from badboy to jmeter , and I do not work for Badboy software and not connected to it in any way

          – user17970
          Nov 20 '18 at 18:30













          Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

          – ABCDEFG
          Nov 29 '18 at 16:34





          Thank you Dmitri T for providing solution. I am also facing same issue and I did not see this window in previous Jmeter versions. after entering these values as well, the pop up is not going away. Is there a way to disable this pop up and work normally as other Jmeter version?

          – ABCDEFG
          Nov 29 '18 at 16:34


















          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%2f53384713%2fjmeter-how-to-record-https-script-recorder-for-uploading-xml-file%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

          Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

          Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

          A Topological Invariant for $pi_3(U(n))$