shared_source_rules.jmx 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2022 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;ruleShared1&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="1865089373">Rule ruleShared1 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/ruleShared1/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;ruleShared2&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="1571686366">Rule ruleShared2 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/ruleShared2/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;ruleShared3&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="1278283359">Rule ruleShared3 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/ruleShared3/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. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_RestartRule1" enabled="true">
  405. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  406. <collectionProp name="Arguments.arguments"/>
  407. </elementProp>
  408. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  409. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  410. <stringProp name="HTTPSampler.protocol"></stringProp>
  411. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  412. <stringProp name="HTTPSampler.path">/rules/ruleShared1/restart</stringProp>
  413. <stringProp name="HTTPSampler.method">POST</stringProp>
  414. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  415. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  416. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  417. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  418. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  419. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  420. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  421. </HTTPSamplerProxy>
  422. <hashTree>
  423. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  424. <collectionProp name="Asserion.test_strings">
  425. <stringProp name="-1107223517">Rule ruleShared1 was restarted</stringProp>
  426. </collectionProp>
  427. <stringProp name="Assertion.custom_message"></stringProp>
  428. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  429. <boolProp name="Assertion.assume_success">true</boolProp>
  430. <intProp name="Assertion.test_type">16</intProp>
  431. </ResponseAssertion>
  432. <hashTree/>
  433. </hashTree>
  434. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule1Status" enabled="true">
  435. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  436. <collectionProp name="Arguments.arguments"/>
  437. </elementProp>
  438. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  439. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  440. <stringProp name="HTTPSampler.protocol"></stringProp>
  441. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  442. <stringProp name="HTTPSampler.path">/rules/ruleShared1/status</stringProp>
  443. <stringProp name="HTTPSampler.method">GET</stringProp>
  444. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  445. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  446. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  447. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  448. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  449. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  450. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  451. </HTTPSamplerProxy>
  452. <hashTree>
  453. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  454. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  455. <stringProp name="EXPECTED_VALUE">0</stringProp>
  456. <boolProp name="JSONVALIDATION">true</boolProp>
  457. <boolProp name="EXPECT_NULL">false</boolProp>
  458. <boolProp name="INVERT">false</boolProp>
  459. <boolProp name="ISREGEX">false</boolProp>
  460. </JSONPathAssertion>
  461. <hashTree/>
  462. </hashTree>
  463. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_RestartRule2" enabled="true">
  464. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  465. <collectionProp name="Arguments.arguments"/>
  466. </elementProp>
  467. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  468. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  469. <stringProp name="HTTPSampler.protocol"></stringProp>
  470. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  471. <stringProp name="HTTPSampler.path">/rules/ruleShared2/restart</stringProp>
  472. <stringProp name="HTTPSampler.method">POST</stringProp>
  473. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  474. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  475. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  476. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  477. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  478. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  479. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  480. </HTTPSamplerProxy>
  481. <hashTree>
  482. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  483. <collectionProp name="Asserion.test_strings">
  484. <stringProp name="400328292">Rule ruleShared2 was restarted</stringProp>
  485. </collectionProp>
  486. <stringProp name="Assertion.custom_message"></stringProp>
  487. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  488. <boolProp name="Assertion.assume_success">true</boolProp>
  489. <intProp name="Assertion.test_type">16</intProp>
  490. </ResponseAssertion>
  491. <hashTree/>
  492. </hashTree>
  493. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule2Status" enabled="true">
  494. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  495. <collectionProp name="Arguments.arguments"/>
  496. </elementProp>
  497. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  498. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  499. <stringProp name="HTTPSampler.protocol"></stringProp>
  500. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  501. <stringProp name="HTTPSampler.path">/rules/ruleShared2/status</stringProp>
  502. <stringProp name="HTTPSampler.method">GET</stringProp>
  503. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  504. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  505. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  506. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  507. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  508. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  509. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  510. </HTTPSamplerProxy>
  511. <hashTree>
  512. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  513. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  514. <stringProp name="EXPECTED_VALUE">0</stringProp>
  515. <boolProp name="JSONVALIDATION">true</boolProp>
  516. <boolProp name="EXPECT_NULL">false</boolProp>
  517. <boolProp name="INVERT">false</boolProp>
  518. <boolProp name="ISREGEX">false</boolProp>
  519. </JSONPathAssertion>
  520. <hashTree/>
  521. </hashTree>
  522. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_RestartRule3" enabled="true">
  523. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  524. <collectionProp name="Arguments.arguments"/>
  525. </elementProp>
  526. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  527. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  528. <stringProp name="HTTPSampler.protocol"></stringProp>
  529. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  530. <stringProp name="HTTPSampler.path">/rules/ruleShared3/restart</stringProp>
  531. <stringProp name="HTTPSampler.method">POST</stringProp>
  532. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  533. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  534. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  535. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  536. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  537. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  538. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  539. </HTTPSamplerProxy>
  540. <hashTree>
  541. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  542. <collectionProp name="Asserion.test_strings">
  543. <stringProp name="1907880101">Rule ruleShared3 was restarted</stringProp>
  544. </collectionProp>
  545. <stringProp name="Assertion.custom_message"></stringProp>
  546. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  547. <boolProp name="Assertion.assume_success">true</boolProp>
  548. <intProp name="Assertion.test_type">16</intProp>
  549. </ResponseAssertion>
  550. <hashTree/>
  551. </hashTree>
  552. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule3Status" enabled="true">
  553. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  554. <collectionProp name="Arguments.arguments"/>
  555. </elementProp>
  556. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  557. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  558. <stringProp name="HTTPSampler.protocol"></stringProp>
  559. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  560. <stringProp name="HTTPSampler.path">/rules/ruleShared3/status</stringProp>
  561. <stringProp name="HTTPSampler.method">GET</stringProp>
  562. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  563. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  564. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  565. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  566. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  567. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  568. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  569. </HTTPSamplerProxy>
  570. <hashTree>
  571. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  572. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  573. <stringProp name="EXPECTED_VALUE">0</stringProp>
  574. <boolProp name="JSONVALIDATION">true</boolProp>
  575. <boolProp name="EXPECT_NULL">false</boolProp>
  576. <boolProp name="INVERT">false</boolProp>
  577. <boolProp name="ISREGEX">false</boolProp>
  578. </JSONPathAssertion>
  579. <hashTree/>
  580. </hashTree>
  581. <LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="loop_controller" enabled="true">
  582. <boolProp name="LoopController.continue_forever">true</boolProp>
  583. <stringProp name="LoopController.loops">10</stringProp>
  584. </LoopController>
  585. <hashTree>
  586. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  587. <stringProp name="delimiter">,</stringProp>
  588. <stringProp name="fileEncoding"></stringProp>
  589. <stringProp name="filename">iot_data.txt</stringProp>
  590. <boolProp name="ignoreFirstLine">false</boolProp>
  591. <boolProp name="quotedData">false</boolProp>
  592. <boolProp name="recycle">true</boolProp>
  593. <stringProp name="shareMode">shareMode.thread</stringProp>
  594. <boolProp name="stopThread">false</boolProp>
  595. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  596. </CSVDataSet>
  597. <hashTree/>
  598. <net.xmeter.samplers.PubSampler guiclass="net.xmeter.gui.PubSamplerUI" testclass="net.xmeter.samplers.PubSampler" testname="MQTT Pub Sampler" enabled="true">
  599. <stringProp name="mqtt.topic_name">devices/${device_id}/messages</stringProp>
  600. <stringProp name="mqtt.qos_level">0</stringProp>
  601. <boolProp name="mqtt.add_timestamp">false</boolProp>
  602. <stringProp name="mqtt.message_type">String</stringProp>
  603. <stringProp name="mqtt.message_type_fixed_length">1024</stringProp>
  604. <stringProp name="mqtt.message_to_sent">{&quot;temperature&quot;: ${temperature}, &quot;humidity&quot; : ${humidity}}</stringProp>
  605. <boolProp name="mqtt.retained_message">false</boolProp>
  606. </net.xmeter.samplers.PubSampler>
  607. <hashTree/>
  608. </hashTree>
  609. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule1Status" enabled="true">
  610. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  611. <collectionProp name="Arguments.arguments"/>
  612. </elementProp>
  613. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  614. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  615. <stringProp name="HTTPSampler.protocol"></stringProp>
  616. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  617. <stringProp name="HTTPSampler.path">/rules/ruleShared1/status</stringProp>
  618. <stringProp name="HTTPSampler.method">GET</stringProp>
  619. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  620. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  621. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  622. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  623. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  624. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  625. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  626. </HTTPSamplerProxy>
  627. <hashTree>
  628. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  629. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  630. <stringProp name="EXPECTED_VALUE">10</stringProp>
  631. <boolProp name="JSONVALIDATION">true</boolProp>
  632. <boolProp name="EXPECT_NULL">false</boolProp>
  633. <boolProp name="INVERT">false</boolProp>
  634. <boolProp name="ISREGEX">false</boolProp>
  635. </JSONPathAssertion>
  636. <hashTree/>
  637. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  638. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  639. <stringProp name="EXPECTED_VALUE">6</stringProp>
  640. <boolProp name="JSONVALIDATION">true</boolProp>
  641. <boolProp name="EXPECT_NULL">false</boolProp>
  642. <boolProp name="INVERT">false</boolProp>
  643. <boolProp name="ISREGEX">false</boolProp>
  644. </JSONPathAssertion>
  645. <hashTree/>
  646. </hashTree>
  647. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule1" enabled="true">
  648. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  649. <collectionProp name="Arguments.arguments"/>
  650. </elementProp>
  651. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  652. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  653. <stringProp name="HTTPSampler.protocol"></stringProp>
  654. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  655. <stringProp name="HTTPSampler.path">/rules/ruleShared1</stringProp>
  656. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  657. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  658. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  659. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  660. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  661. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  662. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  663. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  664. </HTTPSamplerProxy>
  665. <hashTree>
  666. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  667. <collectionProp name="Asserion.test_strings">
  668. <stringProp name="309569360">Rule ruleShared1 is dropped.</stringProp>
  669. </collectionProp>
  670. <stringProp name="Assertion.custom_message"></stringProp>
  671. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  672. <boolProp name="Assertion.assume_success">false</boolProp>
  673. <intProp name="Assertion.test_type">16</intProp>
  674. </ResponseAssertion>
  675. <hashTree/>
  676. </hashTree>
  677. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule2Status" enabled="true">
  678. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  679. <collectionProp name="Arguments.arguments"/>
  680. </elementProp>
  681. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  682. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  683. <stringProp name="HTTPSampler.protocol"></stringProp>
  684. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  685. <stringProp name="HTTPSampler.path">/rules/ruleShared2/status</stringProp>
  686. <stringProp name="HTTPSampler.method">GET</stringProp>
  687. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  688. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  689. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  690. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  691. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  692. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  693. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  694. </HTTPSamplerProxy>
  695. <hashTree>
  696. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  697. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  698. <stringProp name="EXPECTED_VALUE">10</stringProp>
  699. <boolProp name="JSONVALIDATION">true</boolProp>
  700. <boolProp name="EXPECT_NULL">false</boolProp>
  701. <boolProp name="INVERT">false</boolProp>
  702. <boolProp name="ISREGEX">false</boolProp>
  703. </JSONPathAssertion>
  704. <hashTree/>
  705. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  706. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  707. <stringProp name="EXPECTED_VALUE">2</stringProp>
  708. <boolProp name="JSONVALIDATION">true</boolProp>
  709. <boolProp name="EXPECT_NULL">false</boolProp>
  710. <boolProp name="INVERT">false</boolProp>
  711. <boolProp name="ISREGEX">false</boolProp>
  712. </JSONPathAssertion>
  713. <hashTree/>
  714. </hashTree>
  715. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule2" enabled="true">
  716. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  717. <collectionProp name="Arguments.arguments"/>
  718. </elementProp>
  719. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  720. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  721. <stringProp name="HTTPSampler.protocol"></stringProp>
  722. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  723. <stringProp name="HTTPSampler.path">/rules/ruleShared2</stringProp>
  724. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  725. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  726. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  727. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  728. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  729. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  730. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  731. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  732. </HTTPSamplerProxy>
  733. <hashTree>
  734. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  735. <collectionProp name="Asserion.test_strings">
  736. <stringProp name="16166353">Rule ruleShared2 is dropped.</stringProp>
  737. </collectionProp>
  738. <stringProp name="Assertion.custom_message"></stringProp>
  739. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  740. <boolProp name="Assertion.assume_success">false</boolProp>
  741. <intProp name="Assertion.test_type">16</intProp>
  742. </ResponseAssertion>
  743. <hashTree/>
  744. </hashTree>
  745. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRule3Status" enabled="true">
  746. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  747. <collectionProp name="Arguments.arguments"/>
  748. </elementProp>
  749. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  750. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  751. <stringProp name="HTTPSampler.protocol"></stringProp>
  752. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  753. <stringProp name="HTTPSampler.path">/rules/ruleShared3/status</stringProp>
  754. <stringProp name="HTTPSampler.method">GET</stringProp>
  755. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  756. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  757. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  758. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  759. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  760. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  761. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  762. </HTTPSamplerProxy>
  763. <hashTree>
  764. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  765. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  766. <stringProp name="EXPECTED_VALUE">10</stringProp>
  767. <boolProp name="JSONVALIDATION">true</boolProp>
  768. <boolProp name="EXPECT_NULL">false</boolProp>
  769. <boolProp name="INVERT">false</boolProp>
  770. <boolProp name="ISREGEX">false</boolProp>
  771. </JSONPathAssertion>
  772. <hashTree/>
  773. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  774. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_in_total</stringProp>
  775. <stringProp name="EXPECTED_VALUE">3</stringProp>
  776. <boolProp name="JSONVALIDATION">true</boolProp>
  777. <boolProp name="EXPECT_NULL">false</boolProp>
  778. <boolProp name="INVERT">false</boolProp>
  779. <boolProp name="ISREGEX">false</boolProp>
  780. </JSONPathAssertion>
  781. <hashTree/>
  782. </hashTree>
  783. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule3" enabled="true">
  784. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  785. <collectionProp name="Arguments.arguments"/>
  786. </elementProp>
  787. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  788. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  789. <stringProp name="HTTPSampler.protocol"></stringProp>
  790. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  791. <stringProp name="HTTPSampler.path">/rules/ruleShared3</stringProp>
  792. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  793. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  794. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  795. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  796. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  797. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  798. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  799. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  800. </HTTPSamplerProxy>
  801. <hashTree>
  802. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  803. <collectionProp name="Asserion.test_strings">
  804. <stringProp name="-277236654">Rule ruleShared3 is dropped.</stringProp>
  805. </collectionProp>
  806. <stringProp name="Assertion.custom_message"></stringProp>
  807. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  808. <boolProp name="Assertion.assume_success">false</boolProp>
  809. <intProp name="Assertion.test_type">16</intProp>
  810. </ResponseAssertion>
  811. <hashTree/>
  812. </hashTree>
  813. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  814. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  815. <collectionProp name="Arguments.arguments"/>
  816. </elementProp>
  817. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  818. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  819. <stringProp name="HTTPSampler.protocol"></stringProp>
  820. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  821. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  822. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  823. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  824. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  825. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  826. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  827. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  828. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  829. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  830. </HTTPSamplerProxy>
  831. <hashTree>
  832. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  833. <collectionProp name="Asserion.test_strings">
  834. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  835. </collectionProp>
  836. <stringProp name="Assertion.custom_message"></stringProp>
  837. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  838. <boolProp name="Assertion.assume_success">false</boolProp>
  839. <intProp name="Assertion.test_type">16</intProp>
  840. </ResponseAssertion>
  841. <hashTree/>
  842. </hashTree>
  843. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  844. <stringProp name="ConstantTimer.delay">1000</stringProp>
  845. </ConstantTimer>
  846. <hashTree/>
  847. </hashTree>
  848. </hashTree>
  849. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result1" enabled="true">
  850. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  851. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  852. <boolProp name="LoopController.continue_forever">false</boolProp>
  853. <stringProp name="LoopController.loops">6</stringProp>
  854. </elementProp>
  855. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  856. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  857. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  858. <stringProp name="ThreadGroup.duration"></stringProp>
  859. <stringProp name="ThreadGroup.delay"></stringProp>
  860. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  861. </ThreadGroup>
  862. <hashTree>
  863. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  864. <boolProp name="ResultCollector.error_logging">false</boolProp>
  865. <objProp>
  866. <name>saveConfig</name>
  867. <value class="SampleSaveConfiguration">
  868. <time>true</time>
  869. <latency>true</latency>
  870. <timestamp>true</timestamp>
  871. <success>true</success>
  872. <label>true</label>
  873. <code>true</code>
  874. <message>true</message>
  875. <threadName>true</threadName>
  876. <dataType>true</dataType>
  877. <encoding>false</encoding>
  878. <assertions>true</assertions>
  879. <subresults>true</subresults>
  880. <responseData>false</responseData>
  881. <samplerData>false</samplerData>
  882. <xml>false</xml>
  883. <fieldNames>true</fieldNames>
  884. <responseHeaders>false</responseHeaders>
  885. <requestHeaders>false</requestHeaders>
  886. <responseDataOnError>false</responseDataOnError>
  887. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  888. <assertionsResultsToSave>0</assertionsResultsToSave>
  889. <bytes>true</bytes>
  890. <sentBytes>true</sentBytes>
  891. <threadCounts>true</threadCounts>
  892. <idleTime>true</idleTime>
  893. <connectTime>true</connectTime>
  894. </value>
  895. </objProp>
  896. <stringProp name="filename"></stringProp>
  897. </ResultCollector>
  898. <hashTree/>
  899. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  900. <hashTree>
  901. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  902. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  903. <stringProp name="mqtt.port">1883</stringProp>
  904. <stringProp name="mqtt.version">3.1</stringProp>
  905. <stringProp name="mqtt.conn_timeout">10</stringProp>
  906. <boolProp name="mqtt.private_protocol">false</boolProp>
  907. <stringProp name="mqtt.listener_timeout">10</stringProp>
  908. <stringProp name="mqtt.protocol">TCP</stringProp>
  909. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  910. <stringProp name="mqtt.keystore_file_path"></stringProp>
  911. <stringProp name="mqtt.keystore_password"></stringProp>
  912. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  913. <stringProp name="mqtt.clientcert_password"></stringProp>
  914. <stringProp name="mqtt.user_name"></stringProp>
  915. <stringProp name="mqtt.password"></stringProp>
  916. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  917. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  918. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  919. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  920. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  921. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  922. </net.xmeter.samplers.ConnectSampler>
  923. <hashTree/>
  924. </hashTree>
  925. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  926. <stringProp name="mqtt.topic_name">devices/result/temperature</stringProp>
  927. <stringProp name="mqtt.qos_level">0</stringProp>
  928. <boolProp name="mqtt.add_timestamp">false</boolProp>
  929. <boolProp name="mqtt.debug_response">true</boolProp>
  930. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  931. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  932. </net.xmeter.samplers.SubSampler>
  933. <hashTree>
  934. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  935. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  936. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  937. <boolProp name="JSONVALIDATION">true</boolProp>
  938. <boolProp name="EXPECT_NULL">false</boolProp>
  939. <boolProp name="INVERT">false</boolProp>
  940. <boolProp name="ISREGEX">false</boolProp>
  941. </JSONPathAssertion>
  942. <hashTree/>
  943. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  944. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  945. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  946. <boolProp name="JSONVALIDATION">true</boolProp>
  947. <boolProp name="EXPECT_NULL">false</boolProp>
  948. <boolProp name="INVERT">false</boolProp>
  949. <boolProp name="ISREGEX">false</boolProp>
  950. </JSONPathAssertion>
  951. <hashTree/>
  952. </hashTree>
  953. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  954. <stringProp name="delimiter">,</stringProp>
  955. <stringProp name="fileEncoding"></stringProp>
  956. <stringProp name="filename">select_condition_iot_data.txt</stringProp>
  957. <boolProp name="ignoreFirstLine">false</boolProp>
  958. <boolProp name="quotedData">false</boolProp>
  959. <boolProp name="recycle">true</boolProp>
  960. <stringProp name="shareMode">shareMode.thread</stringProp>
  961. <boolProp name="stopThread">false</boolProp>
  962. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  963. </CSVDataSet>
  964. <hashTree/>
  965. </hashTree>
  966. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result2" enabled="true">
  967. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  968. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  969. <boolProp name="LoopController.continue_forever">false</boolProp>
  970. <stringProp name="LoopController.loops">2</stringProp>
  971. </elementProp>
  972. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  973. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  974. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  975. <stringProp name="ThreadGroup.duration"></stringProp>
  976. <stringProp name="ThreadGroup.delay"></stringProp>
  977. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  978. </ThreadGroup>
  979. <hashTree>
  980. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  981. <boolProp name="ResultCollector.error_logging">false</boolProp>
  982. <objProp>
  983. <name>saveConfig</name>
  984. <value class="SampleSaveConfiguration">
  985. <time>true</time>
  986. <latency>true</latency>
  987. <timestamp>true</timestamp>
  988. <success>true</success>
  989. <label>true</label>
  990. <code>true</code>
  991. <message>true</message>
  992. <threadName>true</threadName>
  993. <dataType>true</dataType>
  994. <encoding>false</encoding>
  995. <assertions>true</assertions>
  996. <subresults>true</subresults>
  997. <responseData>false</responseData>
  998. <samplerData>false</samplerData>
  999. <xml>false</xml>
  1000. <fieldNames>true</fieldNames>
  1001. <responseHeaders>false</responseHeaders>
  1002. <requestHeaders>false</requestHeaders>
  1003. <responseDataOnError>false</responseDataOnError>
  1004. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  1005. <assertionsResultsToSave>0</assertionsResultsToSave>
  1006. <bytes>true</bytes>
  1007. <sentBytes>true</sentBytes>
  1008. <threadCounts>true</threadCounts>
  1009. <idleTime>true</idleTime>
  1010. <connectTime>true</connectTime>
  1011. </value>
  1012. </objProp>
  1013. <stringProp name="filename"></stringProp>
  1014. </ResultCollector>
  1015. <hashTree/>
  1016. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  1017. <hashTree>
  1018. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  1019. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  1020. <stringProp name="mqtt.port">1883</stringProp>
  1021. <stringProp name="mqtt.version">3.1</stringProp>
  1022. <stringProp name="mqtt.conn_timeout">10</stringProp>
  1023. <boolProp name="mqtt.private_protocol">false</boolProp>
  1024. <stringProp name="mqtt.listener_timeout">10</stringProp>
  1025. <stringProp name="mqtt.protocol">TCP</stringProp>
  1026. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  1027. <stringProp name="mqtt.keystore_file_path"></stringProp>
  1028. <stringProp name="mqtt.keystore_password"></stringProp>
  1029. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  1030. <stringProp name="mqtt.clientcert_password"></stringProp>
  1031. <stringProp name="mqtt.user_name"></stringProp>
  1032. <stringProp name="mqtt.password"></stringProp>
  1033. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  1034. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  1035. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  1036. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  1037. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  1038. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  1039. </net.xmeter.samplers.ConnectSampler>
  1040. <hashTree/>
  1041. </hashTree>
  1042. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  1043. <stringProp name="mqtt.topic_name">devices/result/humidity</stringProp>
  1044. <stringProp name="mqtt.qos_level">0</stringProp>
  1045. <boolProp name="mqtt.add_timestamp">false</boolProp>
  1046. <boolProp name="mqtt.debug_response">true</boolProp>
  1047. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  1048. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  1049. </net.xmeter.samplers.SubSampler>
  1050. <hashTree>
  1051. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  1052. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  1053. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  1054. <boolProp name="JSONVALIDATION">true</boolProp>
  1055. <boolProp name="EXPECT_NULL">false</boolProp>
  1056. <boolProp name="INVERT">false</boolProp>
  1057. <boolProp name="ISREGEX">false</boolProp>
  1058. </JSONPathAssertion>
  1059. <hashTree/>
  1060. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  1061. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  1062. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  1063. <boolProp name="JSONVALIDATION">true</boolProp>
  1064. <boolProp name="EXPECT_NULL">false</boolProp>
  1065. <boolProp name="INVERT">false</boolProp>
  1066. <boolProp name="ISREGEX">false</boolProp>
  1067. </JSONPathAssertion>
  1068. <hashTree/>
  1069. </hashTree>
  1070. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  1071. <stringProp name="delimiter">,</stringProp>
  1072. <stringProp name="fileEncoding"></stringProp>
  1073. <stringProp name="filename">select_condition_iot_data2.txt</stringProp>
  1074. <boolProp name="ignoreFirstLine">false</boolProp>
  1075. <boolProp name="quotedData">false</boolProp>
  1076. <boolProp name="recycle">true</boolProp>
  1077. <stringProp name="shareMode">shareMode.thread</stringProp>
  1078. <boolProp name="stopThread">false</boolProp>
  1079. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  1080. </CSVDataSet>
  1081. <hashTree/>
  1082. </hashTree>
  1083. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result3" enabled="true">
  1084. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  1085. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  1086. <boolProp name="LoopController.continue_forever">false</boolProp>
  1087. <stringProp name="LoopController.loops">3</stringProp>
  1088. </elementProp>
  1089. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  1090. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  1091. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  1092. <stringProp name="ThreadGroup.duration"></stringProp>
  1093. <stringProp name="ThreadGroup.delay"></stringProp>
  1094. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  1095. </ThreadGroup>
  1096. <hashTree>
  1097. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  1098. <boolProp name="ResultCollector.error_logging">false</boolProp>
  1099. <objProp>
  1100. <name>saveConfig</name>
  1101. <value class="SampleSaveConfiguration">
  1102. <time>true</time>
  1103. <latency>true</latency>
  1104. <timestamp>true</timestamp>
  1105. <success>true</success>
  1106. <label>true</label>
  1107. <code>true</code>
  1108. <message>true</message>
  1109. <threadName>true</threadName>
  1110. <dataType>true</dataType>
  1111. <encoding>false</encoding>
  1112. <assertions>true</assertions>
  1113. <subresults>true</subresults>
  1114. <responseData>false</responseData>
  1115. <samplerData>false</samplerData>
  1116. <xml>false</xml>
  1117. <fieldNames>true</fieldNames>
  1118. <responseHeaders>false</responseHeaders>
  1119. <requestHeaders>false</requestHeaders>
  1120. <responseDataOnError>false</responseDataOnError>
  1121. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  1122. <assertionsResultsToSave>0</assertionsResultsToSave>
  1123. <bytes>true</bytes>
  1124. <sentBytes>true</sentBytes>
  1125. <threadCounts>true</threadCounts>
  1126. <idleTime>true</idleTime>
  1127. <connectTime>true</connectTime>
  1128. </value>
  1129. </objProp>
  1130. <stringProp name="filename"></stringProp>
  1131. </ResultCollector>
  1132. <hashTree/>
  1133. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  1134. <hashTree>
  1135. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  1136. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  1137. <stringProp name="mqtt.port">1883</stringProp>
  1138. <stringProp name="mqtt.version">3.1</stringProp>
  1139. <stringProp name="mqtt.conn_timeout">10</stringProp>
  1140. <boolProp name="mqtt.private_protocol">false</boolProp>
  1141. <stringProp name="mqtt.listener_timeout">10</stringProp>
  1142. <stringProp name="mqtt.protocol">TCP</stringProp>
  1143. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  1144. <stringProp name="mqtt.keystore_file_path"></stringProp>
  1145. <stringProp name="mqtt.keystore_password"></stringProp>
  1146. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  1147. <stringProp name="mqtt.clientcert_password"></stringProp>
  1148. <stringProp name="mqtt.user_name"></stringProp>
  1149. <stringProp name="mqtt.password"></stringProp>
  1150. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  1151. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  1152. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  1153. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  1154. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  1155. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  1156. </net.xmeter.samplers.ConnectSampler>
  1157. <hashTree/>
  1158. </hashTree>
  1159. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  1160. <stringProp name="mqtt.topic_name">devices/result/both</stringProp>
  1161. <stringProp name="mqtt.qos_level">0</stringProp>
  1162. <boolProp name="mqtt.add_timestamp">false</boolProp>
  1163. <boolProp name="mqtt.debug_response">true</boolProp>
  1164. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  1165. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  1166. </net.xmeter.samplers.SubSampler>
  1167. <hashTree>
  1168. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  1169. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  1170. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  1171. <boolProp name="JSONVALIDATION">true</boolProp>
  1172. <boolProp name="EXPECT_NULL">false</boolProp>
  1173. <boolProp name="INVERT">false</boolProp>
  1174. <boolProp name="ISREGEX">false</boolProp>
  1175. </JSONPathAssertion>
  1176. <hashTree/>
  1177. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="humidity Assertion" enabled="true">
  1178. <stringProp name="JSON_PATH">$[0].humidity</stringProp>
  1179. <stringProp name="EXPECTED_VALUE">${humidity}</stringProp>
  1180. <boolProp name="JSONVALIDATION">true</boolProp>
  1181. <boolProp name="EXPECT_NULL">false</boolProp>
  1182. <boolProp name="INVERT">false</boolProp>
  1183. <boolProp name="ISREGEX">false</boolProp>
  1184. </JSONPathAssertion>
  1185. <hashTree/>
  1186. </hashTree>
  1187. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  1188. <stringProp name="delimiter">,</stringProp>
  1189. <stringProp name="fileEncoding"></stringProp>
  1190. <stringProp name="filename">select_condition_iot_data3.txt</stringProp>
  1191. <boolProp name="ignoreFirstLine">false</boolProp>
  1192. <boolProp name="quotedData">false</boolProp>
  1193. <boolProp name="recycle">true</boolProp>
  1194. <stringProp name="shareMode">shareMode.thread</stringProp>
  1195. <boolProp name="stopThread">false</boolProp>
  1196. <stringProp name="variableNames">device_id,temperature,humidity</stringProp>
  1197. </CSVDataSet>
  1198. <hashTree/>
  1199. </hashTree>
  1200. </hashTree>
  1201. </hashTree>
  1202. </jmeterTestPlan>