Skip to content

Commit 04da311

Browse files
committed
Update sample references
1 parent 9d7c362 commit 04da311

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,28 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
3838

3939
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.
4040

41-
To create a sample JMeter test script:
41+
To get started with a sample JMeter script:
4242

43-
1. Create a *SampleTest.jmx* file on your local machine:
43+
1. [Clone or download the samples project from GitHub](https://github.com/Azure-Samples/azure-load-testing-samples/tree/main/jmeter-basic-endpoint)
4444

45-
```powershell
46-
touch SampleTest.jmx
47-
```
48-
49-
1. Open *SampleTest.jmx* in a text editor and paste the following code snippet in the file:
45+
1. Open the *SampleTest.jmx* file in a text editor.
5046

5147
This script simulates a load test of five virtual users that simultaneously access a web endpoint, and takes 2 minutes to complete.
5248

53-
:::code language="xml" source="~/azure-load-testing-samples/jmeter-basic-endpoint/sample.jmx" highlight="33,37":::
49+
1. Set the value of the `HTTPSampler.domain` node to the host name of your endpoint.
5450

55-
1. In the file, set the value of the `HTTPSampler.domain` node to the host name of your endpoint. For example, if you want to test the endpoint `https://www.contoso.com/app/products`, the host name is `www.contoso.com`.
51+
For example, if you want to test the endpoint `https://www.contoso.com/app/products`, the host name is `www.contoso.com`.
5652

57-
> [!IMPORTANT]
53+
> [!CAUTION]
5854
> Don't include `https` or `http` in the endpoint URL.
5955
60-
1. In the file, set the value of the `HTTPSampler.path` node to the path of your endpoint. For example, the path for the URL `https://www.contoso.com/app/products` is `/app/products`.
56+
:::code language="xml" source="~/azure-load-testing-samples/jmeter-basic-endpoint/sample.jmx" range="29-46" highlight="5":::
57+
58+
1. Set the value of the `HTTPSampler.path` node to the path of your endpoint.
59+
60+
For example, the path for the URL `https://www.contoso.com/app/products` would be `/app/products`.
61+
62+
:::code language="xml" source="~/azure-load-testing-samples/jmeter-basic-endpoint/sample.jmx" range="29-46" highlight="9":::
6163

6264
1. Save and close the file.
6365

0 commit comments

Comments
 (0)