Update snapshot and/or references of policy/apex-pdp to latest snapshots
[policy/apex-pdp.git] / testsuites / apex-pdp-stability / src / main / resources / apexPdpStabilityTestPlan.jmx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.0 r1840935">
3   <hashTree>
4     <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="APEX PDP STABILITY TEST PLAN" enabled="true">
5       <stringProp name="TestPlan.comments"></stringProp>
6       <boolProp name="TestPlan.functional_mode">false</boolProp>
7       <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
8       <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
9       <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
10         <collectionProp name="Arguments.arguments"/>
11       </elementProp>
12       <stringProp name="TestPlan.user_define_classpath"></stringProp>
13     </TestPlan>
14     <hashTree>
15       <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
16         <collectionProp name="HeaderManager.headers">
17           <elementProp name="" elementType="Header">
18             <stringProp name="Header.name">Content-Type</stringProp>
19             <stringProp name="Header.value">application/json</stringProp>
20           </elementProp>
21           <elementProp name="" elementType="Header">
22             <stringProp name="Header.name">Accept</stringProp>
23             <stringProp name="Header.value">application/json</stringProp>
24           </elementProp>
25         </collectionProp>
26       </HeaderManager>
27       <hashTree/>
28       <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
29         <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
30           <collectionProp name="Arguments.arguments"/>
31         </elementProp>
32         <stringProp name="HTTPSampler.domain"></stringProp>
33         <stringProp name="HTTPSampler.port">23324</stringProp>
34         <stringProp name="HTTPSampler.protocol">http</stringProp>
35         <stringProp name="HTTPSampler.contentEncoding"></stringProp>
36         <stringProp name="HTTPSampler.path"></stringProp>
37         <stringProp name="HTTPSampler.concurrentPool">6</stringProp>
38         <stringProp name="HTTPSampler.connect_timeout"></stringProp>
39         <stringProp name="HTTPSampler.response_timeout"></stringProp>
40       </ConfigTestElement>
41       <hashTree/>
42       <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
43         <collectionProp name="Arguments.arguments">
44           <elementProp name="threads" elementType="Argument">
45             <stringProp name="Argument.name">threads</stringProp>
46             <stringProp name="Argument.value">10</stringProp>
47             <stringProp name="Argument.metadata">=</stringProp>
48           </elementProp>
49           <elementProp name="threadsTimeOutInMs" elementType="Argument">
50             <stringProp name="Argument.name">threadsTimeOutInMs</stringProp>
51             <stringProp name="Argument.value">5000</stringProp>
52             <stringProp name="Argument.metadata">=</stringProp>
53           </elementProp>
54           <elementProp name="wait" elementType="Argument">
55             <stringProp name="Argument.name">wait</stringProp>
56             <stringProp name="Argument.value">500</stringProp>
57             <stringProp name="Argument.desc">Wait time between requests to apex-pdp</stringProp>
58             <stringProp name="Argument.metadata">=</stringProp>
59           </elementProp>
60         </collectionProp>
61       </Arguments>
62       <hashTree/>
63       <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
64         <stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
65         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
66           <boolProp name="LoopController.continue_forever">false</boolProp>
67           <intProp name="LoopController.loops">-1</intProp>
68         </elementProp>
69         <stringProp name="ThreadGroup.num_threads">${threads}</stringProp>
70         <stringProp name="ThreadGroup.ramp_time">1</stringProp>
71         <boolProp name="ThreadGroup.scheduler">false</boolProp>
72         <stringProp name="ThreadGroup.duration"></stringProp>
73         <stringProp name="ThreadGroup.delay"></stringProp>
74       </ThreadGroup>
75       <hashTree>
76         <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/>
77         <hashTree>
78           <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
79             <stringProp name="groupSize">${threads}</stringProp>
80             <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
81           </SyncTimer>
82           <hashTree/>
83           <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="true">
84             <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
85             <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
86               <collectionProp name="Arguments.arguments">
87                 <elementProp name="" elementType="HTTPArgument">
88                   <boolProp name="HTTPArgument.always_encode">false</boolProp>
89                   <stringProp name="Argument.value">{&#xd;
90    &quot;nameSpace&quot;: &quot;org.onap.policy.apex.sample.events&quot;,&#xd;
91    &quot;name&quot;: &quot;Event0000&quot;,&#xd;
92    &quot;version&quot;: &quot;0.0.1&quot;,&#xd;
93    &quot;source&quot;: &quot;REST_0&quot;,&#xd;
94    &quot;target&quot;: &quot;apex&quot;,&#xd;
95    &quot;TestSlogan&quot;: &quot;Test slogan for External Event0&quot;,&#xd;
96    &quot;TestMatchCase&quot;: 3,&#xd;
97    &quot;TestTimestamp&quot;: 1536363522018,&#xd;
98    &quot;TestTemperature&quot;: 9080.866&#xd;
99 }&#xd;
100 </stringProp>
101                   <stringProp name="Argument.metadata">=</stringProp>
102                 </elementProp>
103               </collectionProp>
104             </elementProp>
105             <stringProp name="HTTPSampler.domain"></stringProp>
106             <stringProp name="HTTPSampler.port"></stringProp>
107             <stringProp name="HTTPSampler.protocol"></stringProp>
108             <stringProp name="HTTPSampler.contentEncoding"></stringProp>
109             <stringProp name="HTTPSampler.path">/apex/FirstConsumer/EventIn</stringProp>
110             <stringProp name="HTTPSampler.method">PUT</stringProp>
111             <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
112             <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
113             <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
114             <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
115             <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
116             <stringProp name="HTTPSampler.connect_timeout"></stringProp>
117             <stringProp name="HTTPSampler.response_timeout"></stringProp>
118             <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp>
119           </HTTPSamplerProxy>
120           <hashTree>
121             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
122               <collectionProp name="Asserion.test_strings">
123                 <stringProp name="49586">200</stringProp>
124               </collectionProp>
125               <stringProp name="Assertion.custom_message"></stringProp>
126               <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
127               <boolProp name="Assertion.assume_success">false</boolProp>
128               <intProp name="Assertion.test_type">8</intProp>
129               <stringProp name="Scope.variable">Response code</stringProp>
130               <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp>
131             </ResponseAssertion>
132             <hashTree/>
133             <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true">
134               <collectionProp name="Asserion.test_strings">
135                 <stringProp name="-901779464">&quot;nameSpace&quot;: &quot;org.onap.policy.apex.sample.events&quot;</stringProp>
136               </collectionProp>
137               <stringProp name="Assertion.custom_message"></stringProp>
138               <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
139               <boolProp name="Assertion.assume_success">false</boolProp>
140               <intProp name="Assertion.test_type">2</intProp>
141               <stringProp name="Scope.variable">Response code</stringProp>
142               <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp>
143             </ResponseAssertion>
144             <hashTree/>
145             <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
146               <stringProp name="ConstantTimer.delay">${wait}</stringProp>
147             </ConstantTimer>
148             <hashTree/>
149           </hashTree>
150         </hashTree>
151       </hashTree>
152       <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
153         <boolProp name="ResultCollector.error_logging">false</boolProp>
154         <objProp>
155           <name>saveConfig</name>
156           <value class="SampleSaveConfiguration">
157             <time>true</time>
158             <latency>true</latency>
159             <timestamp>true</timestamp>
160             <success>true</success>
161             <label>true</label>
162             <code>true</code>
163             <message>true</message>
164             <threadName>true</threadName>
165             <dataType>true</dataType>
166             <encoding>false</encoding>
167             <assertions>true</assertions>
168             <subresults>true</subresults>
169             <responseData>false</responseData>
170             <samplerData>false</samplerData>
171             <xml>false</xml>
172             <fieldNames>true</fieldNames>
173             <responseHeaders>false</responseHeaders>
174             <requestHeaders>false</requestHeaders>
175             <responseDataOnError>false</responseDataOnError>
176             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
177             <assertionsResultsToSave>0</assertionsResultsToSave>
178             <bytes>true</bytes>
179             <sentBytes>true</sentBytes>
180             <threadCounts>true</threadCounts>
181             <idleTime>true</idleTime>
182             <connectTime>true</connectTime>
183           </value>
184         </objProp>
185         <stringProp name="filename"></stringProp>
186       </ResultCollector>
187       <hashTree/>
188       <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
189         <boolProp name="ResultCollector.error_logging">false</boolProp>
190         <objProp>
191           <name>saveConfig</name>
192           <value class="SampleSaveConfiguration">
193             <time>true</time>
194             <latency>true</latency>
195             <timestamp>true</timestamp>
196             <success>true</success>
197             <label>true</label>
198             <code>true</code>
199             <message>true</message>
200             <threadName>true</threadName>
201             <dataType>true</dataType>
202             <encoding>false</encoding>
203             <assertions>true</assertions>
204             <subresults>true</subresults>
205             <responseData>false</responseData>
206             <samplerData>false</samplerData>
207             <xml>false</xml>
208             <fieldNames>true</fieldNames>
209             <responseHeaders>false</responseHeaders>
210             <requestHeaders>false</requestHeaders>
211             <responseDataOnError>false</responseDataOnError>
212             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
213             <assertionsResultsToSave>0</assertionsResultsToSave>
214             <bytes>true</bytes>
215             <sentBytes>true</sentBytes>
216             <threadCounts>true</threadCounts>
217             <idleTime>true</idleTime>
218             <connectTime>true</connectTime>
219           </value>
220         </objProp>
221         <stringProp name="filename"></stringProp>
222       </ResultCollector>
223       <hashTree/>
224       <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
225         <boolProp name="ResultCollector.error_logging">false</boolProp>
226         <objProp>
227           <name>saveConfig</name>
228           <value class="SampleSaveConfiguration">
229             <time>true</time>
230             <latency>true</latency>
231             <timestamp>true</timestamp>
232             <success>true</success>
233             <label>true</label>
234             <code>true</code>
235             <message>true</message>
236             <threadName>true</threadName>
237             <dataType>true</dataType>
238             <encoding>false</encoding>
239             <assertions>true</assertions>
240             <subresults>true</subresults>
241             <responseData>false</responseData>
242             <samplerData>false</samplerData>
243             <xml>false</xml>
244             <fieldNames>true</fieldNames>
245             <responseHeaders>false</responseHeaders>
246             <requestHeaders>false</requestHeaders>
247             <responseDataOnError>false</responseDataOnError>
248             <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
249             <assertionsResultsToSave>0</assertionsResultsToSave>
250             <bytes>true</bytes>
251             <sentBytes>true</sentBytes>
252             <threadCounts>true</threadCounts>
253             <idleTime>true</idleTime>
254             <connectTime>true</connectTime>
255           </value>
256         </objProp>
257         <stringProp name="filename"></stringProp>
258       </ResultCollector>
259       <hashTree/>
260     </hashTree>
261   </hashTree>
262 </jmeterTestPlan>