Skip to content

Commit dbcc10b

Browse files
PR review comments and other Locust doc updates
1 parent c75cbb9 commit dbcc10b

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed
1.66 MB
Loading

articles/load-testing/quickstart-create-run-load-test-with-locust.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,15 @@ To create a load test for a Locust-based test in the Azure portal:
8787
| **Host endpoint** | (Optional) The HTTP endpoint URL. For example, https://www.contoso.com/products.|
8888
| **Test engine instances** | Select the number of parallel test engine instances. |
8989

90-
The optional inputs can be provided in the load configuration, in the Locust test script, or in the Locust configuration file. For more information, see [Configure for high scale loads](./how-to-high-scale-load.md)
90+
The optional inputs can be provided in the load configuration, in the Locust test script, or in the Locust configuration file. For more information, see [Configure for high scale loads](./how-to-high-scale-load.md)
9191

9292
1. Select **Review + create**. Review all settings, and then select **Create** to create the load test.
9393

9494
You can update the test configuration at any time, for example to upload a different Locust test file, or to modify the load parameters. Choose your test in the list of tests, and then select **Edit**.
9595

96+
> [!NOTE]
97+
> Azure Load Testing runs your Locust script in *LocalRunner* mode on all the engine instances.
98+
9699
## Run the load test
97100

98101

articles/load-testing/quickstart-create-run-load-tests-from-visual-studio-code.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ Learn how to use the Azure Load Testing extension for Visual Studio Code to easi
1616

1717
This quickstart guides you through generating, refining, and running realistic load tests. By the end, you have a fully functional load test script generated from a **Postman collection**, **Insomnia collection**, or **.http file**, enhanced with Copilot-powered improvements, and ready to scale in **Azure Load Testing**.
1818

19-
:::image type="content" source="./media/quickstart-create-run-load-tests-from-visual-studio-code/create-locust-test.gif" alt-text="Image sequence that shows the creation of a Locust script using Azure Load Testing VS Code extension" lightbox="./media/quickstart-create-run-load-tests-from-visual-studio-code/create-locust-test.gif":::
20-
2119
## Prerequisites
2220

2321
- Azure Load Testing extension for VS Code. [Download and install it here](https://aka.ms/malt-vscode/get).
2422
- GitHub Copilot. [Set up Copilot in VS Code](https://code.visualstudio.com/docs/copilot/setup) to generate and refine test scripts. If you don't have a subscription, you can activate a free trial.
2523
- Python & Locust. Required to run and validate your **Locust** test scripts locally from VS Code. [Install Locust here](https://docs.locust.io/en/stable/installation.html).
2624
- An Azure account with an active subscription. Needed to run load tests at scale in **Azure Load Testing**. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2725

28-
> [!NOTE]
26+
> [!TIP]
2927
> VS Code's GitHub Copilot Chat offers multiple AI models. You can switch models using the model picker in the chat input field. If you're unsure which one to use, we recommend GPT-4o.
3028
3129
If you'd like to run the HTTP file, you can install the [httpYac - Rest Client extension](https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac). However, this step is optional and not required for this quickstart.
@@ -55,7 +53,8 @@ You can generate a Locust script from any existing Postman collection, Insomnia
5553
- Import an .http file
5654
- Simple HTTP request - If you don't have a Postman collection or HTTP file, select **Simple HTTP request...** and enter a website URL.
5755

58-
**Tip:** Using a **Postman collection**, **Insomnia collection** or **.http file** is recommended, as it allows Copilot to extract multiple API operations, request data, and authentication details to create a more realistic load test.
56+
> [!TIP]
57+
> Using a **Postman collection**, **Insomnia collection** or **.http file** is recommended, as it allows Copilot to extract multiple API operations, request data, and authentication details to create a more realistic load test.
5958
6059
1. Select the sample file which you saved earlier to your workspace: [**`petstore-sample.http`**](https://aka.ms/malt-vscode/http-sample).
6160

@@ -122,7 +121,7 @@ To quickly validate your test, run it locally using Locust from **Visual Studio
122121

123122
:::image type="content" source="./media/quickstart-create-run-load-tests-from-visual-studio-code/locust-web-ui.png" alt-text="Screenshot that shows the Locust web UI to view and analyze test results locally." lightbox="./media/quickstart-create-run-load-tests-from-visual-studio-code/locust-web-ui.png":::
124123

125-
> [!NOTE]
124+
> [!TIP]
126125
> If Locust reports failures for the `Retrieve Pet` and `Update Pet` requests, it may be due to how the Pet Store API processes requests. Try asking Copilot to "**Add random delays between requests in run_scenario**". If you suspect an issue with the script itself, set `DEBUG_MODE=True` as an environment variable and rerun the test to get more detailed debug information.
127126
128127
If you prefer running the test from a **VS Code Terminal**:
@@ -169,10 +168,10 @@ To execute a large-scale test:
169168

170169
1. When the test starts, a notification (toast message) appears in the bottom-right corner. Click the **Open in Azure Portal** button to monitor test execution in real time.
171170

172-
> [!NOTE]
173-
> To quickly access test results from previous runs, use the command: **Load Testing: View load test runs**.
171+
:::image type="content" source="./media/quickstart-create-run-load-tests-from-visual-studio-code/run-load-test-azure.png" alt-text="Screenshot that shows the load test results in Azure Load Testing." lightbox="./media/quickstart-create-run-load-tests-from-visual-studio-code/run-load-test-azure.png":::
174172

175-
:::image type="content" source="./media/quickstart-create-run-load-tests-from-visual-studio-code/run-load-test-azure.gif" alt-text="Image sequence that shows the test results dashboard in Azure Load Testing." lightbox="./media/quickstart-create-run-load-tests-from-visual-studio-code/run-load-test-azure.gif":::
173+
> [!TIP]
174+
> To quickly access test results from previous runs, use the command: **Load Testing: View load test runs**.
176175

177176
## Next Steps
178177

0 commit comments

Comments
 (0)