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/how-to-create-and-run-load-test-with-jmeter-script.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: load-testing
7
7
ms.topic: how-to
8
8
author: ntrogh
9
9
ms.author: nicktrog
10
-
ms.date: 06/10/2022
10
+
ms.date: 10/02/2022
11
11
adobe-target: true
12
12
---
13
13
@@ -34,9 +34,11 @@ Use cases for creating a load test with an existing JMeter script include:
34
34
35
35
## Create an Apache JMeter script
36
36
37
-
If you don't have an existing Apache JMeter script, you'll create a sample script to load test a single web application endpoint. For more information about creating an Apache JMeter script, see [Getting started with Apache JMeter](https://jmeter.apache.org/usermanual/get-started.html).
37
+
If you already have a script, you can skip to [Create a load test](#create-a-load-test). In this section, you'll create a sample JMeter test script to load test a single web endpoint.
38
38
39
-
If you already have a script, you can skip to [Create a load test](#create-a-load-test).
39
+
You can also use the [Apache JMeter test script recorder](https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html) to record the requests while navigating the application in a browser. Alternatively, [import cURL commands](https://jmeter.apache.org/usermanual/curl.html) to generate the requests in the JMeter test script.
40
+
41
+
To create a sample JMeter test script:
40
42
41
43
1. Create a *SampleTest.jmx* file on your local machine:
42
44
@@ -78,7 +80,7 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
@@ -113,10 +115,9 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
113
115
114
116
## Create a load test
115
117
116
-
To create a load test in Azure Load Testing, you have to specify a JMeter script. This script defines the [test plan](./how-to-create-manage-test.md#test-plan) for the load test. You can create multiple load tests in an Azure Load Testing resource.
118
+
When you create a load test in Azure Load Testing, you specify a JMeter script to define the [load test plan](./how-to-create-manage-test.md#test-plan). An Azure Load Testing resource can contain multiple load tests.
117
119
118
-
> [!NOTE]
119
-
> When you [create a quick test by using a URL](./quickstart-create-and-run-load-test.md), Azure Load Testing automatically generates the JMeter script.
120
+
When you [create a quick test by using a URL](./quickstart-create-and-run-load-test.md), Azure Load Testing automatically generates the corresponding JMeter script.
120
121
121
122
To create a load test using an existing JMeter script in the Azure portal:
122
123
@@ -139,14 +140,11 @@ To create a load test using an existing JMeter script in the Azure portal:
139
140
140
141
1. Select **Review + create**. Review all settings, and then select **Create** to create the load test.
141
142
142
-
:::image type="content" source="./media/how-to-create-and-run-load-test-with-jmeter-script/create-new-test-review.png" alt-text="Screenshot that shows the tab for reviewing and creating a test." :::
143
-
144
-
> [!NOTE]
145
-
> You can update the test configuration at any time, for example to upload a different JMX file. Choose your test in the list of tests, and then select **Edit**.
143
+
You can update the test configuration at any time, for example to upload a different JMX file. Choose your test in the list of tests, and then select **Edit**.
146
144
147
145
## Run the load test
148
146
149
-
When Azure Load Testing starts your load test, it will first deploy the JMeter script and any other files onto test engine instances and run the test.
147
+
When Azure Load Testing starts your load test, it will first deploy the JMeter script, and any other files onto test engine instances, and then start the load test.
150
148
151
149
If you selected **Run test after creation**, your load test will start automatically. To manually start the load test you created earlier, perform the following steps:
152
150
@@ -161,14 +159,16 @@ If you selected **Run test after creation**, your load test will start automatic
161
159
> [!TIP]
162
160
> You can stop a load test at any time from the Azure portal.
163
161
164
-
While the test runs and after it finishes, you can view the test run details, statistics, and metrics in the test run dashboard.
162
+
1. Notice the test run details, statistics, and client metrics in the Azure portal.
165
163
166
-
:::image type="content" source="./media/how-to-create-and-run-load-test-with-jmeter-script/test-run-aggregated-by-percentile.png" alt-text="Screenshot that shows the test run dashboard." :::
164
+
:::image type="content" source="./media/how-to-create-and-run-load-test-with-jmeter-script/test-run-aggregated-by-percentile.png" alt-text="Screenshot that shows the test run dashboard." :::
167
165
168
-
## Next steps
166
+
Use the run statistics and error information to identify performance and stability issues for your application under load.
169
167
170
-
- To learn more about [creating and managing tests](./how-to-create-manage-test.md).
168
+
## Next steps
171
169
172
-
- To learn how to export test results, see [Export test results](./how-to-export-test-results.md).
170
+
You've created a cloud-based load test based on an existing JMeter test script. For Azure-hosted applications, you can also [monitor server-side metrics](./how-to-monitor-server-side-metrics.md) for further application insights.
173
171
174
-
- To learn how to monitor server side metrics, see [Monitor server side metrics](./how-to-monitor-server-side-metrics.md).
172
+
- Learn how to [export test results](./how-to-export-test-results.md).
173
+
- Learn how to [parameterize a load test with environment variables](./how-to-parameterize-load-tests.md).
174
+
- Learn how to [configure your test for high-scale load](./how-to-high-scale-load.md).
0 commit comments