streams_test.jmx 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 EMQ Technologies Co., Ltd.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
  18. <hashTree>
  19. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  20. <stringProp name="TestPlan.comments"></stringProp>
  21. <boolProp name="TestPlan.functional_mode">false</boolProp>
  22. <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
  23. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  24. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  25. <collectionProp name="Arguments.arguments"/>
  26. </elementProp>
  27. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  28. </TestPlan>
  29. <hashTree>
  30. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  31. <collectionProp name="Arguments.arguments">
  32. <elementProp name="srv" elementType="Argument">
  33. <stringProp name="Argument.name">srv</stringProp>
  34. <stringProp name="Argument.value">127.0.0.1</stringProp>
  35. <stringProp name="Argument.metadata">=</stringProp>
  36. </elementProp>
  37. <elementProp name="rest_port" elementType="Argument">
  38. <stringProp name="Argument.name">rest_port</stringProp>
  39. <stringProp name="Argument.value">9081</stringProp>
  40. <stringProp name="Argument.metadata">=</stringProp>
  41. </elementProp>
  42. <elementProp name="k_home" elementType="Argument">
  43. <stringProp name="Argument.name">k_home</stringProp>
  44. <stringProp name="Argument.value">${__property(base,,)}</stringProp>
  45. <stringProp name="Argument.metadata">=</stringProp>
  46. </elementProp>
  47. </collectionProp>
  48. </Arguments>
  49. <hashTree/>
  50. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Stream_API" 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. </ThreadGroup>
  62. <hashTree>
  63. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get_Empty_Streams" enabled="true">
  64. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  65. <collectionProp name="Arguments.arguments"/>
  66. </elementProp>
  67. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  68. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  69. <stringProp name="HTTPSampler.protocol"></stringProp>
  70. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  71. <stringProp name="HTTPSampler.path">/streams</stringProp>
  72. <stringProp name="HTTPSampler.method">GET</stringProp>
  73. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  74. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  75. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  76. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  77. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  78. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  79. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  80. </HTTPSamplerProxy>
  81. <hashTree>
  82. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  83. <stringProp name="JSON_PATH">$</stringProp>
  84. <stringProp name="EXPECTED_VALUE">[]</stringProp>
  85. <boolProp name="JSONVALIDATION">false</boolProp>
  86. <boolProp name="EXPECT_NULL">false</boolProp>
  87. <boolProp name="INVERT">false</boolProp>
  88. <boolProp name="ISREGEX">true</boolProp>
  89. </JSONPathAssertion>
  90. <hashTree/>
  91. </hashTree>
  92. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="CreateStream" enabled="true">
  93. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  94. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  95. <collectionProp name="Arguments.arguments">
  96. <elementProp name="" elementType="HTTPArgument">
  97. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  98. <stringProp name="Argument.value">{&#xd;
  99. &quot;sql&quot; : &quot;create stream my_stream (USERID BIGINT, FIRST_NAME STRING, LAST_NAME STRING, NICKNAMES ARRAY(STRING), Gender BOOLEAN, ADDRESS STRUCT(STREET_NAME STRING, NUMBER BIGINT),) WITH ( datasource = \&quot;topic/test\&quot;, FORMAT = \&quot;json\&quot;, KEY = \&quot;id\&quot;)&quot;&#xd;
  100. }</stringProp>
  101. <stringProp name="Argument.metadata">=</stringProp>
  102. </elementProp>
  103. </collectionProp>
  104. </elementProp>
  105. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  106. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  107. <stringProp name="HTTPSampler.protocol"></stringProp>
  108. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  109. <stringProp name="HTTPSampler.path">/streams</stringProp>
  110. <stringProp name="HTTPSampler.method">POST</stringProp>
  111. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  112. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  113. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  114. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  115. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  116. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  117. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  118. </HTTPSamplerProxy>
  119. <hashTree>
  120. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  121. <collectionProp name="Asserion.test_strings">
  122. <stringProp name="-1283107633">Stream my_stream is created.</stringProp>
  123. </collectionProp>
  124. <stringProp name="Assertion.custom_message"></stringProp>
  125. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  126. <boolProp name="Assertion.assume_success">false</boolProp>
  127. <intProp name="Assertion.test_type">16</intProp>
  128. </ResponseAssertion>
  129. <hashTree/>
  130. </hashTree>
  131. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="CreateDuplicatedStream" enabled="true">
  132. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  133. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  134. <collectionProp name="Arguments.arguments">
  135. <elementProp name="" elementType="HTTPArgument">
  136. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  137. <stringProp name="Argument.value">{&#xd;
  138. &quot;sql&quot; : &quot;create stream my_stream (USERID BIGINT, FIRST_NAME STRING, LAST_NAME STRING, NICKNAMES ARRAY(STRING), Gender BOOLEAN, ADDRESS STRUCT(STREET_NAME STRING, NUMBER BIGINT),) WITH ( datasource = \&quot;topic/test\&quot;, FORMAT = \&quot;json\&quot;, KEY = \&quot;id\&quot;)&quot;&#xd;
  139. }</stringProp>
  140. <stringProp name="Argument.metadata">=</stringProp>
  141. </elementProp>
  142. </collectionProp>
  143. </elementProp>
  144. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  145. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  146. <stringProp name="HTTPSampler.protocol"></stringProp>
  147. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  148. <stringProp name="HTTPSampler.path">/streams</stringProp>
  149. <stringProp name="HTTPSampler.method">POST</stringProp>
  150. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  151. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  152. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  153. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  154. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  155. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  156. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  157. </HTTPSamplerProxy>
  158. <hashTree>
  159. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  160. <collectionProp name="Asserion.test_strings">
  161. <stringProp name="51508">400</stringProp>
  162. </collectionProp>
  163. <stringProp name="Assertion.custom_message"></stringProp>
  164. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  165. <boolProp name="Assertion.assume_success">true</boolProp>
  166. <intProp name="Assertion.test_type">16</intProp>
  167. </ResponseAssertion>
  168. <hashTree/>
  169. </hashTree>
  170. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get_Streams" enabled="true">
  171. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  172. <collectionProp name="Arguments.arguments"/>
  173. </elementProp>
  174. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  175. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  176. <stringProp name="HTTPSampler.protocol"></stringProp>
  177. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  178. <stringProp name="HTTPSampler.path">/streams</stringProp>
  179. <stringProp name="HTTPSampler.method">GET</stringProp>
  180. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  181. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  182. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  183. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  184. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  185. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  186. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  187. </HTTPSamplerProxy>
  188. <hashTree>
  189. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  190. <collectionProp name="Asserion.test_strings">
  191. <stringProp name="-1495874189">my_stream</stringProp>
  192. </collectionProp>
  193. <stringProp name="Assertion.custom_message"></stringProp>
  194. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  195. <boolProp name="Assertion.assume_success">false</boolProp>
  196. <intProp name="Assertion.test_type">16</intProp>
  197. </ResponseAssertion>
  198. <hashTree/>
  199. </hashTree>
  200. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Describe_Stream" enabled="true">
  201. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  202. <collectionProp name="Arguments.arguments"/>
  203. </elementProp>
  204. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  205. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  206. <stringProp name="HTTPSampler.protocol"></stringProp>
  207. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  208. <stringProp name="HTTPSampler.path">/streams/my_stream</stringProp>
  209. <stringProp name="HTTPSampler.method">GET</stringProp>
  210. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  211. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  212. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  213. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  214. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  215. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  216. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  217. </HTTPSamplerProxy>
  218. <hashTree>
  219. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  220. <collectionProp name="Asserion.test_strings">
  221. <stringProp name="-1495874189">my_stream</stringProp>
  222. </collectionProp>
  223. <stringProp name="Assertion.custom_message"></stringProp>
  224. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  225. <boolProp name="Assertion.assume_success">false</boolProp>
  226. <intProp name="Assertion.test_type">16</intProp>
  227. </ResponseAssertion>
  228. <hashTree/>
  229. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  230. <collectionProp name="Asserion.test_strings">
  231. <stringProp name="353659610">FIRST_NAME</stringProp>
  232. </collectionProp>
  233. <stringProp name="Assertion.custom_message"></stringProp>
  234. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  235. <boolProp name="Assertion.assume_success">false</boolProp>
  236. <intProp name="Assertion.test_type">16</intProp>
  237. </ResponseAssertion>
  238. <hashTree/>
  239. </hashTree>
  240. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Drop_Stream" enabled="true">
  241. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  242. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  243. <collectionProp name="Arguments.arguments">
  244. <elementProp name="" elementType="HTTPArgument">
  245. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  246. <stringProp name="Argument.value"></stringProp>
  247. <stringProp name="Argument.metadata">=</stringProp>
  248. </elementProp>
  249. </collectionProp>
  250. </elementProp>
  251. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  252. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  253. <stringProp name="HTTPSampler.protocol"></stringProp>
  254. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  255. <stringProp name="HTTPSampler.path">/streams/my_stream</stringProp>
  256. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  257. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  258. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  259. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  260. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  261. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  262. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  263. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  264. </HTTPSamplerProxy>
  265. <hashTree>
  266. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  267. <collectionProp name="Asserion.test_strings">
  268. <stringProp name="759727863">Stream my_stream is dropped.</stringProp>
  269. </collectionProp>
  270. <stringProp name="Assertion.custom_message"></stringProp>
  271. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  272. <boolProp name="Assertion.assume_success">false</boolProp>
  273. <intProp name="Assertion.test_type">16</intProp>
  274. </ResponseAssertion>
  275. <hashTree/>
  276. </hashTree>
  277. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get_Empty_Streams" enabled="true">
  278. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  279. <collectionProp name="Arguments.arguments"/>
  280. </elementProp>
  281. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  282. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  283. <stringProp name="HTTPSampler.protocol"></stringProp>
  284. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  285. <stringProp name="HTTPSampler.path">/streams</stringProp>
  286. <stringProp name="HTTPSampler.method">GET</stringProp>
  287. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  288. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  289. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  290. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  291. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  292. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  293. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  294. </HTTPSamplerProxy>
  295. <hashTree>
  296. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  297. <stringProp name="JSON_PATH">$</stringProp>
  298. <stringProp name="EXPECTED_VALUE">[]</stringProp>
  299. <boolProp name="JSONVALIDATION">false</boolProp>
  300. <boolProp name="EXPECT_NULL">false</boolProp>
  301. <boolProp name="INVERT">false</boolProp>
  302. <boolProp name="ISREGEX">true</boolProp>
  303. </JSONPathAssertion>
  304. <hashTree/>
  305. </hashTree>
  306. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  307. <stringProp name="ConstantTimer.delay">500</stringProp>
  308. </ConstantTimer>
  309. <hashTree/>
  310. </hashTree>
  311. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  312. <boolProp name="ResultCollector.error_logging">false</boolProp>
  313. <objProp>
  314. <name>saveConfig</name>
  315. <value class="SampleSaveConfiguration">
  316. <time>true</time>
  317. <latency>true</latency>
  318. <timestamp>true</timestamp>
  319. <success>true</success>
  320. <label>true</label>
  321. <code>true</code>
  322. <message>true</message>
  323. <threadName>true</threadName>
  324. <dataType>true</dataType>
  325. <encoding>false</encoding>
  326. <assertions>true</assertions>
  327. <subresults>true</subresults>
  328. <responseData>false</responseData>
  329. <samplerData>false</samplerData>
  330. <xml>false</xml>
  331. <fieldNames>true</fieldNames>
  332. <responseHeaders>false</responseHeaders>
  333. <requestHeaders>false</requestHeaders>
  334. <responseDataOnError>false</responseDataOnError>
  335. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  336. <assertionsResultsToSave>0</assertionsResultsToSave>
  337. <bytes>true</bytes>
  338. <sentBytes>true</sentBytes>
  339. <threadCounts>true</threadCounts>
  340. <idleTime>true</idleTime>
  341. <connectTime>true</connectTime>
  342. </value>
  343. </objProp>
  344. <stringProp name="filename"></stringProp>
  345. </ResultCollector>
  346. <hashTree/>
  347. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="CLI" enabled="true">
  348. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  349. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  350. <boolProp name="LoopController.continue_forever">false</boolProp>
  351. <stringProp name="LoopController.loops">1</stringProp>
  352. </elementProp>
  353. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  354. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  355. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  356. <stringProp name="ThreadGroup.duration"></stringProp>
  357. <stringProp name="ThreadGroup.delay"></stringProp>
  358. </ThreadGroup>
  359. <hashTree>
  360. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Get_Empty_Streams" enabled="true">
  361. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  362. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  363. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  364. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  365. <collectionProp name="Arguments.arguments">
  366. <elementProp name="" elementType="Argument">
  367. <stringProp name="Argument.name"></stringProp>
  368. <stringProp name="Argument.value">show</stringProp>
  369. <stringProp name="Argument.metadata">=</stringProp>
  370. </elementProp>
  371. <elementProp name="" elementType="Argument">
  372. <stringProp name="Argument.name"></stringProp>
  373. <stringProp name="Argument.value">streams</stringProp>
  374. <stringProp name="Argument.metadata">=</stringProp>
  375. </elementProp>
  376. </collectionProp>
  377. </elementProp>
  378. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  379. <collectionProp name="Arguments.arguments"/>
  380. </elementProp>
  381. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  382. </SystemSampler>
  383. <hashTree>
  384. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  385. <collectionProp name="Asserion.test_strings">
  386. <stringProp name="-222768811">No stream definitions are found</stringProp>
  387. </collectionProp>
  388. <stringProp name="Assertion.custom_message"></stringProp>
  389. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  390. <boolProp name="Assertion.assume_success">false</boolProp>
  391. <intProp name="Assertion.test_type">16</intProp>
  392. </ResponseAssertion>
  393. <hashTree/>
  394. </hashTree>
  395. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Create_Stream" enabled="true">
  396. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  397. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  398. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  399. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  400. <collectionProp name="Arguments.arguments">
  401. <elementProp name="" elementType="Argument">
  402. <stringProp name="Argument.name"></stringProp>
  403. <stringProp name="Argument.value">create</stringProp>
  404. <stringProp name="Argument.metadata">=</stringProp>
  405. </elementProp>
  406. <elementProp name="" elementType="Argument">
  407. <stringProp name="Argument.name"></stringProp>
  408. <stringProp name="Argument.value">stream</stringProp>
  409. <stringProp name="Argument.metadata">=</stringProp>
  410. </elementProp>
  411. <elementProp name="" elementType="Argument">
  412. <stringProp name="Argument.name"></stringProp>
  413. <stringProp name="Argument.value">demo</stringProp>
  414. <stringProp name="Argument.metadata">=</stringProp>
  415. </elementProp>
  416. <elementProp name="" elementType="Argument">
  417. <stringProp name="Argument.name"></stringProp>
  418. <stringProp name="Argument.value">(temperature float, humidity bigint) WITH (FORMAT=&quot;JSON&quot;, DATASOURCE=&quot;devices/+/messages&quot;)</stringProp>
  419. <stringProp name="Argument.metadata">=</stringProp>
  420. </elementProp>
  421. </collectionProp>
  422. </elementProp>
  423. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  424. <collectionProp name="Arguments.arguments"/>
  425. </elementProp>
  426. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  427. </SystemSampler>
  428. <hashTree>
  429. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  430. <collectionProp name="Asserion.test_strings">
  431. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  432. </collectionProp>
  433. <stringProp name="Assertion.custom_message"></stringProp>
  434. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  435. <boolProp name="Assertion.assume_success">false</boolProp>
  436. <intProp name="Assertion.test_type">16</intProp>
  437. </ResponseAssertion>
  438. <hashTree/>
  439. </hashTree>
  440. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Create_Duplicated_Stream" enabled="true">
  441. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  442. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  443. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  444. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  445. <collectionProp name="Arguments.arguments">
  446. <elementProp name="" elementType="Argument">
  447. <stringProp name="Argument.name"></stringProp>
  448. <stringProp name="Argument.value">create</stringProp>
  449. <stringProp name="Argument.metadata">=</stringProp>
  450. </elementProp>
  451. <elementProp name="" elementType="Argument">
  452. <stringProp name="Argument.name"></stringProp>
  453. <stringProp name="Argument.value">stream</stringProp>
  454. <stringProp name="Argument.metadata">=</stringProp>
  455. </elementProp>
  456. <elementProp name="" elementType="Argument">
  457. <stringProp name="Argument.name"></stringProp>
  458. <stringProp name="Argument.value">demo</stringProp>
  459. <stringProp name="Argument.metadata">=</stringProp>
  460. </elementProp>
  461. <elementProp name="" elementType="Argument">
  462. <stringProp name="Argument.name"></stringProp>
  463. <stringProp name="Argument.value">(temperature float, humidity bigint) WITH (FORMAT=&quot;JSON&quot;, DATASOURCE=&quot;devices/+/messages&quot;)</stringProp>
  464. <stringProp name="Argument.metadata">=</stringProp>
  465. </elementProp>
  466. </collectionProp>
  467. </elementProp>
  468. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  469. <collectionProp name="Arguments.arguments"/>
  470. </elementProp>
  471. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  472. </SystemSampler>
  473. <hashTree>
  474. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  475. <collectionProp name="Asserion.test_strings">
  476. <stringProp name="1756800148">Item demo already exists</stringProp>
  477. </collectionProp>
  478. <stringProp name="Assertion.custom_message"></stringProp>
  479. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  480. <boolProp name="Assertion.assume_success">false</boolProp>
  481. <intProp name="Assertion.test_type">16</intProp>
  482. </ResponseAssertion>
  483. <hashTree/>
  484. </hashTree>
  485. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Get_Streams" enabled="true">
  486. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  487. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  488. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  489. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  490. <collectionProp name="Arguments.arguments">
  491. <elementProp name="" elementType="Argument">
  492. <stringProp name="Argument.name"></stringProp>
  493. <stringProp name="Argument.value">show</stringProp>
  494. <stringProp name="Argument.metadata">=</stringProp>
  495. </elementProp>
  496. <elementProp name="" elementType="Argument">
  497. <stringProp name="Argument.name"></stringProp>
  498. <stringProp name="Argument.value">streams</stringProp>
  499. <stringProp name="Argument.metadata">=</stringProp>
  500. </elementProp>
  501. </collectionProp>
  502. </elementProp>
  503. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  504. <collectionProp name="Arguments.arguments"/>
  505. </elementProp>
  506. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  507. </SystemSampler>
  508. <hashTree>
  509. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  510. <collectionProp name="Asserion.test_strings">
  511. <stringProp name="3079651">demo</stringProp>
  512. </collectionProp>
  513. <stringProp name="Assertion.custom_message"></stringProp>
  514. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  515. <boolProp name="Assertion.assume_success">false</boolProp>
  516. <intProp name="Assertion.test_type">16</intProp>
  517. </ResponseAssertion>
  518. <hashTree/>
  519. </hashTree>
  520. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Describe_Stream" enabled="true">
  521. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  522. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  523. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  524. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  525. <collectionProp name="Arguments.arguments">
  526. <elementProp name="" elementType="Argument">
  527. <stringProp name="Argument.name"></stringProp>
  528. <stringProp name="Argument.value">describe</stringProp>
  529. <stringProp name="Argument.metadata">=</stringProp>
  530. </elementProp>
  531. <elementProp name="" elementType="Argument">
  532. <stringProp name="Argument.name"></stringProp>
  533. <stringProp name="Argument.value">stream</stringProp>
  534. <stringProp name="Argument.metadata">=</stringProp>
  535. </elementProp>
  536. <elementProp name="" elementType="Argument">
  537. <stringProp name="Argument.name"></stringProp>
  538. <stringProp name="Argument.value">demo</stringProp>
  539. <stringProp name="Argument.metadata">=</stringProp>
  540. </elementProp>
  541. </collectionProp>
  542. </elementProp>
  543. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  544. <collectionProp name="Arguments.arguments"/>
  545. </elementProp>
  546. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  547. </SystemSampler>
  548. <hashTree>
  549. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  550. <collectionProp name="Asserion.test_strings">
  551. <stringProp name="-757609694">devices/+/messages</stringProp>
  552. </collectionProp>
  553. <stringProp name="Assertion.custom_message"></stringProp>
  554. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  555. <boolProp name="Assertion.assume_success">false</boolProp>
  556. <intProp name="Assertion.test_type">16</intProp>
  557. </ResponseAssertion>
  558. <hashTree/>
  559. </hashTree>
  560. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Drop_Stream" enabled="true">
  561. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  562. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  563. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  564. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  565. <collectionProp name="Arguments.arguments">
  566. <elementProp name="" elementType="Argument">
  567. <stringProp name="Argument.name"></stringProp>
  568. <stringProp name="Argument.value">drop</stringProp>
  569. <stringProp name="Argument.metadata">=</stringProp>
  570. </elementProp>
  571. <elementProp name="" elementType="Argument">
  572. <stringProp name="Argument.name"></stringProp>
  573. <stringProp name="Argument.value">stream</stringProp>
  574. <stringProp name="Argument.metadata">=</stringProp>
  575. </elementProp>
  576. <elementProp name="" elementType="Argument">
  577. <stringProp name="Argument.name"></stringProp>
  578. <stringProp name="Argument.value">demo</stringProp>
  579. <stringProp name="Argument.metadata">=</stringProp>
  580. </elementProp>
  581. </collectionProp>
  582. </elementProp>
  583. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  584. <collectionProp name="Arguments.arguments"/>
  585. </elementProp>
  586. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  587. </SystemSampler>
  588. <hashTree>
  589. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  590. <collectionProp name="Asserion.test_strings">
  591. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  592. </collectionProp>
  593. <stringProp name="Assertion.custom_message"></stringProp>
  594. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  595. <boolProp name="Assertion.assume_success">false</boolProp>
  596. <intProp name="Assertion.test_type">16</intProp>
  597. </ResponseAssertion>
  598. <hashTree/>
  599. </hashTree>
  600. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Get_Empty_Streams" enabled="true">
  601. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  602. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  603. <stringProp name="SystemSampler.command">bin/kuiper</stringProp>
  604. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  605. <collectionProp name="Arguments.arguments">
  606. <elementProp name="" elementType="Argument">
  607. <stringProp name="Argument.name"></stringProp>
  608. <stringProp name="Argument.value">show</stringProp>
  609. <stringProp name="Argument.metadata">=</stringProp>
  610. </elementProp>
  611. <elementProp name="" elementType="Argument">
  612. <stringProp name="Argument.name"></stringProp>
  613. <stringProp name="Argument.value">streams</stringProp>
  614. <stringProp name="Argument.metadata">=</stringProp>
  615. </elementProp>
  616. </collectionProp>
  617. </elementProp>
  618. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  619. <collectionProp name="Arguments.arguments"/>
  620. </elementProp>
  621. <stringProp name="SystemSampler.directory">${k_home}</stringProp>
  622. </SystemSampler>
  623. <hashTree>
  624. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  625. <collectionProp name="Asserion.test_strings">
  626. <stringProp name="-222768811">No stream definitions are found</stringProp>
  627. </collectionProp>
  628. <stringProp name="Assertion.custom_message"></stringProp>
  629. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  630. <boolProp name="Assertion.assume_success">false</boolProp>
  631. <intProp name="Assertion.test_type">16</intProp>
  632. </ResponseAssertion>
  633. <hashTree/>
  634. </hashTree>
  635. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  636. <boolProp name="ResultCollector.error_logging">false</boolProp>
  637. <objProp>
  638. <name>saveConfig</name>
  639. <value class="SampleSaveConfiguration">
  640. <time>true</time>
  641. <latency>true</latency>
  642. <timestamp>true</timestamp>
  643. <success>true</success>
  644. <label>true</label>
  645. <code>true</code>
  646. <message>true</message>
  647. <threadName>true</threadName>
  648. <dataType>true</dataType>
  649. <encoding>false</encoding>
  650. <assertions>true</assertions>
  651. <subresults>true</subresults>
  652. <responseData>false</responseData>
  653. <samplerData>false</samplerData>
  654. <xml>false</xml>
  655. <fieldNames>true</fieldNames>
  656. <responseHeaders>false</responseHeaders>
  657. <requestHeaders>false</requestHeaders>
  658. <responseDataOnError>false</responseDataOnError>
  659. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  660. <assertionsResultsToSave>0</assertionsResultsToSave>
  661. <bytes>true</bytes>
  662. <sentBytes>true</sentBytes>
  663. <threadCounts>true</threadCounts>
  664. <idleTime>true</idleTime>
  665. <connectTime>true</connectTime>
  666. </value>
  667. </objProp>
  668. <stringProp name="filename"></stringProp>
  669. </ResultCollector>
  670. <hashTree/>
  671. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  672. <stringProp name="ConstantTimer.delay">500</stringProp>
  673. </ConstantTimer>
  674. <hashTree/>
  675. </hashTree>
  676. </hashTree>
  677. </hashTree>
  678. </jmeterTestPlan>