streams_test.jmx 40 KB

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