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
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,26 +38,28 @@ If you already have a script, you can skip to [Create a load test](#create-a-loa
38
38
39
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
40
41
-
To create a sample JMeter test script:
41
+
To get started with a sample JMeter script:
42
42
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)
44
44
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.
50
46
51
47
This script simulates a load test of five virtual users that simultaneously access a web endpoint, and takes 2 minutes to complete.
1. Set the value of the `HTTPSampler.domain` node to the host name of your endpoint.
54
50
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`.
56
52
57
-
> [!IMPORTANT]
53
+
> [!CAUTION]
58
54
> Don't include `https` or `http` in the endpoint URL.
59
55
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`.
0 commit comments