Ticket #13616: onionoo-jmeter-testplan.jmx

File onionoo-jmeter-testplan.jmx, 16.0 KB (added by iwakeh, 5 years ago)

an example test plan for jmeter

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<jmeterTestPlan version="1.2" properties="2.6" jmeter="2.11.20140918">
3  <hashTree>
4    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Onionoo" enabled="true">
5      <stringProp name="TestPlan.comments">Example Test Plan for Onionoo</stringProp>
6      <boolProp name="TestPlan.functional_mode">false</boolProp>
7      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
8      <stringProp name="TestPlan.user_define_classpath"></stringProp>
9    </TestPlan>
10    <hashTree>
11      <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
12        <boolProp name="ResultCollector.error_logging">false</boolProp>
13        <objProp>
14          <name>saveConfig</name>
15          <value class="SampleSaveConfiguration">
16            <time>true</time>
17            <latency>true</latency>
18            <timestamp>true</timestamp>
19            <success>true</success>
20            <label>true</label>
21            <code>true</code>
22            <message>true</message>
23            <threadName>true</threadName>
24            <dataType>true</dataType>
25            <encoding>false</encoding>
26            <assertions>true</assertions>
27            <subresults>true</subresults>
28            <responseData>false</responseData>
29            <samplerData>false</samplerData>
30            <xml>false</xml>
31            <fieldNames>false</fieldNames>
32            <responseHeaders>false</responseHeaders>
33            <requestHeaders>false</requestHeaders>
34            <responseDataOnError>false</responseDataOnError>
35            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
36            <assertionsResultsToSave>0</assertionsResultsToSave>
37            <bytes>true</bytes>
38          </value>
39        </objProp>
40        <objProp>
41          <name></name>
42          <value class="SampleSaveConfiguration">
43            <time>true</time>
44            <latency>true</latency>
45            <timestamp>true</timestamp>
46            <success>true</success>
47            <label>true</label>
48            <code>true</code>
49            <message>true</message>
50            <threadName>true</threadName>
51            <dataType>true</dataType>
52            <encoding>false</encoding>
53            <assertions>true</assertions>
54            <subresults>true</subresults>
55            <responseData>false</responseData>
56            <samplerData>false</samplerData>
57            <xml>false</xml>
58            <fieldNames>false</fieldNames>
59            <responseHeaders>false</responseHeaders>
60            <requestHeaders>false</requestHeaders>
61            <responseDataOnError>false</responseDataOnError>
62            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
63            <assertionsResultsToSave>0</assertionsResultsToSave>
64            <bytes>true</bytes>
65          </value>
66        </objProp>
67        <stringProp name="filename">${TESTLOGFILE}</stringProp>
68      </ResultCollector>
69      <hashTree/>
70      <ResultCollector guiclass="RespTimeGraphVisualizer" testclass="ResultCollector" testname="Response Time Graph" enabled="true">
71        <boolProp name="ResultCollector.error_logging">false</boolProp>
72        <objProp>
73          <name>saveConfig</name>
74          <value class="SampleSaveConfiguration">
75            <time>true</time>
76            <latency>true</latency>
77            <timestamp>true</timestamp>
78            <success>true</success>
79            <label>true</label>
80            <code>true</code>
81            <message>true</message>
82            <threadName>true</threadName>
83            <dataType>true</dataType>
84            <encoding>false</encoding>
85            <assertions>true</assertions>
86            <subresults>true</subresults>
87            <responseData>false</responseData>
88            <samplerData>false</samplerData>
89            <xml>false</xml>
90            <fieldNames>false</fieldNames>
91            <responseHeaders>false</responseHeaders>
92            <requestHeaders>false</requestHeaders>
93            <responseDataOnError>false</responseDataOnError>
94            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
95            <assertionsResultsToSave>0</assertionsResultsToSave>
96            <bytes>true</bytes>
97          </value>
98        </objProp>
99        <objProp>
100          <name></name>
101          <value class="SampleSaveConfiguration">
102            <time>true</time>
103            <latency>true</latency>
104            <timestamp>true</timestamp>
105            <success>true</success>
106            <label>true</label>
107            <code>true</code>
108            <message>true</message>
109            <threadName>true</threadName>
110            <dataType>true</dataType>
111            <encoding>false</encoding>
112            <assertions>true</assertions>
113            <subresults>true</subresults>
114            <responseData>false</responseData>
115            <samplerData>false</samplerData>
116            <xml>false</xml>
117            <fieldNames>false</fieldNames>
118            <responseHeaders>false</responseHeaders>
119            <requestHeaders>false</requestHeaders>
120            <responseDataOnError>false</responseDataOnError>
121            <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
122            <assertionsResultsToSave>0</assertionsResultsToSave>
123            <bytes>true</bytes>
124          </value>
125        </objProp>
126        <stringProp name="filename">${TESTLOGFILE}</stringProp>
127      </ResultCollector>
128      <hashTree/>
129      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="https requests" enabled="true">
130        <stringProp name="TestPlan.comments">summary full list and details limited to 700</stringProp>
131        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
132        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
133          <boolProp name="LoopController.continue_forever">false</boolProp>
134          <stringProp name="LoopController.loops">10</stringProp>
135        </elementProp>
136        <stringProp name="ThreadGroup.num_threads">2</stringProp>
137        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
138        <boolProp name="ThreadGroup.scheduler">false</boolProp>
139        <boolProp name="ThreadGroup.delayedStart">true</boolProp>
140        <longProp name="ThreadGroup.start_time">1416153816000</longProp>
141        <longProp name="ThreadGroup.end_time">1416153816000</longProp>
142        <stringProp name="ThreadGroup.duration"></stringProp>
143        <stringProp name="ThreadGroup.delay"></stringProp>
144      </ThreadGroup>
145      <hashTree>
146        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="summary (complete)" enabled="true">
147          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
148            <collectionProp name="Arguments.arguments"/>
149          </elementProp>
150          <stringProp name="HTTPSampler.domain"></stringProp>
151          <stringProp name="HTTPSampler.port"></stringProp>
152          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
153          <stringProp name="HTTPSampler.response_timeout"></stringProp>
154          <stringProp name="HTTPSampler.protocol"></stringProp>
155          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
156          <stringProp name="HTTPSampler.path">summary</stringProp>
157          <stringProp name="HTTPSampler.method">GET</stringProp>
158          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
159          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
160          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
161          <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
162          <boolProp name="HTTPSampler.monitor">false</boolProp>
163          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
164          <stringProp name="TestPlan.comments">server and port defined in request defaults</stringProp>
165        </HTTPSamplerProxy>
166        <hashTree/>
167        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="details (limited to 700)" enabled="true">
168          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
169            <collectionProp name="Arguments.arguments">
170              <elementProp name="limit" elementType="HTTPArgument">
171                <boolProp name="HTTPArgument.always_encode">false</boolProp>
172                <stringProp name="Argument.value">700</stringProp>
173                <stringProp name="Argument.metadata">=</stringProp>
174                <boolProp name="HTTPArgument.use_equals">true</boolProp>
175                <stringProp name="Argument.name">limit</stringProp>
176              </elementProp>
177            </collectionProp>
178          </elementProp>
179          <stringProp name="HTTPSampler.domain"></stringProp>
180          <stringProp name="HTTPSampler.port"></stringProp>
181          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
182          <stringProp name="HTTPSampler.response_timeout"></stringProp>
183          <stringProp name="HTTPSampler.protocol"></stringProp>
184          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
185          <stringProp name="HTTPSampler.path">details</stringProp>
186          <stringProp name="HTTPSampler.method">GET</stringProp>
187          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
188          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
189          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
190          <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
191          <boolProp name="HTTPSampler.monitor">false</boolProp>
192          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
193          <stringProp name="TestPlan.comments">server defined in request defaults</stringProp>
194        </HTTPSamplerProxy>
195        <hashTree/>
196        <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
197          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
198            <collectionProp name="Arguments.arguments"/>
199          </elementProp>
200          <stringProp name="HTTPSampler.domain">${SERVER}</stringProp>
201          <stringProp name="HTTPSampler.port"></stringProp>
202          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
203          <stringProp name="HTTPSampler.response_timeout"></stringProp>
204          <stringProp name="HTTPSampler.protocol">https</stringProp>
205          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
206          <stringProp name="HTTPSampler.path"></stringProp>
207          <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
208          <stringProp name="TestPlan.comments">SERVER is defined under &quot;user defined variables&quot;</stringProp>
209          <stringProp name="HTTPSampler.concurrentPool">4</stringProp>
210        </ConfigTestElement>
211        <hashTree/>
212      </hashTree>
213      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="https requests main page" enabled="true">
214        <stringProp name="TestPlan.comments">only Onionoo main page</stringProp>
215        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
216        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
217          <boolProp name="LoopController.continue_forever">false</boolProp>
218          <stringProp name="LoopController.loops">10</stringProp>
219        </elementProp>
220        <stringProp name="ThreadGroup.num_threads">2</stringProp>
221        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
222        <boolProp name="ThreadGroup.scheduler">false</boolProp>
223        <boolProp name="ThreadGroup.delayedStart">true</boolProp>
224        <longProp name="ThreadGroup.start_time">1416153816000</longProp>
225        <longProp name="ThreadGroup.end_time">1416153816000</longProp>
226        <stringProp name="ThreadGroup.duration"></stringProp>
227        <stringProp name="ThreadGroup.delay"></stringProp>
228      </ThreadGroup>
229      <hashTree>
230        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="main onionoo page" enabled="true">
231          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
232            <collectionProp name="Arguments.arguments"/>
233          </elementProp>
234          <stringProp name="HTTPSampler.domain"></stringProp>
235          <stringProp name="HTTPSampler.port"></stringProp>
236          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
237          <stringProp name="HTTPSampler.response_timeout"></stringProp>
238          <stringProp name="HTTPSampler.protocol"></stringProp>
239          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
240          <stringProp name="HTTPSampler.path">/</stringProp>
241          <stringProp name="HTTPSampler.method">GET</stringProp>
242          <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
243          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
244          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
245          <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
246          <stringProp name="HTTPSampler.implementation">Java</stringProp>
247          <boolProp name="HTTPSampler.monitor">false</boolProp>
248          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
249          <stringProp name="TestPlan.comments">server defined in request defaults</stringProp>
250        </HTTPSamplerProxy>
251        <hashTree/>
252        <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
253          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
254            <collectionProp name="Arguments.arguments"/>
255          </elementProp>
256          <stringProp name="HTTPSampler.domain">${SERVER}</stringProp>
257          <stringProp name="HTTPSampler.port"></stringProp>
258          <stringProp name="HTTPSampler.connect_timeout"></stringProp>
259          <stringProp name="HTTPSampler.response_timeout"></stringProp>
260          <stringProp name="HTTPSampler.protocol"></stringProp>
261          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
262          <stringProp name="HTTPSampler.path"></stringProp>
263          <stringProp name="TestPlan.comments">SERVER is defined under &quot;user defined variables&quot;</stringProp>
264          <stringProp name="HTTPSampler.concurrentPool">4</stringProp>
265        </ConfigTestElement>
266        <hashTree/>
267      </hashTree>
268      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User defined Variables" enabled="true">
269        <collectionProp name="Arguments.arguments">
270          <elementProp name="SERVER" elementType="Argument">
271            <stringProp name="Argument.name">SERVER</stringProp>
272            <stringProp name="Argument.value">onionoo.thecthulhu.com/</stringProp>
273            <stringProp name="Argument.desc">Please set to correct value!</stringProp>
274            <stringProp name="Argument.metadata">=</stringProp>
275          </elementProp>
276          <elementProp name="TESTLOGFILE" elementType="Argument">
277            <stringProp name="Argument.name">TESTLOGFILE</stringProp>
278            <stringProp name="Argument.value">/tmp/test-jmeter.log</stringProp>
279            <stringProp name="Argument.desc">Please set to correct value!</stringProp>
280            <stringProp name="Argument.metadata">=</stringProp>
281          </elementProp>
282        </collectionProp>
283        <stringProp name="TestPlan.comments">Just server and port.</stringProp>
284      </Arguments>
285      <hashTree/>
286    </hashTree>
287  </hashTree>
288</jmeterTestPlan>