select_edgex_another_bus_rule.jmx 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 EMQ Technologies Co., Ltd.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
  18. <hashTree>
  19. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  20. <stringProp name="TestPlan.comments"></stringProp>
  21. <boolProp name="TestPlan.functional_mode">false</boolProp>
  22. <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
  23. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  24. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  25. <collectionProp name="Arguments.arguments"/>
  26. </elementProp>
  27. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  28. </TestPlan>
  29. <hashTree>
  30. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  31. <collectionProp name="Arguments.arguments">
  32. <elementProp name="srv" elementType="Argument">
  33. <stringProp name="Argument.name">srv</stringProp>
  34. <stringProp name="Argument.value">127.0.0.1</stringProp>
  35. <stringProp name="Argument.metadata">=</stringProp>
  36. </elementProp>
  37. <elementProp name="rest_port" elementType="Argument">
  38. <stringProp name="Argument.name">rest_port</stringProp>
  39. <stringProp name="Argument.value">9081</stringProp>
  40. <stringProp name="Argument.metadata">=</stringProp>
  41. </elementProp>
  42. <elementProp name="fvt" elementType="Argument">
  43. <stringProp name="Argument.name">fvt</stringProp>
  44. <stringProp name="Argument.value">${__property(fvt,,)}</stringProp>
  45. <stringProp name="Argument.metadata">=</stringProp>
  46. </elementProp>
  47. <elementProp name="mqtt_srv" elementType="Argument">
  48. <stringProp name="Argument.name">mqtt_srv</stringProp>
  49. <stringProp name="Argument.value">127.0.0.1</stringProp>
  50. <stringProp name="Argument.metadata">=</stringProp>
  51. </elementProp>
  52. </collectionProp>
  53. </Arguments>
  54. <hashTree/>
  55. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  56. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  57. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  58. <boolProp name="LoopController.continue_forever">false</boolProp>
  59. <stringProp name="LoopController.loops">1</stringProp>
  60. </elementProp>
  61. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  62. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  63. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  64. <stringProp name="ThreadGroup.duration"></stringProp>
  65. <stringProp name="ThreadGroup.delay"></stringProp>
  66. </ThreadGroup>
  67. <hashTree>
  68. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  69. <boolProp name="ResultCollector.error_logging">false</boolProp>
  70. <objProp>
  71. <name>saveConfig</name>
  72. <value class="SampleSaveConfiguration">
  73. <time>true</time>
  74. <latency>true</latency>
  75. <timestamp>true</timestamp>
  76. <success>true</success>
  77. <label>true</label>
  78. <code>true</code>
  79. <message>true</message>
  80. <threadName>true</threadName>
  81. <dataType>true</dataType>
  82. <encoding>false</encoding>
  83. <assertions>true</assertions>
  84. <subresults>true</subresults>
  85. <responseData>false</responseData>
  86. <samplerData>false</samplerData>
  87. <xml>false</xml>
  88. <fieldNames>true</fieldNames>
  89. <responseHeaders>false</responseHeaders>
  90. <requestHeaders>false</requestHeaders>
  91. <responseDataOnError>false</responseDataOnError>
  92. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  93. <assertionsResultsToSave>0</assertionsResultsToSave>
  94. <bytes>true</bytes>
  95. <sentBytes>true</sentBytes>
  96. <threadCounts>true</threadCounts>
  97. <idleTime>true</idleTime>
  98. <connectTime>true</connectTime>
  99. </value>
  100. </objProp>
  101. <stringProp name="filename"></stringProp>
  102. </ResultCollector>
  103. <hashTree/>
  104. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="API" enabled="true">
  105. <boolProp name="TransactionController.includeTimers">false</boolProp>
  106. <boolProp name="TransactionController.parent">false</boolProp>
  107. </TransactionController>
  108. <hashTree>
  109. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  110. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  111. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  112. <collectionProp name="Arguments.arguments">
  113. <elementProp name="" elementType="HTTPArgument">
  114. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  115. <stringProp name="Argument.value">{&#xd;
  116. &quot;sql&quot; : &quot;create stream application () WITH (FORMAT=\&quot;JSON\&quot;, TYPE=\&quot;edgex\&quot;, CONF_KEY=\&quot;application_conf\&quot;)&quot;&#xd;
  117. }</stringProp>
  118. <stringProp name="Argument.metadata">=</stringProp>
  119. </elementProp>
  120. </collectionProp>
  121. </elementProp>
  122. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  123. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  124. <stringProp name="HTTPSampler.protocol"></stringProp>
  125. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  126. <stringProp name="HTTPSampler.path">/streams</stringProp>
  127. <stringProp name="HTTPSampler.method">POST</stringProp>
  128. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  129. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  130. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  131. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  132. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  133. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  134. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  135. </HTTPSamplerProxy>
  136. <hashTree>
  137. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  138. <collectionProp name="Asserion.test_strings">
  139. <stringProp name="-1625239252">Stream application is created.</stringProp>
  140. </collectionProp>
  141. <stringProp name="Assertion.custom_message"></stringProp>
  142. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  143. <boolProp name="Assertion.assume_success">true</boolProp>
  144. <intProp name="Assertion.test_type">16</intProp>
  145. </ResponseAssertion>
  146. <hashTree/>
  147. </hashTree>
  148. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  149. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  150. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  151. <collectionProp name="Arguments.arguments">
  152. <elementProp name="" elementType="HTTPArgument">
  153. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  154. <stringProp name="Argument.value">{&#xd;
  155. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  156. &quot;sql&quot;: &quot;SELECT * FROM application&quot;,&#xd;
  157. &quot;actions&quot;: [&#xd;
  158. {&#xd;
  159. &quot;mqtt&quot;: {&#xd;
  160. &quot;server&quot;: &quot;tcp://${mqtt_srv}:1883&quot;,&#xd;
  161. &quot;topic&quot;: &quot;devices/result&quot;,&#xd;
  162. &quot;qos&quot;: 1,&#xd;
  163. &quot;clientId&quot;: &quot;demo_001&quot;&#xd;
  164. }&#xd;
  165. }&#xd;
  166. ]&#xd;
  167. }</stringProp>
  168. <stringProp name="Argument.metadata">=</stringProp>
  169. </elementProp>
  170. </collectionProp>
  171. </elementProp>
  172. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  173. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  174. <stringProp name="HTTPSampler.protocol"></stringProp>
  175. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  176. <stringProp name="HTTPSampler.path">/rules</stringProp>
  177. <stringProp name="HTTPSampler.method">POST</stringProp>
  178. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  179. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  180. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  181. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  182. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  183. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  184. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  185. </HTTPSamplerProxy>
  186. <hashTree>
  187. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  188. <collectionProp name="Asserion.test_strings">
  189. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  190. </collectionProp>
  191. <stringProp name="Assertion.custom_message"></stringProp>
  192. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  193. <boolProp name="Assertion.assume_success">true</boolProp>
  194. <intProp name="Assertion.test_type">16</intProp>
  195. </ResponseAssertion>
  196. <hashTree/>
  197. </hashTree>
  198. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  199. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  200. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  201. <collectionProp name="Arguments.arguments">
  202. <elementProp name="" elementType="HTTPArgument">
  203. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  204. <stringProp name="Argument.value"></stringProp>
  205. <stringProp name="Argument.metadata">=</stringProp>
  206. </elementProp>
  207. </collectionProp>
  208. </elementProp>
  209. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  210. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  211. <stringProp name="HTTPSampler.protocol"></stringProp>
  212. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  213. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  214. <stringProp name="HTTPSampler.method">GET</stringProp>
  215. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  216. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  217. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  218. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  219. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  220. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  221. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  222. </HTTPSamplerProxy>
  223. <hashTree>
  224. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  225. <stringProp name="JSON_PATH">$.source_application_0_records_in_total</stringProp>
  226. <stringProp name="EXPECTED_VALUE">0</stringProp>
  227. <boolProp name="JSONVALIDATION">true</boolProp>
  228. <boolProp name="EXPECT_NULL">false</boolProp>
  229. <boolProp name="INVERT">false</boolProp>
  230. <boolProp name="ISREGEX">false</boolProp>
  231. </JSONPathAssertion>
  232. <hashTree/>
  233. </hashTree>
  234. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  235. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  236. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  237. <stringProp name="SystemSampler.command">test/edgex/pub</stringProp>
  238. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  239. <collectionProp name="Arguments.arguments">
  240. <elementProp name="" elementType="Argument">
  241. <stringProp name="Argument.name"></stringProp>
  242. <stringProp name="Argument.value">another</stringProp>
  243. <stringProp name="Argument.metadata">=</stringProp>
  244. </elementProp>
  245. </collectionProp>
  246. </elementProp>
  247. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  248. <collectionProp name="Arguments.arguments"/>
  249. </elementProp>
  250. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  251. </SystemSampler>
  252. <hashTree>
  253. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
  254. <collectionProp name="Asserion.test_strings">
  255. <stringProp name="-1026534321">pubToAnother successful</stringProp>
  256. </collectionProp>
  257. <stringProp name="Assertion.custom_message"></stringProp>
  258. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  259. <boolProp name="Assertion.assume_success">false</boolProp>
  260. <intProp name="Assertion.test_type">16</intProp>
  261. </ResponseAssertion>
  262. <hashTree/>
  263. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  264. <stringProp name="ConstantTimer.delay">1000</stringProp>
  265. </ConstantTimer>
  266. <hashTree/>
  267. <BeanShellPostProcessor guiclass="TestBeanGUI" testclass="BeanShellPostProcessor" testname="BeanShell PostProcessor" enabled="true">
  268. <boolProp name="resetInterpreter">false</boolProp>
  269. <stringProp name="parameters"></stringProp>
  270. <stringProp name="filename"></stringProp>
  271. <stringProp name="script">System.out.println(prev.getResponseDataAsString());</stringProp>
  272. </BeanShellPostProcessor>
  273. <hashTree/>
  274. </hashTree>
  275. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  276. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  277. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  278. <collectionProp name="Arguments.arguments">
  279. <elementProp name="" elementType="HTTPArgument">
  280. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  281. <stringProp name="Argument.value"></stringProp>
  282. <stringProp name="Argument.metadata">=</stringProp>
  283. </elementProp>
  284. </collectionProp>
  285. </elementProp>
  286. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  287. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  288. <stringProp name="HTTPSampler.protocol"></stringProp>
  289. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  290. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  291. <stringProp name="HTTPSampler.method">GET</stringProp>
  292. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  293. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  294. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  295. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  296. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  297. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  298. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  299. </HTTPSamplerProxy>
  300. <hashTree>
  301. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  302. <stringProp name="JSON_PATH">$.source_application_0_records_in_total</stringProp>
  303. <stringProp name="EXPECTED_VALUE">1</stringProp>
  304. <boolProp name="JSONVALIDATION">true</boolProp>
  305. <boolProp name="EXPECT_NULL">false</boolProp>
  306. <boolProp name="INVERT">false</boolProp>
  307. <boolProp name="ISREGEX">false</boolProp>
  308. </JSONPathAssertion>
  309. <hashTree/>
  310. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  311. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  312. <stringProp name="EXPECTED_VALUE">6</stringProp>
  313. <boolProp name="JSONVALIDATION">true</boolProp>
  314. <boolProp name="EXPECT_NULL">false</boolProp>
  315. <boolProp name="INVERT">false</boolProp>
  316. <boolProp name="ISREGEX">false</boolProp>
  317. </JSONPathAssertion>
  318. <hashTree/>
  319. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  320. <stringProp name="ConstantTimer.delay">3000</stringProp>
  321. </ConstantTimer>
  322. <hashTree/>
  323. </hashTree>
  324. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  325. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  326. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  327. <collectionProp name="Arguments.arguments">
  328. <elementProp name="" elementType="HTTPArgument">
  329. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  330. <stringProp name="Argument.value"></stringProp>
  331. <stringProp name="Argument.metadata">=</stringProp>
  332. </elementProp>
  333. </collectionProp>
  334. </elementProp>
  335. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  336. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  337. <stringProp name="HTTPSampler.protocol"></stringProp>
  338. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  339. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  340. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  341. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  342. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  343. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  344. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  345. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  346. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  347. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  348. </HTTPSamplerProxy>
  349. <hashTree>
  350. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  351. <collectionProp name="Asserion.test_strings">
  352. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  353. </collectionProp>
  354. <stringProp name="Assertion.custom_message"></stringProp>
  355. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  356. <boolProp name="Assertion.assume_success">false</boolProp>
  357. <intProp name="Assertion.test_type">16</intProp>
  358. </ResponseAssertion>
  359. <hashTree/>
  360. </hashTree>
  361. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  362. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  363. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  364. <collectionProp name="Arguments.arguments">
  365. <elementProp name="" elementType="HTTPArgument">
  366. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  367. <stringProp name="Argument.value"></stringProp>
  368. <stringProp name="Argument.metadata">=</stringProp>
  369. </elementProp>
  370. </collectionProp>
  371. </elementProp>
  372. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  373. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  374. <stringProp name="HTTPSampler.protocol"></stringProp>
  375. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  376. <stringProp name="HTTPSampler.path">/streams/application</stringProp>
  377. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  378. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  379. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  380. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  381. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  382. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  383. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  384. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  385. </HTTPSamplerProxy>
  386. <hashTree>
  387. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  388. <collectionProp name="Asserion.test_strings">
  389. <stringProp name="417596244">Stream application is dropped.</stringProp>
  390. </collectionProp>
  391. <stringProp name="Assertion.custom_message"></stringProp>
  392. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  393. <boolProp name="Assertion.assume_success">false</boolProp>
  394. <intProp name="Assertion.test_type">16</intProp>
  395. </ResponseAssertion>
  396. <hashTree/>
  397. </hashTree>
  398. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  399. <stringProp name="ConstantTimer.delay">1000</stringProp>
  400. </ConstantTimer>
  401. <hashTree/>
  402. </hashTree>
  403. </hashTree>
  404. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="true">
  405. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  406. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  407. <boolProp name="LoopController.continue_forever">false</boolProp>
  408. <stringProp name="LoopController.loops">1</stringProp>
  409. </elementProp>
  410. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  411. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  412. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  413. <stringProp name="ThreadGroup.duration"></stringProp>
  414. <stringProp name="ThreadGroup.delay"></stringProp>
  415. </ThreadGroup>
  416. <hashTree>
  417. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  418. <boolProp name="ResultCollector.error_logging">false</boolProp>
  419. <objProp>
  420. <name>saveConfig</name>
  421. <value class="SampleSaveConfiguration">
  422. <time>true</time>
  423. <latency>true</latency>
  424. <timestamp>true</timestamp>
  425. <success>true</success>
  426. <label>true</label>
  427. <code>true</code>
  428. <message>true</message>
  429. <threadName>true</threadName>
  430. <dataType>true</dataType>
  431. <encoding>false</encoding>
  432. <assertions>true</assertions>
  433. <subresults>true</subresults>
  434. <responseData>false</responseData>
  435. <samplerData>false</samplerData>
  436. <xml>false</xml>
  437. <fieldNames>true</fieldNames>
  438. <responseHeaders>false</responseHeaders>
  439. <requestHeaders>false</requestHeaders>
  440. <responseDataOnError>false</responseDataOnError>
  441. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  442. <assertionsResultsToSave>0</assertionsResultsToSave>
  443. <bytes>true</bytes>
  444. <sentBytes>true</sentBytes>
  445. <threadCounts>true</threadCounts>
  446. <idleTime>true</idleTime>
  447. <connectTime>true</connectTime>
  448. </value>
  449. </objProp>
  450. <stringProp name="filename"></stringProp>
  451. </ResultCollector>
  452. <hashTree/>
  453. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  454. <hashTree>
  455. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  456. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  457. <stringProp name="mqtt.port">1883</stringProp>
  458. <stringProp name="mqtt.version">3.1</stringProp>
  459. <stringProp name="mqtt.conn_timeout">10</stringProp>
  460. <boolProp name="mqtt.private_protocol">false</boolProp>
  461. <stringProp name="mqtt.listener_timeout">10</stringProp>
  462. <stringProp name="mqtt.protocol">TCP</stringProp>
  463. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  464. <stringProp name="mqtt.keystore_file_path"></stringProp>
  465. <stringProp name="mqtt.keystore_password"></stringProp>
  466. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  467. <stringProp name="mqtt.clientcert_password"></stringProp>
  468. <stringProp name="mqtt.user_name"></stringProp>
  469. <stringProp name="mqtt.password"></stringProp>
  470. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  471. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  472. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  473. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  474. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  475. </net.xmeter.samplers.ConnectSampler>
  476. <hashTree/>
  477. </hashTree>
  478. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  479. <stringProp name="mqtt.topic_name">devices/result</stringProp>
  480. <stringProp name="mqtt.qos_level">0</stringProp>
  481. <boolProp name="mqtt.add_timestamp">false</boolProp>
  482. <boolProp name="mqtt.debug_response">true</boolProp>
  483. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  484. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  485. </net.xmeter.samplers.SubSampler>
  486. <hashTree>
  487. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  488. <stringProp name="JSON_PATH">$[0].Temperature</stringProp>
  489. <stringProp name="EXPECTED_VALUE"></stringProp>
  490. <boolProp name="JSONVALIDATION">false</boolProp>
  491. <boolProp name="EXPECT_NULL">false</boolProp>
  492. <boolProp name="INVERT">false</boolProp>
  493. <boolProp name="ISREGEX">false</boolProp>
  494. </JSONPathAssertion>
  495. <hashTree/>
  496. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  497. <stringProp name="JSON_PATH">$[0].Humidity</stringProp>
  498. <stringProp name="EXPECTED_VALUE"></stringProp>
  499. <boolProp name="JSONVALIDATION">false</boolProp>
  500. <boolProp name="EXPECT_NULL">false</boolProp>
  501. <boolProp name="INVERT">false</boolProp>
  502. <boolProp name="ISREGEX">false</boolProp>
  503. </JSONPathAssertion>
  504. <hashTree/>
  505. </hashTree>
  506. </hashTree>
  507. </hashTree>
  508. </hashTree>
  509. </jmeterTestPlan>