shared_source_rules.jmx 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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="5.0" jmeter="5.3">
  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="mqtt_srv" elementType="Argument">
  43. <stringProp name="Argument.name">mqtt_srv</stringProp>
  44. <stringProp name="Argument.value">127.0.0.1</stringProp>
  45. <stringProp name="Argument.metadata">=</stringProp>
  46. </elementProp>
  47. </collectionProp>
  48. </Arguments>
  49. <hashTree/>
  50. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  51. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  52. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  53. <boolProp name="LoopController.continue_forever">false</boolProp>
  54. <stringProp name="LoopController.loops">1</stringProp>
  55. </elementProp>
  56. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  57. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  58. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  59. <stringProp name="ThreadGroup.duration"></stringProp>
  60. <stringProp name="ThreadGroup.delay"></stringProp>
  61. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  62. </ThreadGroup>
  63. <hashTree>
  64. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  65. <boolProp name="ResultCollector.error_logging">false</boolProp>
  66. <objProp>
  67. <name>saveConfig</name>
  68. <value class="SampleSaveConfiguration">
  69. <time>true</time>
  70. <latency>true</latency>
  71. <timestamp>true</timestamp>
  72. <success>true</success>
  73. <label>true</label>
  74. <code>true</code>
  75. <message>true</message>
  76. <threadName>true</threadName>
  77. <dataType>true</dataType>
  78. <encoding>false</encoding>
  79. <assertions>true</assertions>
  80. <subresults>true</subresults>
  81. <responseData>false</responseData>
  82. <samplerData>false</samplerData>
  83. <xml>false</xml>
  84. <fieldNames>true</fieldNames>
  85. <responseHeaders>false</responseHeaders>
  86. <requestHeaders>false</requestHeaders>
  87. <responseDataOnError>false</responseDataOnError>
  88. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  89. <assertionsResultsToSave>0</assertionsResultsToSave>
  90. <bytes>true</bytes>
  91. <sentBytes>true</sentBytes>
  92. <threadCounts>true</threadCounts>
  93. <idleTime>true</idleTime>
  94. <connectTime>true</connectTime>
  95. </value>
  96. </objProp>
  97. <stringProp name="filename"></stringProp>
  98. </ResultCollector>
  99. <hashTree/>
  100. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="API" enabled="true">
  101. <boolProp name="TransactionController.includeTimers">false</boolProp>
  102. <boolProp name="TransactionController.parent">false</boolProp>
  103. </TransactionController>
  104. <hashTree>
  105. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  106. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  107. <stringProp name="mqtt.port">1883</stringProp>
  108. <stringProp name="mqtt.version">3.1</stringProp>
  109. <stringProp name="mqtt.conn_timeout">10</stringProp>
  110. <boolProp name="mqtt.private_protocol">false</boolProp>
  111. <stringProp name="mqtt.listener_timeout">10</stringProp>
  112. <stringProp name="mqtt.protocol">TCP</stringProp>
  113. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  114. <stringProp name="mqtt.keystore_file_path"></stringProp>
  115. <stringProp name="mqtt.keystore_password"></stringProp>
  116. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  117. <stringProp name="mqtt.clientcert_password"></stringProp>
  118. <stringProp name="mqtt.user_name"></stringProp>
  119. <stringProp name="mqtt.password"></stringProp>
  120. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  121. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  122. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  123. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  124. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  125. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  126. </net.xmeter.samplers.ConnectSampler>
  127. <hashTree/>
  128. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream_Demo" enabled="true">
  129. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  130. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  131. <collectionProp name="Arguments.arguments">
  132. <elementProp name="" elementType="HTTPArgument">
  133. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  134. <stringProp name="Argument.value">{&#xd;
  135. &quot;sql&quot; : &quot;create stream demo (temperature float, humidity bigint) WITH (FORMAT=\&quot;JSON\&quot;, DATASOURCE=\&quot;devices/+/messages\&quot;, SHARED=\&quot;true\&quot; )&quot;&#xd;
  136. }</stringProp>
  137. <stringProp name="Argument.metadata">=</stringProp>
  138. </elementProp>
  139. </collectionProp>
  140. </elementProp>
  141. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  142. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  143. <stringProp name="HTTPSampler.protocol"></stringProp>
  144. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  145. <stringProp name="HTTPSampler.path">/streams</stringProp>
  146. <stringProp name="HTTPSampler.method">POST</stringProp>
  147. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  148. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  149. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  150. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  151. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  152. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  153. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  154. </HTTPSamplerProxy>
  155. <hashTree>
  156. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  157. <collectionProp name="Asserion.test_strings">
  158. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  159. </collectionProp>
  160. <stringProp name="Assertion.custom_message"></stringProp>
  161. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  162. <boolProp name="Assertion.assume_success">true</boolProp>
  163. <intProp name="Assertion.test_type">16</intProp>
  164. </ResponseAssertion>
  165. <hashTree/>
  166. </hashTree>
  167. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule1" enabled="true">
  168. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  169. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  170. <collectionProp name="Arguments.arguments">
  171. <elementProp name="" elementType="HTTPArgument">
  172. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  173. <stringProp name="Argument.value">{&#xd;
  174. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  175. &quot;sql&quot;: &quot;SELECT * FROM demo WHERE temperature &gt; 30&quot;,&#xd;
  176. &quot;actions&quot;: [&#xd;
  177. {&#xd;
  178. &quot;mqtt&quot;: {&#xd;
  179. &quot;server&quot;: &quot;tcp://${mqtt_srv}:1883&quot;,&#xd;
  180. &quot;topic&quot;: &quot;devices/result/temperature&quot;,&#xd;
  181. &quot;qos&quot;: 1,&#xd;
  182. &quot;clientId&quot;: &quot;demo_001&quot;&#xd;
  183. }&#xd;
  184. }&#xd;
  185. ]&#xd;
  186. }</stringProp>
  187. <stringProp name="Argument.metadata">=</stringProp>
  188. </elementProp>
  189. </collectionProp>
  190. </elementProp>
  191. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  192. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  193. <stringProp name="HTTPSampler.protocol"></stringProp>
  194. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  195. <stringProp name="HTTPSampler.path">/rules</stringProp>
  196. <stringProp name="HTTPSampler.method">POST</stringProp>
  197. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  198. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  199. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  200. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  201. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  202. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  203. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  204. </HTTPSamplerProxy>
  205. <hashTree>
  206. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  207. <collectionProp name="Asserion.test_strings">
  208. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  209. </collectionProp>
  210. <stringProp name="Assertion.custom_message"></stringProp>
  211. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  212. <boolProp name="Assertion.assume_success">true</boolProp>
  213. <intProp name="Assertion.test_type">16</intProp>
  214. </ResponseAssertion>
  215. <hashTree/>
  216. </hashTree>
  217. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule1Status" enabled="true">
  218. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  219. <collectionProp name="Arguments.arguments"/>
  220. </elementProp>
  221. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  222. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  223. <stringProp name="HTTPSampler.protocol"></stringProp>
  224. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  225. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  226. <stringProp name="HTTPSampler.method">GET</stringProp>
  227. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  228. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  229. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  230. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  231. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  232. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  233. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  234. </HTTPSamplerProxy>
  235. <hashTree>
  236. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  237. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  238. <stringProp name="EXPECTED_VALUE">0</stringProp>
  239. <boolProp name="JSONVALIDATION">true</boolProp>
  240. <boolProp name="EXPECT_NULL">false</boolProp>
  241. <boolProp name="INVERT">false</boolProp>
  242. <boolProp name="ISREGEX">false</boolProp>
  243. </JSONPathAssertion>
  244. <hashTree/>
  245. </hashTree>
  246. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule2" enabled="true">
  247. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  248. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  249. <collectionProp name="Arguments.arguments">
  250. <elementProp name="" elementType="HTTPArgument">
  251. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  252. <stringProp name="Argument.value">{&#xd;
  253. &quot;id&quot;: &quot;rule2&quot;,&#xd;
  254. &quot;sql&quot;: &quot;SELECT * FROM demo WHERE humidity &gt; 50&quot;,&#xd;
  255. &quot;actions&quot;: [&#xd;
  256. {&#xd;
  257. &quot;mqtt&quot;: {&#xd;
  258. &quot;server&quot;: &quot;tcp://${mqtt_srv}:1883&quot;,&#xd;
  259. &quot;topic&quot;: &quot;devices/result/humidity&quot;,&#xd;
  260. &quot;qos&quot;: 1,&#xd;
  261. &quot;clientId&quot;: &quot;demo_002&quot;&#xd;
  262. }&#xd;
  263. }&#xd;
  264. ]&#xd;
  265. }</stringProp>
  266. <stringProp name="Argument.metadata">=</stringProp>
  267. </elementProp>
  268. </collectionProp>
  269. </elementProp>
  270. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  271. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  272. <stringProp name="HTTPSampler.protocol"></stringProp>
  273. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  274. <stringProp name="HTTPSampler.path">/rules</stringProp>
  275. <stringProp name="HTTPSampler.method">POST</stringProp>
  276. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  277. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  278. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  279. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  280. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  281. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  282. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  283. </HTTPSamplerProxy>
  284. <hashTree>
  285. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  286. <collectionProp name="Asserion.test_strings">
  287. <stringProp name="1979367491">Rule rule2 was created</stringProp>
  288. </collectionProp>
  289. <stringProp name="Assertion.custom_message"></stringProp>
  290. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  291. <boolProp name="Assertion.assume_success">true</boolProp>
  292. <intProp name="Assertion.test_type">16</intProp>
  293. </ResponseAssertion>
  294. <hashTree/>
  295. </hashTree>
  296. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule2Status" enabled="true">
  297. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  298. <collectionProp name="Arguments.arguments"/>
  299. </elementProp>
  300. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  301. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  302. <stringProp name="HTTPSampler.protocol"></stringProp>
  303. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  304. <stringProp name="HTTPSampler.path">/rules/rule2/status</stringProp>
  305. <stringProp name="HTTPSampler.method">GET</stringProp>
  306. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  307. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  308. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  309. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  310. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  311. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  312. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  313. </HTTPSamplerProxy>
  314. <hashTree>
  315. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  316. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  317. <stringProp name="EXPECTED_VALUE">0</stringProp>
  318. <boolProp name="JSONVALIDATION">true</boolProp>
  319. <boolProp name="EXPECT_NULL">false</boolProp>
  320. <boolProp name="INVERT">false</boolProp>
  321. <boolProp name="ISREGEX">false</boolProp>
  322. </JSONPathAssertion>
  323. <hashTree/>
  324. </hashTree>
  325. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule3" enabled="true">
  326. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  327. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  328. <collectionProp name="Arguments.arguments">
  329. <elementProp name="" elementType="HTTPArgument">
  330. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  331. <stringProp name="Argument.value">{&#xd;
  332. &quot;id&quot;: &quot;rule3&quot;,&#xd;
  333. &quot;sql&quot;: &quot;SELECT * FROM demo WHERE temperature &lt; 30 and humidity &lt; 50&quot;,&#xd;
  334. &quot;actions&quot;: [&#xd;
  335. {&#xd;
  336. &quot;mqtt&quot;: {&#xd;
  337. &quot;server&quot;: &quot;tcp://${mqtt_srv}:1883&quot;,&#xd;
  338. &quot;topic&quot;: &quot;devices/result/both&quot;,&#xd;
  339. &quot;qos&quot;: 1,&#xd;
  340. &quot;clientId&quot;: &quot;demo_003&quot;&#xd;
  341. }&#xd;
  342. }&#xd;
  343. ]&#xd;
  344. }</stringProp>
  345. <stringProp name="Argument.metadata">=</stringProp>
  346. </elementProp>
  347. </collectionProp>
  348. </elementProp>
  349. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  350. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  351. <stringProp name="HTTPSampler.protocol"></stringProp>
  352. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  353. <stringProp name="HTTPSampler.path">/rules</stringProp>
  354. <stringProp name="HTTPSampler.method">POST</stringProp>
  355. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  356. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  357. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  358. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  359. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  360. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  361. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  362. </HTTPSamplerProxy>
  363. <hashTree>
  364. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  365. <collectionProp name="Asserion.test_strings">
  366. <stringProp name="1685964484">Rule rule3 was created</stringProp>
  367. </collectionProp>
  368. <stringProp name="Assertion.custom_message"></stringProp>
  369. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  370. <boolProp name="Assertion.assume_success">true</boolProp>
  371. <intProp name="Assertion.test_type">16</intProp>
  372. </ResponseAssertion>
  373. <hashTree/>
  374. </hashTree>
  375. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule3Status" enabled="true">
  376. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  377. <collectionProp name="Arguments.arguments"/>
  378. </elementProp>
  379. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  380. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  381. <stringProp name="HTTPSampler.protocol"></stringProp>
  382. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  383. <stringProp name="HTTPSampler.path">/rules/rule3/status</stringProp>
  384. <stringProp name="HTTPSampler.method">GET</stringProp>
  385. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  386. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  387. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  388. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  389. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  390. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  391. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  392. </HTTPSamplerProxy>
  393. <hashTree>
  394. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  395. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  396. <stringProp name="EXPECTED_VALUE">0</stringProp>
  397. <boolProp name="JSONVALIDATION">true</boolProp>
  398. <boolProp name="EXPECT_NULL">false</boolProp>
  399. <boolProp name="INVERT">false</boolProp>
  400. <boolProp name="ISREGEX">false</boolProp>
  401. </JSONPathAssertion>
  402. <hashTree/>
  403. </hashTree>
  404. <LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="loop_controller" enabled="true">
  405. <boolProp name="LoopController.continue_forever">true</boolProp>
  406. <stringProp name="LoopController.loops">10</stringProp>
  407. </LoopController>
  408. <hashTree>
  409. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  410. <stringProp name="delimiter">,</stringProp>
  411. <stringProp name="fileEncoding"></stringProp>
  412. <stringProp name="filename">iot_data.txt</stringProp>
  413. <boolProp name="ignoreFirstLine">false</boolProp>
  414. <boolProp name="quotedData">false</boolProp>
  415. <boolProp name="recycle">true</boolProp>
  416. <stringProp name="shareMode">shareMode.thread</stringProp>
  417. <boolProp name="stopThread">false</boolProp>
  418. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  419. </CSVDataSet>
  420. <hashTree/>
  421. <net.xmeter.samplers.PubSampler guiclass="net.xmeter.gui.PubSamplerUI" testclass="net.xmeter.samplers.PubSampler" testname="MQTT Pub Sampler" enabled="true">
  422. <stringProp name="mqtt.topic_name">devices/${device_id}/messages</stringProp>
  423. <stringProp name="mqtt.qos_level">0</stringProp>
  424. <boolProp name="mqtt.add_timestamp">false</boolProp>
  425. <stringProp name="mqtt.message_type">String</stringProp>
  426. <stringProp name="mqtt.message_type_fixed_length">1024</stringProp>
  427. <stringProp name="mqtt.message_to_sent">{&quot;temperature&quot;: ${temperature}, &quot;humidity&quot; : ${humidity}}</stringProp>
  428. <boolProp name="mqtt.retained_message">false</boolProp>
  429. </net.xmeter.samplers.PubSampler>
  430. <hashTree/>
  431. </hashTree>
  432. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule1Status" enabled="true">
  433. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  434. <collectionProp name="Arguments.arguments"/>
  435. </elementProp>
  436. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  437. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  438. <stringProp name="HTTPSampler.protocol"></stringProp>
  439. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  440. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  441. <stringProp name="HTTPSampler.method">GET</stringProp>
  442. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  443. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  444. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  445. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  446. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  447. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  448. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  449. </HTTPSamplerProxy>
  450. <hashTree>
  451. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  452. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  453. <stringProp name="EXPECTED_VALUE">10</stringProp>
  454. <boolProp name="JSONVALIDATION">true</boolProp>
  455. <boolProp name="EXPECT_NULL">false</boolProp>
  456. <boolProp name="INVERT">false</boolProp>
  457. <boolProp name="ISREGEX">false</boolProp>
  458. </JSONPathAssertion>
  459. <hashTree/>
  460. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  461. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  462. <stringProp name="EXPECTED_VALUE">6</stringProp>
  463. <boolProp name="JSONVALIDATION">true</boolProp>
  464. <boolProp name="EXPECT_NULL">false</boolProp>
  465. <boolProp name="INVERT">false</boolProp>
  466. <boolProp name="ISREGEX">false</boolProp>
  467. </JSONPathAssertion>
  468. <hashTree/>
  469. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  470. <stringProp name="ConstantTimer.delay">5000</stringProp>
  471. </ConstantTimer>
  472. <hashTree/>
  473. </hashTree>
  474. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule1" enabled="true">
  475. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  476. <collectionProp name="Arguments.arguments"/>
  477. </elementProp>
  478. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  479. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  480. <stringProp name="HTTPSampler.protocol"></stringProp>
  481. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  482. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  483. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  484. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  485. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  486. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  487. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  488. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  489. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  490. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  491. </HTTPSamplerProxy>
  492. <hashTree>
  493. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  494. <collectionProp name="Asserion.test_strings">
  495. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  496. </collectionProp>
  497. <stringProp name="Assertion.custom_message"></stringProp>
  498. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  499. <boolProp name="Assertion.assume_success">false</boolProp>
  500. <intProp name="Assertion.test_type">16</intProp>
  501. </ResponseAssertion>
  502. <hashTree/>
  503. </hashTree>
  504. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule2Status" enabled="true">
  505. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  506. <collectionProp name="Arguments.arguments"/>
  507. </elementProp>
  508. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  509. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  510. <stringProp name="HTTPSampler.protocol"></stringProp>
  511. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  512. <stringProp name="HTTPSampler.path">/rules/rule2/status</stringProp>
  513. <stringProp name="HTTPSampler.method">GET</stringProp>
  514. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  515. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  516. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  517. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  518. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  519. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  520. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  521. </HTTPSamplerProxy>
  522. <hashTree>
  523. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  524. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  525. <stringProp name="EXPECTED_VALUE">10</stringProp>
  526. <boolProp name="JSONVALIDATION">true</boolProp>
  527. <boolProp name="EXPECT_NULL">false</boolProp>
  528. <boolProp name="INVERT">false</boolProp>
  529. <boolProp name="ISREGEX">false</boolProp>
  530. </JSONPathAssertion>
  531. <hashTree/>
  532. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  533. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  534. <stringProp name="EXPECTED_VALUE">2</stringProp>
  535. <boolProp name="JSONVALIDATION">true</boolProp>
  536. <boolProp name="EXPECT_NULL">false</boolProp>
  537. <boolProp name="INVERT">false</boolProp>
  538. <boolProp name="ISREGEX">false</boolProp>
  539. </JSONPathAssertion>
  540. <hashTree/>
  541. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  542. <stringProp name="ConstantTimer.delay">5000</stringProp>
  543. </ConstantTimer>
  544. <hashTree/>
  545. </hashTree>
  546. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule2" enabled="true">
  547. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  548. <collectionProp name="Arguments.arguments"/>
  549. </elementProp>
  550. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  551. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  552. <stringProp name="HTTPSampler.protocol"></stringProp>
  553. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  554. <stringProp name="HTTPSampler.path">/rules/rule2</stringProp>
  555. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  556. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  557. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  558. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  559. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  560. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  561. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  562. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  563. </HTTPSamplerProxy>
  564. <hashTree>
  565. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  566. <collectionProp name="Asserion.test_strings">
  567. <stringProp name="423847478">Rule rule2 is dropped.</stringProp>
  568. </collectionProp>
  569. <stringProp name="Assertion.custom_message"></stringProp>
  570. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  571. <boolProp name="Assertion.assume_success">false</boolProp>
  572. <intProp name="Assertion.test_type">16</intProp>
  573. </ResponseAssertion>
  574. <hashTree/>
  575. </hashTree>
  576. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule3Status" enabled="true">
  577. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  578. <collectionProp name="Arguments.arguments"/>
  579. </elementProp>
  580. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  581. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  582. <stringProp name="HTTPSampler.protocol"></stringProp>
  583. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  584. <stringProp name="HTTPSampler.path">/rules/rule3/status</stringProp>
  585. <stringProp name="HTTPSampler.method">GET</stringProp>
  586. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  587. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  588. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  589. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  590. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  591. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  592. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  593. </HTTPSamplerProxy>
  594. <hashTree>
  595. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  596. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  597. <stringProp name="EXPECTED_VALUE">10</stringProp>
  598. <boolProp name="JSONVALIDATION">true</boolProp>
  599. <boolProp name="EXPECT_NULL">false</boolProp>
  600. <boolProp name="INVERT">false</boolProp>
  601. <boolProp name="ISREGEX">false</boolProp>
  602. </JSONPathAssertion>
  603. <hashTree/>
  604. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  605. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  606. <stringProp name="EXPECTED_VALUE">3</stringProp>
  607. <boolProp name="JSONVALIDATION">true</boolProp>
  608. <boolProp name="EXPECT_NULL">false</boolProp>
  609. <boolProp name="INVERT">false</boolProp>
  610. <boolProp name="ISREGEX">false</boolProp>
  611. </JSONPathAssertion>
  612. <hashTree/>
  613. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  614. <stringProp name="ConstantTimer.delay">5000</stringProp>
  615. </ConstantTimer>
  616. <hashTree/>
  617. </hashTree>
  618. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule3" enabled="true">
  619. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  620. <collectionProp name="Arguments.arguments"/>
  621. </elementProp>
  622. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  623. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  624. <stringProp name="HTTPSampler.protocol"></stringProp>
  625. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  626. <stringProp name="HTTPSampler.path">/rules/rule3</stringProp>
  627. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  628. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  629. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  630. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  631. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  632. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  633. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  634. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  635. </HTTPSamplerProxy>
  636. <hashTree>
  637. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  638. <collectionProp name="Asserion.test_strings">
  639. <stringProp name="130444471">Rule rule3 is dropped.</stringProp>
  640. </collectionProp>
  641. <stringProp name="Assertion.custom_message"></stringProp>
  642. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  643. <boolProp name="Assertion.assume_success">false</boolProp>
  644. <intProp name="Assertion.test_type">16</intProp>
  645. </ResponseAssertion>
  646. <hashTree/>
  647. </hashTree>
  648. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  649. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  650. <collectionProp name="Arguments.arguments"/>
  651. </elementProp>
  652. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  653. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  654. <stringProp name="HTTPSampler.protocol"></stringProp>
  655. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  656. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  657. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  658. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  659. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  660. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  661. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  662. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  663. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  664. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  665. </HTTPSamplerProxy>
  666. <hashTree>
  667. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  668. <collectionProp name="Asserion.test_strings">
  669. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  670. </collectionProp>
  671. <stringProp name="Assertion.custom_message"></stringProp>
  672. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  673. <boolProp name="Assertion.assume_success">false</boolProp>
  674. <intProp name="Assertion.test_type">16</intProp>
  675. </ResponseAssertion>
  676. <hashTree/>
  677. </hashTree>
  678. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  679. <stringProp name="ConstantTimer.delay">500</stringProp>
  680. </ConstantTimer>
  681. <hashTree/>
  682. </hashTree>
  683. </hashTree>
  684. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result1" enabled="true">
  685. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  686. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  687. <boolProp name="LoopController.continue_forever">false</boolProp>
  688. <stringProp name="LoopController.loops">6</stringProp>
  689. </elementProp>
  690. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  691. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  692. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  693. <stringProp name="ThreadGroup.duration"></stringProp>
  694. <stringProp name="ThreadGroup.delay"></stringProp>
  695. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  696. </ThreadGroup>
  697. <hashTree>
  698. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  699. <boolProp name="ResultCollector.error_logging">false</boolProp>
  700. <objProp>
  701. <name>saveConfig</name>
  702. <value class="SampleSaveConfiguration">
  703. <time>true</time>
  704. <latency>true</latency>
  705. <timestamp>true</timestamp>
  706. <success>true</success>
  707. <label>true</label>
  708. <code>true</code>
  709. <message>true</message>
  710. <threadName>true</threadName>
  711. <dataType>true</dataType>
  712. <encoding>false</encoding>
  713. <assertions>true</assertions>
  714. <subresults>true</subresults>
  715. <responseData>false</responseData>
  716. <samplerData>false</samplerData>
  717. <xml>false</xml>
  718. <fieldNames>true</fieldNames>
  719. <responseHeaders>false</responseHeaders>
  720. <requestHeaders>false</requestHeaders>
  721. <responseDataOnError>false</responseDataOnError>
  722. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  723. <assertionsResultsToSave>0</assertionsResultsToSave>
  724. <bytes>true</bytes>
  725. <sentBytes>true</sentBytes>
  726. <threadCounts>true</threadCounts>
  727. <idleTime>true</idleTime>
  728. <connectTime>true</connectTime>
  729. </value>
  730. </objProp>
  731. <stringProp name="filename"></stringProp>
  732. </ResultCollector>
  733. <hashTree/>
  734. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  735. <hashTree>
  736. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  737. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  738. <stringProp name="mqtt.port">1883</stringProp>
  739. <stringProp name="mqtt.version">3.1</stringProp>
  740. <stringProp name="mqtt.conn_timeout">10</stringProp>
  741. <boolProp name="mqtt.private_protocol">false</boolProp>
  742. <stringProp name="mqtt.listener_timeout">10</stringProp>
  743. <stringProp name="mqtt.protocol">TCP</stringProp>
  744. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  745. <stringProp name="mqtt.keystore_file_path"></stringProp>
  746. <stringProp name="mqtt.keystore_password"></stringProp>
  747. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  748. <stringProp name="mqtt.clientcert_password"></stringProp>
  749. <stringProp name="mqtt.user_name"></stringProp>
  750. <stringProp name="mqtt.password"></stringProp>
  751. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  752. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  753. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  754. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  755. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  756. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  757. </net.xmeter.samplers.ConnectSampler>
  758. <hashTree/>
  759. </hashTree>
  760. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  761. <stringProp name="mqtt.topic_name">devices/result/temperature</stringProp>
  762. <stringProp name="mqtt.qos_level">0</stringProp>
  763. <boolProp name="mqtt.add_timestamp">false</boolProp>
  764. <boolProp name="mqtt.debug_response">true</boolProp>
  765. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  766. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  767. </net.xmeter.samplers.SubSampler>
  768. <hashTree>
  769. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  770. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  771. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  772. <boolProp name="JSONVALIDATION">true</boolProp>
  773. <boolProp name="EXPECT_NULL">false</boolProp>
  774. <boolProp name="INVERT">false</boolProp>
  775. <boolProp name="ISREGEX">false</boolProp>
  776. </JSONPathAssertion>
  777. <hashTree/>
  778. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  779. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  780. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  781. <boolProp name="JSONVALIDATION">true</boolProp>
  782. <boolProp name="EXPECT_NULL">false</boolProp>
  783. <boolProp name="INVERT">false</boolProp>
  784. <boolProp name="ISREGEX">false</boolProp>
  785. </JSONPathAssertion>
  786. <hashTree/>
  787. </hashTree>
  788. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  789. <stringProp name="delimiter">,</stringProp>
  790. <stringProp name="fileEncoding"></stringProp>
  791. <stringProp name="filename">select_condition_iot_data.txt</stringProp>
  792. <boolProp name="ignoreFirstLine">false</boolProp>
  793. <boolProp name="quotedData">false</boolProp>
  794. <boolProp name="recycle">true</boolProp>
  795. <stringProp name="shareMode">shareMode.thread</stringProp>
  796. <boolProp name="stopThread">false</boolProp>
  797. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  798. </CSVDataSet>
  799. <hashTree/>
  800. </hashTree>
  801. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result2" enabled="true">
  802. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  803. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  804. <boolProp name="LoopController.continue_forever">false</boolProp>
  805. <stringProp name="LoopController.loops">2</stringProp>
  806. </elementProp>
  807. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  808. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  809. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  810. <stringProp name="ThreadGroup.duration"></stringProp>
  811. <stringProp name="ThreadGroup.delay"></stringProp>
  812. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  813. </ThreadGroup>
  814. <hashTree>
  815. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  816. <boolProp name="ResultCollector.error_logging">false</boolProp>
  817. <objProp>
  818. <name>saveConfig</name>
  819. <value class="SampleSaveConfiguration">
  820. <time>true</time>
  821. <latency>true</latency>
  822. <timestamp>true</timestamp>
  823. <success>true</success>
  824. <label>true</label>
  825. <code>true</code>
  826. <message>true</message>
  827. <threadName>true</threadName>
  828. <dataType>true</dataType>
  829. <encoding>false</encoding>
  830. <assertions>true</assertions>
  831. <subresults>true</subresults>
  832. <responseData>false</responseData>
  833. <samplerData>false</samplerData>
  834. <xml>false</xml>
  835. <fieldNames>true</fieldNames>
  836. <responseHeaders>false</responseHeaders>
  837. <requestHeaders>false</requestHeaders>
  838. <responseDataOnError>false</responseDataOnError>
  839. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  840. <assertionsResultsToSave>0</assertionsResultsToSave>
  841. <bytes>true</bytes>
  842. <sentBytes>true</sentBytes>
  843. <threadCounts>true</threadCounts>
  844. <idleTime>true</idleTime>
  845. <connectTime>true</connectTime>
  846. </value>
  847. </objProp>
  848. <stringProp name="filename"></stringProp>
  849. </ResultCollector>
  850. <hashTree/>
  851. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  852. <hashTree>
  853. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  854. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  855. <stringProp name="mqtt.port">1883</stringProp>
  856. <stringProp name="mqtt.version">3.1</stringProp>
  857. <stringProp name="mqtt.conn_timeout">10</stringProp>
  858. <boolProp name="mqtt.private_protocol">false</boolProp>
  859. <stringProp name="mqtt.listener_timeout">10</stringProp>
  860. <stringProp name="mqtt.protocol">TCP</stringProp>
  861. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  862. <stringProp name="mqtt.keystore_file_path"></stringProp>
  863. <stringProp name="mqtt.keystore_password"></stringProp>
  864. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  865. <stringProp name="mqtt.clientcert_password"></stringProp>
  866. <stringProp name="mqtt.user_name"></stringProp>
  867. <stringProp name="mqtt.password"></stringProp>
  868. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  869. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  870. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  871. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  872. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  873. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  874. </net.xmeter.samplers.ConnectSampler>
  875. <hashTree/>
  876. </hashTree>
  877. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  878. <stringProp name="mqtt.topic_name">devices/result/humidity</stringProp>
  879. <stringProp name="mqtt.qos_level">0</stringProp>
  880. <boolProp name="mqtt.add_timestamp">false</boolProp>
  881. <boolProp name="mqtt.debug_response">true</boolProp>
  882. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  883. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  884. </net.xmeter.samplers.SubSampler>
  885. <hashTree>
  886. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  887. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  888. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  889. <boolProp name="JSONVALIDATION">true</boolProp>
  890. <boolProp name="EXPECT_NULL">false</boolProp>
  891. <boolProp name="INVERT">false</boolProp>
  892. <boolProp name="ISREGEX">false</boolProp>
  893. </JSONPathAssertion>
  894. <hashTree/>
  895. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  896. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  897. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  898. <boolProp name="JSONVALIDATION">true</boolProp>
  899. <boolProp name="EXPECT_NULL">false</boolProp>
  900. <boolProp name="INVERT">false</boolProp>
  901. <boolProp name="ISREGEX">false</boolProp>
  902. </JSONPathAssertion>
  903. <hashTree/>
  904. </hashTree>
  905. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  906. <stringProp name="delimiter">,</stringProp>
  907. <stringProp name="fileEncoding"></stringProp>
  908. <stringProp name="filename">select_condition_iot_data2.txt</stringProp>
  909. <boolProp name="ignoreFirstLine">false</boolProp>
  910. <boolProp name="quotedData">false</boolProp>
  911. <boolProp name="recycle">true</boolProp>
  912. <stringProp name="shareMode">shareMode.thread</stringProp>
  913. <boolProp name="stopThread">false</boolProp>
  914. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  915. </CSVDataSet>
  916. <hashTree/>
  917. </hashTree>
  918. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result3" enabled="true">
  919. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  920. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  921. <boolProp name="LoopController.continue_forever">false</boolProp>
  922. <stringProp name="LoopController.loops">3</stringProp>
  923. </elementProp>
  924. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  925. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  926. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  927. <stringProp name="ThreadGroup.duration"></stringProp>
  928. <stringProp name="ThreadGroup.delay"></stringProp>
  929. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  930. </ThreadGroup>
  931. <hashTree>
  932. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  933. <boolProp name="ResultCollector.error_logging">false</boolProp>
  934. <objProp>
  935. <name>saveConfig</name>
  936. <value class="SampleSaveConfiguration">
  937. <time>true</time>
  938. <latency>true</latency>
  939. <timestamp>true</timestamp>
  940. <success>true</success>
  941. <label>true</label>
  942. <code>true</code>
  943. <message>true</message>
  944. <threadName>true</threadName>
  945. <dataType>true</dataType>
  946. <encoding>false</encoding>
  947. <assertions>true</assertions>
  948. <subresults>true</subresults>
  949. <responseData>false</responseData>
  950. <samplerData>false</samplerData>
  951. <xml>false</xml>
  952. <fieldNames>true</fieldNames>
  953. <responseHeaders>false</responseHeaders>
  954. <requestHeaders>false</requestHeaders>
  955. <responseDataOnError>false</responseDataOnError>
  956. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  957. <assertionsResultsToSave>0</assertionsResultsToSave>
  958. <bytes>true</bytes>
  959. <sentBytes>true</sentBytes>
  960. <threadCounts>true</threadCounts>
  961. <idleTime>true</idleTime>
  962. <connectTime>true</connectTime>
  963. </value>
  964. </objProp>
  965. <stringProp name="filename"></stringProp>
  966. </ResultCollector>
  967. <hashTree/>
  968. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  969. <hashTree>
  970. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  971. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  972. <stringProp name="mqtt.port">1883</stringProp>
  973. <stringProp name="mqtt.version">3.1</stringProp>
  974. <stringProp name="mqtt.conn_timeout">10</stringProp>
  975. <boolProp name="mqtt.private_protocol">false</boolProp>
  976. <stringProp name="mqtt.listener_timeout">10</stringProp>
  977. <stringProp name="mqtt.protocol">TCP</stringProp>
  978. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  979. <stringProp name="mqtt.keystore_file_path"></stringProp>
  980. <stringProp name="mqtt.keystore_password"></stringProp>
  981. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  982. <stringProp name="mqtt.clientcert_password"></stringProp>
  983. <stringProp name="mqtt.user_name"></stringProp>
  984. <stringProp name="mqtt.password"></stringProp>
  985. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  986. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  987. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  988. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  989. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  990. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  991. </net.xmeter.samplers.ConnectSampler>
  992. <hashTree/>
  993. </hashTree>
  994. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  995. <stringProp name="mqtt.topic_name">devices/result/both</stringProp>
  996. <stringProp name="mqtt.qos_level">0</stringProp>
  997. <boolProp name="mqtt.add_timestamp">false</boolProp>
  998. <boolProp name="mqtt.debug_response">true</boolProp>
  999. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  1000. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  1001. </net.xmeter.samplers.SubSampler>
  1002. <hashTree>
  1003. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  1004. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  1005. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  1006. <boolProp name="JSONVALIDATION">true</boolProp>
  1007. <boolProp name="EXPECT_NULL">false</boolProp>
  1008. <boolProp name="INVERT">false</boolProp>
  1009. <boolProp name="ISREGEX">false</boolProp>
  1010. </JSONPathAssertion>
  1011. <hashTree/>
  1012. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  1013. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  1014. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  1015. <boolProp name="JSONVALIDATION">true</boolProp>
  1016. <boolProp name="EXPECT_NULL">false</boolProp>
  1017. <boolProp name="INVERT">false</boolProp>
  1018. <boolProp name="ISREGEX">false</boolProp>
  1019. </JSONPathAssertion>
  1020. <hashTree/>
  1021. </hashTree>
  1022. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  1023. <stringProp name="delimiter">,</stringProp>
  1024. <stringProp name="fileEncoding"></stringProp>
  1025. <stringProp name="filename">select_condition_iot_data3.txt</stringProp>
  1026. <boolProp name="ignoreFirstLine">false</boolProp>
  1027. <boolProp name="quotedData">false</boolProp>
  1028. <boolProp name="recycle">true</boolProp>
  1029. <stringProp name="shareMode">shareMode.thread</stringProp>
  1030. <boolProp name="stopThread">false</boolProp>
  1031. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  1032. </CSVDataSet>
  1033. <hashTree/>
  1034. </hashTree>
  1035. </hashTree>
  1036. </hashTree>
  1037. </jmeterTestPlan>