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-tests-from-visual-studio-code.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,6 @@ This quickstart guides you through generating, refining, and running realistic l
26
26
> [!TIP]
27
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.
28
28
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.
30
-
31
29
## Open the walkthrough
32
30
33
31
To get started, open the command palette in VS Code and run: **Load Testing: Open Walkthrough**. This walkthrough provides the key entry points of the extension.
@@ -43,20 +41,13 @@ You can also access the features directly from the command palette by using the
43
41
44
42
You can generate a Locust script from any existing Postman collection, Insomnia collection, or .http file. If the file contains multiple requests, Copilot attempts to sequence them into a cohesive scenario.
45
43
46
-
1. For this quickstart, download and save the [sample PetStore .http file](https://aka.ms/malt-vscode/http-sample) in your current VS Code workspace.
47
-
48
44
1. Click the **Create a Load Test** button in the walkthrough, or run **Load Testing: Create Locust test** from the command palette.
49
45
50
-
1. Choose how you want to generate your test script:
51
-
- Import a Postman collection
52
-
- Import a Insomnia collection
53
-
- Import an .http file
54
-
- Simple HTTP request - If you don't have a Postman collection or HTTP file, select **Simple HTTP request...** and enter a website URL.
55
-
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.
46
+
1. You can choose the source to auto-generate a Locust test script:
47
+
- Selecting a **Postman collection**, **Insomnia collection**, or **.http file** lets Copilot extract multiple API operations, request data, and authentication details—creating a more complete and realistic load test.
48
+
- Choosing **Single URL** allows you to enter a single endpoint URL, generating a simple script you can customize or expand.
58
49
59
-
1.Select the sample file which you saved earlier to your workspace: [**`petstore-sample.http`**](https://aka.ms/malt-vscode/http-sample).
50
+
1.**For this walkthrough**, you can select **Try Sample: Pet Shop API**, which uses the [**`petstore-sample.http`**](https://aka.ms/malt-vscode/http-sample) file to generate a sample Locust test script.
60
51
61
52
1. Copilot analyzes the selected file and generate a **Locust-based load test script**, automatically sequencing API requests to simulate real-world usage and handling authentication securely.
62
53
@@ -201,4 +192,4 @@ You can further expand the load test to also monitor server-side metrics of the
201
192
## Related content
202
193
203
194
- Learn how to [monitor server-side metrics for your application](./how-to-monitor-server-side-metrics.md).
204
-
- Learn how to configure [automated performance testing with CI/CD](./how-to-configure-load-test-cicd.md).
195
+
- Learn how to configure [automated performance testing with CI/CD](./how-to-configure-load-test-cicd.md).
0 commit comments