rule_test.jmx 41 KB

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