Skip to content

Commit 3baacd8

Browse files
author
quit
committed
add scenario file
1 parent 2b51e49 commit 3baacd8

File tree

2 files changed

+104
-1
lines changed

2 files changed

+104
-1
lines changed

5.variable.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,7 @@
8484

8585
![リクエストを送ったドメインがcomであることを確認](images/chapter-5-7.png)
8686

87-
リクエストを送ったドメインがcomであることが確認できます。
87+
リクエストを送ったドメインがcomであることが確認できます。
88+
89+
## シナリオファイル
90+
[chapter-5-1.jmx](scenarios/chapter-5-1.jmx)

scenarios/chapter-5-1.jmx

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jmeterTestPlan version="1.2" properties="2.4" jmeter="2.9 r1437961">
3+
<hashTree>
4+
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="テスト計画" enabled="true">
5+
<stringProp name="TestPlan.comments"></stringProp>
6+
<boolProp name="TestPlan.functional_mode">false</boolProp>
7+
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
8+
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="ユーザー定義変数" enabled="true">
9+
<collectionProp name="Arguments.arguments"/>
10+
</elementProp>
11+
<stringProp name="TestPlan.user_define_classpath"></stringProp>
12+
</TestPlan>
13+
<hashTree>
14+
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="ユーザー定義変数" enabled="true">
15+
<collectionProp name="Arguments.arguments">
16+
<elementProp name="DOMAIN" elementType="Argument">
17+
<stringProp name="Argument.name">DOMAIN</stringProp>
18+
<stringProp name="Argument.value">com</stringProp>
19+
<stringProp name="Argument.metadata">=</stringProp>
20+
</elementProp>
21+
</collectionProp>
22+
</Arguments>
23+
<hashTree/>
24+
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="スレッドグループ" enabled="true">
25+
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
26+
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="ループコントローラ" enabled="true">
27+
<boolProp name="LoopController.continue_forever">false</boolProp>
28+
<stringProp name="LoopController.loops">1</stringProp>
29+
</elementProp>
30+
<stringProp name="ThreadGroup.num_threads">1</stringProp>
31+
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
32+
<longProp name="ThreadGroup.start_time">1372749432000</longProp>
33+
<longProp name="ThreadGroup.end_time">1372749432000</longProp>
34+
<boolProp name="ThreadGroup.scheduler">false</boolProp>
35+
<stringProp name="ThreadGroup.duration"></stringProp>
36+
<stringProp name="ThreadGroup.delay"></stringProp>
37+
</ThreadGroup>
38+
<hashTree>
39+
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
40+
<boolProp name="displayJMeterProperties">false</boolProp>
41+
<boolProp name="displayJMeterVariables">true</boolProp>
42+
<boolProp name="displaySystemProperties">false</boolProp>
43+
</DebugSampler>
44+
<hashTree/>
45+
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="結果をツリーで表示" enabled="true">
46+
<boolProp name="ResultCollector.error_logging">false</boolProp>
47+
<objProp>
48+
<name>saveConfig</name>
49+
<value class="SampleSaveConfiguration">
50+
<time>true</time>
51+
<latency>true</latency>
52+
<timestamp>true</timestamp>
53+
<success>true</success>
54+
<label>true</label>
55+
<code>true</code>
56+
<message>true</message>
57+
<threadName>true</threadName>
58+
<dataType>true</dataType>
59+
<encoding>false</encoding>
60+
<assertions>true</assertions>
61+
<subresults>true</subresults>
62+
<responseData>false</responseData>
63+
<samplerData>false</samplerData>
64+
<xml>false</xml>
65+
<fieldNames>false</fieldNames>
66+
<responseHeaders>false</responseHeaders>
67+
<requestHeaders>false</requestHeaders>
68+
<responseDataOnError>false</responseDataOnError>
69+
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
70+
<assertionsResultsToSave>0</assertionsResultsToSave>
71+
<bytes>true</bytes>
72+
</value>
73+
</objProp>
74+
<stringProp name="filename"></stringProp>
75+
</ResultCollector>
76+
<hashTree/>
77+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP リクエスト" enabled="true">
78+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="ユーザー定義変数" enabled="true">
79+
<collectionProp name="Arguments.arguments"/>
80+
</elementProp>
81+
<stringProp name="HTTPSampler.domain">www.google.${DOMAIN}</stringProp>
82+
<stringProp name="HTTPSampler.port"></stringProp>
83+
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
84+
<stringProp name="HTTPSampler.response_timeout"></stringProp>
85+
<stringProp name="HTTPSampler.protocol"></stringProp>
86+
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
87+
<stringProp name="HTTPSampler.path">/search?q=a</stringProp>
88+
<stringProp name="HTTPSampler.method">GET</stringProp>
89+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
90+
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
91+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
92+
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
93+
<boolProp name="HTTPSampler.monitor">false</boolProp>
94+
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
95+
</HTTPSamplerProxy>
96+
<hashTree/>
97+
</hashTree>
98+
</hashTree>
99+
</hashTree>
100+
</jmeterTestPlan>

0 commit comments

Comments
 (0)