Skip to content

Commit 5787263

Browse files
committed
Update Params & secrets for content freshness
1 parent 226dc8a commit 5787263

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

articles/load-testing/how-to-parameterize-load-tests.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
---
2-
title: Parameterize load tests with secrets and environment variables
2+
title: Use secrets & environment variables
33
titleSuffix: Azure Load Testing
44
description: 'Learn how to create configurable load tests by using secrets and environment variables as parameters in Azure Load Testing.'
55
services: load-testing
66
ms.service: load-testing
77
ms.author: ninallam
88
author: ninallam
9-
ms.date: 01/15/2023
9+
ms.date: 01/16/2024
1010
ms.topic: how-to
1111
---
1212

13-
# Create configurable load tests with secrets and environment variables
13+
# Use secrets and environment variables in Azure Load Testing
1414

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.
1616

1717
The Azure Load Testing service supports two types of parameters:
1818

1919
- **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).
2020

2121
- **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).
2222

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+
2325
## Prerequisites
2426

2527
- 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
318320

319321
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.
320322

321-
## Next steps
323+
## Related content
322324

325+
- Use secrets to [load test secured endpoints](./how-to-test-secured-endpoints.md).
323326
- 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

Comments
 (0)