table_cont.jmx 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1">
  3. <hashTree>
  4. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  5. <stringProp name="TestPlan.comments"></stringProp>
  6. <boolProp name="TestPlan.functional_mode">false</boolProp>
  7. <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
  8. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  9. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  10. <collectionProp name="Arguments.arguments"/>
  11. </elementProp>
  12. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  13. </TestPlan>
  14. <hashTree>
  15. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  16. <collectionProp name="Arguments.arguments">
  17. <elementProp name="srv" elementType="Argument">
  18. <stringProp name="Argument.name">srv</stringProp>
  19. <stringProp name="Argument.value">127.0.0.1</stringProp>
  20. <stringProp name="Argument.metadata">=</stringProp>
  21. </elementProp>
  22. <elementProp name="rest_port" elementType="Argument">
  23. <stringProp name="Argument.name">rest_port</stringProp>
  24. <stringProp name="Argument.value">9081</stringProp>
  25. <stringProp name="Argument.metadata">=</stringProp>
  26. </elementProp>
  27. <elementProp name="mqtt_srv" elementType="Argument">
  28. <stringProp name="Argument.name">mqtt_srv</stringProp>
  29. <stringProp name="Argument.value">127.0.0.1</stringProp>
  30. <stringProp name="Argument.metadata">=</stringProp>
  31. </elementProp>
  32. </collectionProp>
  33. </Arguments>
  34. <hashTree/>
  35. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  36. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  37. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  38. <boolProp name="LoopController.continue_forever">false</boolProp>
  39. <stringProp name="LoopController.loops">1</stringProp>
  40. </elementProp>
  41. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  42. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  43. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  44. <stringProp name="ThreadGroup.duration"></stringProp>
  45. <stringProp name="ThreadGroup.delay"></stringProp>
  46. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  47. </ThreadGroup>
  48. <hashTree>
  49. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  50. <boolProp name="ResultCollector.error_logging">false</boolProp>
  51. <objProp>
  52. <name>saveConfig</name>
  53. <value class="SampleSaveConfiguration">
  54. <time>true</time>
  55. <latency>true</latency>
  56. <timestamp>true</timestamp>
  57. <success>true</success>
  58. <label>true</label>
  59. <code>true</code>
  60. <message>true</message>
  61. <threadName>true</threadName>
  62. <dataType>true</dataType>
  63. <encoding>false</encoding>
  64. <assertions>true</assertions>
  65. <subresults>true</subresults>
  66. <responseData>false</responseData>
  67. <samplerData>false</samplerData>
  68. <xml>false</xml>
  69. <fieldNames>true</fieldNames>
  70. <responseHeaders>false</responseHeaders>
  71. <requestHeaders>false</requestHeaders>
  72. <responseDataOnError>false</responseDataOnError>
  73. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  74. <assertionsResultsToSave>0</assertionsResultsToSave>
  75. <bytes>true</bytes>
  76. <sentBytes>true</sentBytes>
  77. <threadCounts>true</threadCounts>
  78. <idleTime>true</idleTime>
  79. <connectTime>true</connectTime>
  80. </value>
  81. </objProp>
  82. <stringProp name="filename"></stringProp>
  83. </ResultCollector>
  84. <hashTree/>
  85. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="API" enabled="true">
  86. <boolProp name="TransactionController.includeTimers">false</boolProp>
  87. <boolProp name="TransactionController.parent">false</boolProp>
  88. </TransactionController>
  89. <hashTree>
  90. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  91. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  92. <stringProp name="mqtt.port">1883</stringProp>
  93. <stringProp name="mqtt.version">3.1</stringProp>
  94. <stringProp name="mqtt.conn_timeout">10</stringProp>
  95. <boolProp name="mqtt.private_protocol">false</boolProp>
  96. <stringProp name="mqtt.listener_timeout">10</stringProp>
  97. <stringProp name="mqtt.protocol">TCP</stringProp>
  98. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  99. <stringProp name="mqtt.keystore_file_path"></stringProp>
  100. <stringProp name="mqtt.keystore_password"></stringProp>
  101. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  102. <stringProp name="mqtt.clientcert_password"></stringProp>
  103. <stringProp name="mqtt.user_name"></stringProp>
  104. <stringProp name="mqtt.password"></stringProp>
  105. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  106. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  107. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  108. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  109. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  110. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  111. </net.xmeter.samplers.ConnectSampler>
  112. <hashTree/>
  113. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateTable" enabled="true">
  114. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  115. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  116. <collectionProp name="Arguments.arguments">
  117. <elementProp name="" elementType="HTTPArgument">
  118. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  119. <stringProp name="Argument.value">{&#xd;
  120. &quot;sql&quot; : &quot;create table stateTable (state bigint) WITH (FORMAT=\&quot;JSON\&quot;, DATASOURCE=\&quot;messages/state\&quot;, TYPE=\&quot;mqtt\&quot; )&quot;&#xd;
  121. }</stringProp>
  122. <stringProp name="Argument.metadata">=</stringProp>
  123. </elementProp>
  124. </collectionProp>
  125. </elementProp>
  126. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  127. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  128. <stringProp name="HTTPSampler.protocol"></stringProp>
  129. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  130. <stringProp name="HTTPSampler.path">/tables</stringProp>
  131. <stringProp name="HTTPSampler.method">POST</stringProp>
  132. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  133. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  134. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  135. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  136. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  137. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  138. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  139. </HTTPSamplerProxy>
  140. <hashTree>
  141. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  142. <collectionProp name="Asserion.test_strings">
  143. <stringProp name="41528139">Table stateTable is created.</stringProp>
  144. </collectionProp>
  145. <stringProp name="Assertion.custom_message"></stringProp>
  146. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  147. <boolProp name="Assertion.assume_success">true</boolProp>
  148. <intProp name="Assertion.test_type">16</intProp>
  149. </ResponseAssertion>
  150. <hashTree/>
  151. </hashTree>
  152. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  153. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  154. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  155. <collectionProp name="Arguments.arguments">
  156. <elementProp name="" elementType="HTTPArgument">
  157. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  158. <stringProp name="Argument.value">{&#xd;
  159. &quot;sql&quot; : &quot;create stream demo (temperature bigint) WITH (FORMAT=\&quot;JSON\&quot;, DATASOURCE=\&quot;messages/iot\&quot; )&quot;&#xd;
  160. }</stringProp>
  161. <stringProp name="Argument.metadata">=</stringProp>
  162. </elementProp>
  163. </collectionProp>
  164. </elementProp>
  165. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  166. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  167. <stringProp name="HTTPSampler.protocol"></stringProp>
  168. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  169. <stringProp name="HTTPSampler.path">/streams</stringProp>
  170. <stringProp name="HTTPSampler.method">POST</stringProp>
  171. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  172. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  173. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  174. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  175. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  176. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  177. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  178. </HTTPSamplerProxy>
  179. <hashTree>
  180. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  181. <collectionProp name="Asserion.test_strings">
  182. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  183. </collectionProp>
  184. <stringProp name="Assertion.custom_message"></stringProp>
  185. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  186. <boolProp name="Assertion.assume_success">true</boolProp>
  187. <intProp name="Assertion.test_type">16</intProp>
  188. </ResponseAssertion>
  189. <hashTree/>
  190. </hashTree>
  191. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  192. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  193. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  194. <collectionProp name="Arguments.arguments">
  195. <elementProp name="" elementType="HTTPArgument">
  196. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  197. <stringProp name="Argument.value">{&#xd;
  198. &quot;id&quot;: &quot;ruleTableCont&quot;,&#xd;
  199. &quot;sql&quot;: &quot;SELECT temperature FROM demo INNER JOIN stateTable WHERE stateTable.state= 1 AND temperature &gt; 30&quot;,&#xd;
  200. &quot;actions&quot;: [&#xd;
  201. {&#xd;
  202. &quot;mqtt&quot;: {&#xd;
  203. &quot;server&quot;: &quot;tcp://${mqtt_srv}:1883&quot;,&#xd;
  204. &quot;topic&quot;: &quot;devices/result&quot;,&#xd;
  205. &quot;qos&quot;: 1,&#xd;
  206. &quot;clientId&quot;: &quot;demo_001&quot;&#xd;
  207. }&#xd;
  208. }&#xd;
  209. ]&#xd;
  210. }</stringProp>
  211. <stringProp name="Argument.metadata">=</stringProp>
  212. </elementProp>
  213. </collectionProp>
  214. </elementProp>
  215. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  216. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  217. <stringProp name="HTTPSampler.protocol"></stringProp>
  218. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  219. <stringProp name="HTTPSampler.path">/rules</stringProp>
  220. <stringProp name="HTTPSampler.method">POST</stringProp>
  221. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  222. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  223. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  224. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  225. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  226. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  227. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  228. </HTTPSamplerProxy>
  229. <hashTree>
  230. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  231. <collectionProp name="Asserion.test_strings">
  232. <stringProp name="98624273">Rule ruleTableCont was created</stringProp>
  233. </collectionProp>
  234. <stringProp name="Assertion.custom_message"></stringProp>
  235. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  236. <boolProp name="Assertion.assume_success">true</boolProp>
  237. <intProp name="Assertion.test_type">16</intProp>
  238. </ResponseAssertion>
  239. <hashTree/>
  240. </hashTree>
  241. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  242. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  243. <collectionProp name="Arguments.arguments"/>
  244. </elementProp>
  245. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  246. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  247. <stringProp name="HTTPSampler.protocol"></stringProp>
  248. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  249. <stringProp name="HTTPSampler.path">/rules/ruleTableCont/status</stringProp>
  250. <stringProp name="HTTPSampler.method">GET</stringProp>
  251. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  252. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  253. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  254. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  255. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  256. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  257. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  258. </HTTPSamplerProxy>
  259. <hashTree>
  260. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  261. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  262. <stringProp name="EXPECTED_VALUE">0</stringProp>
  263. <boolProp name="JSONVALIDATION">true</boolProp>
  264. <boolProp name="EXPECT_NULL">false</boolProp>
  265. <boolProp name="INVERT">false</boolProp>
  266. <boolProp name="ISREGEX">false</boolProp>
  267. </JSONPathAssertion>
  268. <hashTree/>
  269. </hashTree>
  270. <LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="loop_controller" enabled="true">
  271. <boolProp name="LoopController.continue_forever">true</boolProp>
  272. <stringProp name="LoopController.loops">13</stringProp>
  273. </LoopController>
  274. <hashTree>
  275. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  276. <stringProp name="delimiter">,</stringProp>
  277. <stringProp name="fileEncoding"></stringProp>
  278. <stringProp name="filename">iot_data_multi_topics.txt</stringProp>
  279. <boolProp name="ignoreFirstLine">false</boolProp>
  280. <boolProp name="quotedData">false</boolProp>
  281. <boolProp name="recycle">true</boolProp>
  282. <stringProp name="shareMode">shareMode.thread</stringProp>
  283. <boolProp name="stopThread">false</boolProp>
  284. <stringProp name="variableNames">topic,num,state</stringProp>
  285. </CSVDataSet>
  286. <hashTree/>
  287. <net.xmeter.samplers.PubSampler guiclass="net.xmeter.gui.PubSamplerUI" testclass="net.xmeter.samplers.PubSampler" testname="MQTT Pub Sampler" enabled="true">
  288. <stringProp name="mqtt.topic_name">messages/${topic}</stringProp>
  289. <stringProp name="mqtt.qos_level">0</stringProp>
  290. <boolProp name="mqtt.add_timestamp">false</boolProp>
  291. <stringProp name="mqtt.message_type">String</stringProp>
  292. <stringProp name="mqtt.message_type_fixed_length">1024</stringProp>
  293. <stringProp name="mqtt.message_to_sent">{&quot;temperature&quot;:${num},&quot;state&quot;:${state}}</stringProp>
  294. <boolProp name="mqtt.retained_message">false</boolProp>
  295. </net.xmeter.samplers.PubSampler>
  296. <hashTree/>
  297. </hashTree>
  298. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  299. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  300. <collectionProp name="Arguments.arguments"/>
  301. </elementProp>
  302. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  303. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  304. <stringProp name="HTTPSampler.protocol"></stringProp>
  305. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  306. <stringProp name="HTTPSampler.path">/rules/ruleTableCont/status</stringProp>
  307. <stringProp name="HTTPSampler.method">GET</stringProp>
  308. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  309. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  310. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  311. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  312. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  313. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  314. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  315. </HTTPSamplerProxy>
  316. <hashTree>
  317. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  318. <stringProp name="JSON_PATH">$.source_stateTable_0_records_in_total</stringProp>
  319. <stringProp name="EXPECTED_VALUE">4</stringProp>
  320. <boolProp name="JSONVALIDATION">true</boolProp>
  321. <boolProp name="EXPECT_NULL">false</boolProp>
  322. <boolProp name="INVERT">false</boolProp>
  323. <boolProp name="ISREGEX">false</boolProp>
  324. </JSONPathAssertion>
  325. <hashTree/>
  326. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  327. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  328. <stringProp name="EXPECTED_VALUE">9</stringProp>
  329. <boolProp name="JSONVALIDATION">true</boolProp>
  330. <boolProp name="EXPECT_NULL">false</boolProp>
  331. <boolProp name="INVERT">false</boolProp>
  332. <boolProp name="ISREGEX">false</boolProp>
  333. </JSONPathAssertion>
  334. <hashTree/>
  335. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  336. <stringProp name="JSON_PATH">$.sink_mqtt_0_0_records_out_total</stringProp>
  337. <stringProp name="EXPECTED_VALUE">3</stringProp>
  338. <boolProp name="JSONVALIDATION">true</boolProp>
  339. <boolProp name="EXPECT_NULL">false</boolProp>
  340. <boolProp name="INVERT">false</boolProp>
  341. <boolProp name="ISREGEX">false</boolProp>
  342. </JSONPathAssertion>
  343. <hashTree/>
  344. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  345. <stringProp name="ConstantTimer.delay">5000</stringProp>
  346. </ConstantTimer>
  347. <hashTree/>
  348. </hashTree>
  349. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  350. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  351. <collectionProp name="Arguments.arguments"/>
  352. </elementProp>
  353. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  354. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  355. <stringProp name="HTTPSampler.protocol"></stringProp>
  356. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  357. <stringProp name="HTTPSampler.path">/rules/ruleTableCont</stringProp>
  358. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  359. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  360. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  361. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  362. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  363. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  364. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  365. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  366. </HTTPSamplerProxy>
  367. <hashTree>
  368. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  369. <collectionProp name="Asserion.test_strings">
  370. <stringProp name="-1456895740">Rule ruleTableCont is dropped.</stringProp>
  371. </collectionProp>
  372. <stringProp name="Assertion.custom_message"></stringProp>
  373. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  374. <boolProp name="Assertion.assume_success">false</boolProp>
  375. <intProp name="Assertion.test_type">16</intProp>
  376. </ResponseAssertion>
  377. <hashTree/>
  378. </hashTree>
  379. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  380. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  381. <collectionProp name="Arguments.arguments"/>
  382. </elementProp>
  383. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  384. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  385. <stringProp name="HTTPSampler.protocol"></stringProp>
  386. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  387. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  388. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  389. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  390. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  391. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  392. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  393. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  394. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  395. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  396. </HTTPSamplerProxy>
  397. <hashTree>
  398. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  399. <collectionProp name="Asserion.test_strings">
  400. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  401. </collectionProp>
  402. <stringProp name="Assertion.custom_message"></stringProp>
  403. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  404. <boolProp name="Assertion.assume_success">false</boolProp>
  405. <intProp name="Assertion.test_type">16</intProp>
  406. </ResponseAssertion>
  407. <hashTree/>
  408. </hashTree>
  409. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Table" enabled="true">
  410. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  411. <collectionProp name="Arguments.arguments"/>
  412. </elementProp>
  413. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  414. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  415. <stringProp name="HTTPSampler.protocol"></stringProp>
  416. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  417. <stringProp name="HTTPSampler.path">/tables/stateTable</stringProp>
  418. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  419. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  420. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  421. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  422. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  423. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  424. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  425. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  426. </HTTPSamplerProxy>
  427. <hashTree>
  428. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  429. <collectionProp name="Asserion.test_strings">
  430. <stringProp name="2084363635">Table stateTable is dropped.</stringProp>
  431. </collectionProp>
  432. <stringProp name="Assertion.custom_message"></stringProp>
  433. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  434. <boolProp name="Assertion.assume_success">false</boolProp>
  435. <intProp name="Assertion.test_type">16</intProp>
  436. </ResponseAssertion>
  437. <hashTree/>
  438. </hashTree>
  439. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  440. <stringProp name="ConstantTimer.delay">500</stringProp>
  441. </ConstantTimer>
  442. <hashTree/>
  443. </hashTree>
  444. </hashTree>
  445. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="true">
  446. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  447. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  448. <boolProp name="LoopController.continue_forever">false</boolProp>
  449. <stringProp name="LoopController.loops">6</stringProp>
  450. </elementProp>
  451. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  452. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  453. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  454. <stringProp name="ThreadGroup.duration"></stringProp>
  455. <stringProp name="ThreadGroup.delay"></stringProp>
  456. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  457. </ThreadGroup>
  458. <hashTree>
  459. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  460. <boolProp name="ResultCollector.error_logging">false</boolProp>
  461. <objProp>
  462. <name>saveConfig</name>
  463. <value class="SampleSaveConfiguration">
  464. <time>true</time>
  465. <latency>true</latency>
  466. <timestamp>true</timestamp>
  467. <success>true</success>
  468. <label>true</label>
  469. <code>true</code>
  470. <message>true</message>
  471. <threadName>true</threadName>
  472. <dataType>true</dataType>
  473. <encoding>false</encoding>
  474. <assertions>true</assertions>
  475. <subresults>true</subresults>
  476. <responseData>false</responseData>
  477. <samplerData>false</samplerData>
  478. <xml>false</xml>
  479. <fieldNames>true</fieldNames>
  480. <responseHeaders>false</responseHeaders>
  481. <requestHeaders>false</requestHeaders>
  482. <responseDataOnError>false</responseDataOnError>
  483. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  484. <assertionsResultsToSave>0</assertionsResultsToSave>
  485. <bytes>true</bytes>
  486. <sentBytes>true</sentBytes>
  487. <threadCounts>true</threadCounts>
  488. <idleTime>true</idleTime>
  489. <connectTime>true</connectTime>
  490. </value>
  491. </objProp>
  492. <stringProp name="filename"></stringProp>
  493. </ResultCollector>
  494. <hashTree/>
  495. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="Once Only Controller" enabled="true"/>
  496. <hashTree>
  497. <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true">
  498. <stringProp name="mqtt.server">${mqtt_srv}</stringProp>
  499. <stringProp name="mqtt.port">1883</stringProp>
  500. <stringProp name="mqtt.version">3.1</stringProp>
  501. <stringProp name="mqtt.conn_timeout">10</stringProp>
  502. <boolProp name="mqtt.private_protocol">false</boolProp>
  503. <stringProp name="mqtt.listener_timeout">10</stringProp>
  504. <stringProp name="mqtt.protocol">TCP</stringProp>
  505. <boolProp name="mqtt.dual_ssl_authentication">false</boolProp>
  506. <stringProp name="mqtt.keystore_file_path"></stringProp>
  507. <stringProp name="mqtt.keystore_password"></stringProp>
  508. <stringProp name="mqtt.clientcert_file_path"></stringProp>
  509. <stringProp name="mqtt.clientcert_password"></stringProp>
  510. <stringProp name="mqtt.user_name"></stringProp>
  511. <stringProp name="mqtt.password"></stringProp>
  512. <stringProp name="mqtt.client_id_prefix">conn_</stringProp>
  513. <boolProp name="mqtt.client_id_suffix">true</boolProp>
  514. <stringProp name="mqtt.conn_keep_alive">300</stringProp>
  515. <stringProp name="mqtt.conn_attampt_max">0</stringProp>
  516. <stringProp name="mqtt.reconn_attampt_max">0</stringProp>
  517. <boolProp name="mqtt.conn_clean_session">true</boolProp>
  518. </net.xmeter.samplers.ConnectSampler>
  519. <hashTree/>
  520. </hashTree>
  521. <net.xmeter.samplers.SubSampler guiclass="net.xmeter.gui.SubSamplerUI" testclass="net.xmeter.samplers.SubSampler" testname="AnalysisResult" enabled="true">
  522. <stringProp name="mqtt.topic_name">devices/result</stringProp>
  523. <stringProp name="mqtt.qos_level">0</stringProp>
  524. <boolProp name="mqtt.add_timestamp">false</boolProp>
  525. <boolProp name="mqtt.debug_response">true</boolProp>
  526. <stringProp name="mqtt.sample_condition">number of received messages</stringProp>
  527. <stringProp name="mqtt.sample_condition_value">1</stringProp>
  528. </net.xmeter.samplers.SubSampler>
  529. <hashTree>
  530. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature Assertion" enabled="true">
  531. <stringProp name="JSON_PATH">$[0].temperature</stringProp>
  532. <stringProp name="EXPECTED_VALUE">${temperature}</stringProp>
  533. <boolProp name="JSONVALIDATION">true</boolProp>
  534. <boolProp name="EXPECT_NULL">false</boolProp>
  535. <boolProp name="INVERT">false</boolProp>
  536. <boolProp name="ISREGEX">false</boolProp>
  537. </JSONPathAssertion>
  538. <hashTree/>
  539. </hashTree>
  540. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
  541. <stringProp name="delimiter">,</stringProp>
  542. <stringProp name="fileEncoding"></stringProp>
  543. <stringProp name="filename">table_cont_result_data.txt</stringProp>
  544. <boolProp name="ignoreFirstLine">false</boolProp>
  545. <boolProp name="quotedData">false</boolProp>
  546. <boolProp name="recycle">false</boolProp>
  547. <stringProp name="shareMode">shareMode.thread</stringProp>
  548. <boolProp name="stopThread">true</boolProp>
  549. <stringProp name="variableNames">temperature</stringProp>
  550. </CSVDataSet>
  551. <hashTree/>
  552. </hashTree>
  553. </hashTree>
  554. </hashTree>
  555. </jmeterTestPlan>