How to pass the URL as a parameter to a JMeter Load Test execution in Azure DevOps?
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
add a comment |
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
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
add a comment |
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
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
jmeter azure-devops
asked Nov 12 '18 at 5:39
Gabriel CGabriel 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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Looking into Azure DevOps documentation it is possible to provide "Supporting Files"
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()
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Looking into Azure DevOps documentation it is possible to provide "Supporting Files"
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()
add a comment |
Looking into Azure DevOps documentation it is possible to provide "Supporting Files"
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()
add a comment |
Looking into Azure DevOps documentation it is possible to provide "Supporting Files"
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()
Looking into Azure DevOps documentation it is possible to provide "Supporting Files"
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()
answered Nov 12 '18 at 6:11
Dmitri TDmitri T
69.5k33458
69.5k33458
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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