1 <?xml version="1.0" encoding="UTF-8"?>
2 <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.0 r1840935">
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"/>
12 <stringProp name="TestPlan.user_define_classpath"></stringProp>
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>
21 <elementProp name="" elementType="Header">
22 <stringProp name="Header.name">Accept</stringProp>
23 <stringProp name="Header.value">application/json</stringProp>
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"/>
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>
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>
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>
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>
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>
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>
76 <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/>
78 <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true">
79 <stringProp name="groupSize">${threads}</stringProp>
80 <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp>
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">{
90 "nameSpace": "org.onap.policy.apex.sample.events",
91 "name": "Event0000",
92 "version": "0.0.1",
93 "source": "REST_0",
94 "target": "apex",
95 "TestSlogan": "Test slogan for External Event0",
96 "TestMatchCase": 3,
97 "TestTimestamp": 1536363522018,
98 "TestTemperature": 9080.866
101 <stringProp name="Argument.metadata">=</stringProp>
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>
121 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true">
122 <collectionProp name="Asserion.test_strings">
123 <stringProp name="49586">200</stringProp>
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>
133 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true">
134 <collectionProp name="Asserion.test_strings">
135 <stringProp name="-901779464">"nameSpace": "org.onap.policy.apex.sample.events"</stringProp>
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>
145 <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true">
146 <stringProp name="ConstantTimer.delay">${wait}</stringProp>
152 <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
153 <boolProp name="ResultCollector.error_logging">false</boolProp>
155 <name>saveConfig</name>
156 <value class="SampleSaveConfiguration">
158 <latency>true</latency>
159 <timestamp>true</timestamp>
160 <success>true</success>
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>
172 <fieldNames>true</fieldNames>
173 <responseHeaders>false</responseHeaders>
174 <requestHeaders>false</requestHeaders>
175 <responseDataOnError>false</responseDataOnError>
176 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
177 <assertionsResultsToSave>0</assertionsResultsToSave>
179 <sentBytes>true</sentBytes>
180 <threadCounts>true</threadCounts>
181 <idleTime>true</idleTime>
182 <connectTime>true</connectTime>
185 <stringProp name="filename"></stringProp>
188 <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
189 <boolProp name="ResultCollector.error_logging">false</boolProp>
191 <name>saveConfig</name>
192 <value class="SampleSaveConfiguration">
194 <latency>true</latency>
195 <timestamp>true</timestamp>
196 <success>true</success>
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>
208 <fieldNames>true</fieldNames>
209 <responseHeaders>false</responseHeaders>
210 <requestHeaders>false</requestHeaders>
211 <responseDataOnError>false</responseDataOnError>
212 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
213 <assertionsResultsToSave>0</assertionsResultsToSave>
215 <sentBytes>true</sentBytes>
216 <threadCounts>true</threadCounts>
217 <idleTime>true</idleTime>
218 <connectTime>true</connectTime>
221 <stringProp name="filename"></stringProp>
224 <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true">
225 <boolProp name="ResultCollector.error_logging">false</boolProp>
227 <name>saveConfig</name>
228 <value class="SampleSaveConfiguration">
230 <latency>true</latency>
231 <timestamp>true</timestamp>
232 <success>true</success>
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>
244 <fieldNames>true</fieldNames>
245 <responseHeaders>false</responseHeaders>
246 <requestHeaders>false</requestHeaders>
247 <responseDataOnError>false</responseDataOnError>
248 <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
249 <assertionsResultsToSave>0</assertionsResultsToSave>
251 <sentBytes>true</sentBytes>
252 <threadCounts>true</threadCounts>
253 <idleTime>true</idleTime>
254 <connectTime>true</connectTime>
257 <stringProp name="filename"></stringProp>