How to pass the URL as a parameter to a JMeter Load Test execution in Azure DevOps?












0














Azure DevOps offers us the possibility of running Load Tests in the Cloud. Thus, we can use multiple servers to hit the web app under test from different locations.



The Azure DevOps UI allows us to upload a JMeter test file, plus some supporting files, like CSV files that will be used by the test.



When we develop the test, we'll most certainly be running JMeter against a locally running application, to make sure our requests are properly formatted and are hitting the application as desired. Thus, we'll be running JMeter locally against localhost:.



When we upload the test plan file to Azure DevOps, we'll expect the test to run against the application that is deployed to Azure App Services (for example). Hard-coding the URL in the test plan is quite inconvenient. Isn't there a way to make Azure DevOps pass this a parameter to JMeter before the load test runs?



JMeter accepts variables to be defined in the local environment, outside of the test plan, but the Load Test UI in Azure DevOps doesn't seem to support this.










share|improve this question






















  • Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
    – M Navneet Krishna
    Nov 12 '18 at 7:24
















0














Azure DevOps offers us the possibility of running Load Tests in the Cloud. Thus, we can use multiple servers to hit the web app under test from different locations.



The Azure DevOps UI allows us to upload a JMeter test file, plus some supporting files, like CSV files that will be used by the test.



When we develop the test, we'll most certainly be running JMeter against a locally running application, to make sure our requests are properly formatted and are hitting the application as desired. Thus, we'll be running JMeter locally against localhost:.



When we upload the test plan file to Azure DevOps, we'll expect the test to run against the application that is deployed to Azure App Services (for example). Hard-coding the URL in the test plan is quite inconvenient. Isn't there a way to make Azure DevOps pass this a parameter to JMeter before the load test runs?



JMeter accepts variables to be defined in the local environment, outside of the test plan, but the Load Test UI in Azure DevOps doesn't seem to support this.










share|improve this question






















  • Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
    – M Navneet Krishna
    Nov 12 '18 at 7:24














0












0








0







Azure DevOps offers us the possibility of running Load Tests in the Cloud. Thus, we can use multiple servers to hit the web app under test from different locations.



The Azure DevOps UI allows us to upload a JMeter test file, plus some supporting files, like CSV files that will be used by the test.



When we develop the test, we'll most certainly be running JMeter against a locally running application, to make sure our requests are properly formatted and are hitting the application as desired. Thus, we'll be running JMeter locally against localhost:.



When we upload the test plan file to Azure DevOps, we'll expect the test to run against the application that is deployed to Azure App Services (for example). Hard-coding the URL in the test plan is quite inconvenient. Isn't there a way to make Azure DevOps pass this a parameter to JMeter before the load test runs?



JMeter accepts variables to be defined in the local environment, outside of the test plan, but the Load Test UI in Azure DevOps doesn't seem to support this.










share|improve this question













Azure DevOps offers us the possibility of running Load Tests in the Cloud. Thus, we can use multiple servers to hit the web app under test from different locations.



The Azure DevOps UI allows us to upload a JMeter test file, plus some supporting files, like CSV files that will be used by the test.



When we develop the test, we'll most certainly be running JMeter against a locally running application, to make sure our requests are properly formatted and are hitting the application as desired. Thus, we'll be running JMeter locally against localhost:.



When we upload the test plan file to Azure DevOps, we'll expect the test to run against the application that is deployed to Azure App Services (for example). Hard-coding the URL in the test plan is quite inconvenient. Isn't there a way to make Azure DevOps pass this a parameter to JMeter before the load test runs?



JMeter accepts variables to be defined in the local environment, outside of the test plan, but the Load Test UI in Azure DevOps doesn't seem to support this.







jmeter azure-devops






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 5:39









Gabriel C

4031417




4031417












  • Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
    – M Navneet Krishna
    Nov 12 '18 at 7:24


















  • Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
    – M Navneet Krishna
    Nov 12 '18 at 7:24
















Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
– M Navneet Krishna
Nov 12 '18 at 7:24




Hey Gabriel. I don't think dynamically & automatically you can pass the URL to the test plan after the App is deployed. Based on my experience with AWS, I am sure there is a possibility to get the URL/IP address where the application gets dynamically deployed using some API. Probably you can include that request as part of JMeter test plan and correlate its response to feed it into subsequent requests. However, if we are looking at static IPs, am wondering why you would not want to pass them as yet another supporting file after parameterizing the URL.
– M Navneet Krishna
Nov 12 '18 at 7:24












1 Answer
1






active

oldest

votes


















0














Looking into Azure DevOps documentation it is possible to provide "Supporting Files"



enter image description here



So you can put your URL(s) into i.e. CSV file and load it inside your JMeter test using one of the following approaches:




  • CSV Data Set Config


  • __FileToString()

  • __CSVRead()






share|improve this answer





















    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%2f53256449%2fhow-to-pass-the-url-as-a-parameter-to-a-jmeter-load-test-execution-in-azure-devo%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














    Looking into Azure DevOps documentation it is possible to provide "Supporting Files"



    enter image description here



    So you can put your URL(s) into i.e. CSV file and load it inside your JMeter test using one of the following approaches:




    • CSV Data Set Config


    • __FileToString()

    • __CSVRead()






    share|improve this answer


























      0














      Looking into Azure DevOps documentation it is possible to provide "Supporting Files"



      enter image description here



      So you can put your URL(s) into i.e. CSV file and load it inside your JMeter test using one of the following approaches:




      • CSV Data Set Config


      • __FileToString()

      • __CSVRead()






      share|improve this answer
























        0












        0








        0






        Looking into Azure DevOps documentation it is possible to provide "Supporting Files"



        enter image description here



        So you can put your URL(s) into i.e. CSV file and load it inside your JMeter test using one of the following approaches:




        • CSV Data Set Config


        • __FileToString()

        • __CSVRead()






        share|improve this answer












        Looking into Azure DevOps documentation it is possible to provide "Supporting Files"



        enter image description here



        So you can put your URL(s) into i.e. CSV file and load it inside your JMeter test using one of the following approaches:




        • CSV Data Set Config


        • __FileToString()

        • __CSVRead()







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 6:11









        Dmitri T

        69k33458




        69k33458






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f53256449%2fhow-to-pass-the-url-as-a-parameter-to-a-jmeter-load-test-execution-in-azure-devo%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







            這個網誌中的熱門文章

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud

            Zucchini