Skip to content

Commit a6b31f4

Browse files
committed
Updated JMX to remove plugin dependency
1 parent 2d8c64b commit a6b31f4

File tree

1 file changed

+47
-51
lines changed

1 file changed

+47
-51
lines changed

articles/load-testing/quickstart-create-and-run-load-test.md

Lines changed: 47 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -47,61 +47,57 @@ In this section, you'll create a sample Apache JMeter script that you'll use in
4747
1. Open *SampleTest.jmx* in a text editor and paste the following code snippet in the file:
4848
4949
```xml
50-
<?xml version="1.0" encoding="UTF-8"?>
51-
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
50+
<?xml version="1.0" encoding="UTF-8"?>
51+
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
52+
<hashTree>
53+
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Azure Load Testing Quickstart" enabled="true">
54+
<stringProp name="TestPlan.comments"></stringProp>
55+
<boolProp name="TestPlan.functional_mode">false</boolProp>
56+
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
57+
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
58+
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
59+
<collectionProp name="Arguments.arguments"/>
60+
</elementProp>
61+
<stringProp name="TestPlan.user_define_classpath"></stringProp>
62+
</TestPlan>
63+
<hashTree>
64+
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
65+
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
66+
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
67+
<boolProp name="LoopController.continue_forever">false</boolProp>
68+
<intProp name="LoopController.loops">-1</intProp>
69+
</elementProp>
70+
<stringProp name="ThreadGroup.num_threads">5</stringProp>
71+
<stringProp name="ThreadGroup.ramp_time">10</stringProp>
72+
<boolProp name="ThreadGroup.scheduler">true</boolProp>
73+
<stringProp name="ThreadGroup.duration">120</stringProp>
74+
<stringProp name="ThreadGroup.delay">5</stringProp>
75+
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
76+
</ThreadGroup>
5277
<hashTree>
53-
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
54-
<stringProp name="TestPlan.comments"></stringProp>
55-
<boolProp name="TestPlan.functional_mode">false</boolProp>
56-
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
57-
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
58-
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
78+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Homepage" enabled="true">
79+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
5980
<collectionProp name="Arguments.arguments"/>
6081
</elementProp>
61-
<stringProp name="TestPlan.user_define_classpath"></stringProp>
62-
</TestPlan>
63-
<hashTree>
64-
<kg.apc.jmeter.threads.UltimateThreadGroup guiclass="kg.apc.jmeter.threads.UltimateThreadGroupGui" testclass="kg.apc.jmeter.threads.UltimateThreadGroup" testname="jp@gc - Ultimate Thread Group" enabled="true">
65-
<collectionProp name="ultimatethreadgroupdata">
66-
<collectionProp name="1400604752">
67-
<stringProp name="1567">5</stringProp>
68-
<stringProp name="0">0</stringProp>
69-
<stringProp name="48873">30</stringProp>
70-
<stringProp name="49710">60</stringProp>
71-
<stringProp name="10">10</stringProp>
72-
</collectionProp>
73-
</collectionProp>
74-
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
75-
<boolProp name="LoopController.continue_forever">false</boolProp>
76-
<intProp name="LoopController.loops">-1</intProp>
77-
</elementProp>
78-
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
79-
</kg.apc.jmeter.threads.UltimateThreadGroup>
80-
<hashTree>
81-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="homepage" enabled="true">
82-
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
83-
<collectionProp name="Arguments.arguments"/>
84-
</elementProp>
85-
<stringProp name="HTTPSampler.domain">your-endpoint-url</stringProp>
86-
<stringProp name="HTTPSampler.port"></stringProp>
87-
<stringProp name="HTTPSampler.protocol">https</stringProp>
88-
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
89-
<stringProp name="HTTPSampler.path"></stringProp>
90-
<stringProp name="HTTPSampler.method">GET</stringProp>
91-
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
92-
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
93-
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
94-
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
95-
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
96-
<stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
97-
<stringProp name="HTTPSampler.connect_timeout">60000</stringProp>
98-
<stringProp name="HTTPSampler.response_timeout">60000</stringProp>
99-
</HTTPSamplerProxy>
100-
<hashTree/>
101-
</hashTree>
102-
</hashTree>
82+
<stringProp name="HTTPSampler.domain">your-endpoint-url</stringProp>
83+
<stringProp name="HTTPSampler.port"></stringProp>
84+
<stringProp name="HTTPSampler.protocol"></stringProp>
85+
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
86+
<stringProp name="HTTPSampler.path"></stringProp>
87+
<stringProp name="HTTPSampler.method">GET</stringProp>
88+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
89+
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
90+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
91+
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
92+
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
93+
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
94+
<stringProp name="HTTPSampler.response_timeout"></stringProp>
95+
</HTTPSamplerProxy>
96+
<hashTree/>
10397
</hashTree>
104-
</jmeterTestPlan>
98+
</hashTree>
99+
</hashTree>
100+
</jmeterTestPlan>
105101
```
106102
107103
This sample Apache JMeter script simulates a load test of five virtual users simultaneously accessing a web endpoint. It takes less than two minutes to complete.

0 commit comments

Comments
 (0)