Skip to content

Commit af9ae75

Browse files
authored
Merge pull request #213326 from ntrogh/alt-create-jmeter
[Azure Load Testing] Added JMeter script creation info
2 parents be47fbe + bf9dddc commit af9ae75

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

articles/load-testing/how-to-create-and-run-load-test-with-jmeter-script.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: load-testing
77
ms.topic: how-to
88
author: ntrogh
99
ms.author: nicktrog
10-
ms.date: 06/10/2022
10+
ms.date: 10/02/2022
1111
adobe-target: true
1212
---
1313

@@ -34,9 +34,11 @@ Use cases for creating a load test with an existing JMeter script include:
3434

3535
## Create an Apache JMeter script
3636

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

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:
4042

4143
1. Create a *SampleTest.jmx* file on your local machine:
4244

@@ -78,7 +80,7 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
7880
</ThreadGroup>
7981
<hashTree>
8082
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP request" enabled="true">
81-
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
83+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="Sample web test" enabled="true">
8284
<collectionProp name="Arguments.arguments"/>
8385
</elementProp>
8486
<stringProp name="HTTPSampler.domain"></stringProp>
@@ -113,10 +115,9 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
113115
114116
## Create a load test
115117
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.
117119
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.
120121
121122
To create a load test using an existing JMeter script in the Azure portal:
122123
@@ -139,14 +140,11 @@ To create a load test using an existing JMeter script in the Azure portal:
139140
140141
1. Select **Review + create**. Review all settings, and then select **Create** to create the load test.
141142
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**.
146144
147145
## Run the load test
148146
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.
150148
151149
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:
152150
@@ -161,14 +159,16 @@ If you selected **Run test after creation**, your load test will start automatic
161159
> [!TIP]
162160
> You can stop a load test at any time from the Azure portal.
163161
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.
165163
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." :::
167165
168-
## Next steps
166+
Use the run statistics and error information to identify performance and stability issues for your application under load.
169167
170-
- To learn more about [creating and managing tests](./how-to-create-manage-test.md).
168+
## Next steps
171169
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.
173171
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

Comments
 (0)