You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-testing/quickstart-create-run-load-test-with-locust.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,12 +87,15 @@ To create a load test for a Locust-based test in the Azure portal:
87
87
|**Host endpoint**| (Optional) The HTTP endpoint URL. For example, https://www.contoso.com/products.|
88
88
|**Test engine instances**| Select the number of parallel test engine instances. |
89
89
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)
91
91
92
92
1. Select **Review + create**. Review all settings, and then select **Create** to create the load test.
93
93
94
94
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**.
95
95
96
+
> [!NOTE]
97
+
> Azure Load Testing runs your Locust script in *LocalRunner* mode on all the engine instances.
Copy file name to clipboardExpand all lines: articles/load-testing/quickstart-create-run-load-tests-from-visual-studio-code.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,14 @@ Learn how to use the Azure Load Testing extension for Visual Studio Code to easi
16
16
17
17
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**.
18
18
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
-
21
19
## Prerequisites
22
20
23
21
- Azure Load Testing extension for VS Code. [Download and install it here](https://aka.ms/malt-vscode/get).
24
22
- 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.
25
23
- 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).
26
24
- 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).
27
25
28
-
> [!NOTE]
26
+
> [!TIP]
29
27
> 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.
30
28
31
29
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
55
53
- Import an .http file
56
54
- Simple HTTP request - If you don't have a Postman collection or HTTP file, select **Simple HTTP request...** and enter a website URL.
57
55
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.
59
58
60
59
1. Select the sample file which you saved earlier to your workspace: [**`petstore-sample.http`**](https://aka.ms/malt-vscode/http-sample).
61
60
@@ -122,7 +121,7 @@ To quickly validate your test, run it locally using Locust from **Visual Studio
122
121
123
122
:::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":::
124
123
125
-
> [!NOTE]
124
+
> [!TIP]
126
125
> 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.
127
126
128
127
If you prefer running the test from a **VS Code Terminal**:
@@ -169,10 +168,10 @@ To execute a large-scale test:
169
168
170
169
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.
171
170
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":::
174
172
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**.
0 commit comments