|
1 | 1 | ---
|
2 |
| -title: Parameterize load tests with secrets and environment variables |
| 2 | +title: Use secrets & environment variables |
3 | 3 | titleSuffix: Azure Load Testing
|
4 | 4 | description: 'Learn how to create configurable load tests by using secrets and environment variables as parameters in Azure Load Testing.'
|
5 | 5 | services: load-testing
|
6 | 6 | ms.service: load-testing
|
7 | 7 | ms.author: ninallam
|
8 | 8 | author: ninallam
|
9 |
| -ms.date: 01/15/2023 |
| 9 | +ms.date: 01/16/2024 |
10 | 10 | ms.topic: how-to
|
11 | 11 | ---
|
12 | 12 |
|
13 |
| -# Create configurable load tests with secrets and environment variables |
| 13 | +# Use secrets and environment variables in Azure Load Testing |
14 | 14 |
|
15 |
| -Learn how to change the behavior of a load test without having to edit the Apache JMeter script. With Azure Load Testing, you can use parameters to make a configurable test script. For example, turn the application endpoint into a parameter to reuse your test script across multiple environments. |
| 15 | +In this article, you learn how to pass secrets and environments as parameters to a load test in Azure Load Testing. You can use parameters to change the behavior of a load test without having to edit the Apache JMeter script. For example, to test a web application, specify the endpoint URL as a parameter to reuse your test script across multiple environments. You can also use parameters to avoid that you have to hard code sensitive information in the JMeter test script. |
16 | 16 |
|
17 | 17 | The Azure Load Testing service supports two types of parameters:
|
18 | 18 |
|
19 | 19 | - **Secrets**: Contain sensitive information and are passed securely to the load test engine. For example, secrets provide web service credentials instead of hard-coding them in the test script. For more information, see [Configure load tests with secrets](#secrets).
|
20 | 20 |
|
21 | 21 | - **Environment variables**: Contain non-sensitive information and are available as environment variables in the load test engine. For example, environment variables make the application endpoint URL configurable. For more information, see [Configure load tests with environment variables](#envvars).
|
22 | 22 |
|
| 23 | +You can specify parameters in the load test configuration when you create a new test or update an existing test. If you run a load test in your CI/CD workflow, you define parameters in the load test configuration file or in the CI/CD workflow definition. |
| 24 | + |
23 | 25 | ## Prerequisites
|
24 | 26 |
|
25 | 27 | - An Azure account with an active subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
|
@@ -318,10 +320,7 @@ If a parameter exists in both the YAML configuration file and the Azure Load Tes
|
318 | 320 |
|
319 | 321 | The values of the parameters aren't stored when they're passed from the CI/CD workflow. You have to provide the parameter values again when you run the test from the Azure portal. You get a prompt to enter the missing values. For secret values, you enter the key vault secret URI. The values that you enter at the test run or rerun page are valid only for that test run. For making changes at the test level, go to **Configure Test** and enter your parameter values.
|
320 | 322 |
|
321 |
| -## Next steps |
| 323 | +## Related content |
322 | 324 |
|
| 325 | +- Use secrets to [load test secured endpoints](./how-to-test-secured-endpoints.md). |
323 | 326 | - For more information about reading CSV files, see [Read CSV files in load tests](./how-to-read-csv-data.md).
|
324 |
| - |
325 |
| -- For information about high-scale load tests, see [Set up a high-scale load test](./how-to-high-scale-load.md). |
326 |
| - |
327 |
| -- To learn about performance test automation, see [Configure automated performance testing](./quickstart-add-load-test-cicd.md). |
0 commit comments