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
+16-64Lines changed: 16 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,84 +30,36 @@ Use cases for creating a load test with an existing JMeter script include:
30
30
31
31
- An Azure Load Testing resource. If you need to create an Azure Load Testing resource, see the quickstart [Create and run a load test](./quickstart-create-and-run-load-test.md).
32
32
33
+
-[Clone or download the samples project from GitHub](https://github.com/Azure-Samples/azure-load-testing-samples/tree/main/jmeter-basic-endpoint)
34
+
33
35
## Create an Apache JMeter script
34
36
35
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.
36
38
37
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.
38
40
39
-
To create a sample JMeter test script:
40
-
41
-
1. Create a *SampleTest.jmx* file on your local machine:
41
+
To get started with a sample JMeter script:
42
42
43
-
```powershell
44
-
touch SampleTest.jmx
45
-
```
43
+
1.[Clone or download the samples project from GitHub](https://github.com/Azure-Samples/azure-load-testing-samples/tree/main/jmeter-basic-endpoint)
46
44
47
-
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.
48
46
49
47
This script simulates a load test of five virtual users that simultaneously access a web endpoint, and takes 2 minutes to complete.
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`.
49
+
1. Set the value of the `HTTPSampler.domain` node to the host name of your endpoint.
106
50
107
-
> [!IMPORTANT]
51
+
For example, if you want to test the endpoint `https://www.contoso.com/app/products`, the host name is `www.contoso.com`.
52
+
53
+
> [!CAUTION]
108
54
> Don't include `https` or `http` in the endpoint URL.
109
55
110
-
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`.
Copy file name to clipboardExpand all lines: articles/load-testing/how-to-read-csv-data.md
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ In this article, you'll learn how to read data from a comma-separated value (CSV
18
18
19
19
Use data from an external CSV file to make your JMeter test script configurable. For example, you might invoke an API for each entry in a customers CSV file.
20
20
21
+
Get started by [cloning or downloading the samples project from GitHub](https://github.com/Azure-Samples/azure-load-testing-samples/tree/main/jmeter-read-csv).
22
+
21
23
In this article, you learn how to:
22
24
23
25
> [!div class="checklist"]
@@ -62,21 +64,11 @@ To edit your JMeter script by using Visual Studio Code or your editor of prefere
62
64
63
65
1. Update the `filename` element and remove any file path reference.
0 commit comments