plugin_end_2_end.jmx 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2022 EMQ Technologies Co., Ltd.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
  18. <hashTree>
  19. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  20. <stringProp name="TestPlan.comments"></stringProp>
  21. <boolProp name="TestPlan.functional_mode">false</boolProp>
  22. <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
  23. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  24. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  25. <collectionProp name="Arguments.arguments"/>
  26. </elementProp>
  27. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  28. </TestPlan>
  29. <hashTree>
  30. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  31. <collectionProp name="Arguments.arguments">
  32. <elementProp name="srv" elementType="Argument">
  33. <stringProp name="Argument.name">srv</stringProp>
  34. <stringProp name="Argument.value">127.0.0.1</stringProp>
  35. <stringProp name="Argument.metadata">=</stringProp>
  36. </elementProp>
  37. <elementProp name="rest_port" elementType="Argument">
  38. <stringProp name="Argument.name">rest_port</stringProp>
  39. <stringProp name="Argument.value">9081</stringProp>
  40. <stringProp name="Argument.metadata">=</stringProp>
  41. </elementProp>
  42. </collectionProp>
  43. </Arguments>
  44. <hashTree/>
  45. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  46. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  47. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  48. <boolProp name="LoopController.continue_forever">false</boolProp>
  49. <stringProp name="LoopController.loops">1</stringProp>
  50. </elementProp>
  51. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  52. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  53. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  54. <stringProp name="ThreadGroup.duration"></stringProp>
  55. <stringProp name="ThreadGroup.delay"></stringProp>
  56. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  57. </ThreadGroup>
  58. <hashTree>
  59. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  60. <boolProp name="ResultCollector.error_logging">false</boolProp>
  61. <objProp>
  62. <name>saveConfig</name>
  63. <value class="SampleSaveConfiguration">
  64. <time>true</time>
  65. <latency>true</latency>
  66. <timestamp>true</timestamp>
  67. <success>true</success>
  68. <label>true</label>
  69. <code>true</code>
  70. <message>true</message>
  71. <threadName>true</threadName>
  72. <dataType>true</dataType>
  73. <encoding>false</encoding>
  74. <assertions>true</assertions>
  75. <subresults>true</subresults>
  76. <responseData>false</responseData>
  77. <samplerData>false</samplerData>
  78. <xml>false</xml>
  79. <fieldNames>true</fieldNames>
  80. <responseHeaders>false</responseHeaders>
  81. <requestHeaders>false</requestHeaders>
  82. <responseDataOnError>false</responseDataOnError>
  83. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  84. <assertionsResultsToSave>0</assertionsResultsToSave>
  85. <bytes>true</bytes>
  86. <sentBytes>true</sentBytes>
  87. <threadCounts>true</threadCounts>
  88. <idleTime>true</idleTime>
  89. <connectTime>true</connectTime>
  90. </value>
  91. </objProp>
  92. <stringProp name="filename"></stringProp>
  93. </ResultCollector>
  94. <hashTree/>
  95. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Zmq plugin" enabled="true">
  96. <boolProp name="TransactionController.includeTimers">false</boolProp>
  97. <boolProp name="TransactionController.parent">false</boolProp>
  98. </TransactionController>
  99. <hashTree>
  100. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
  101. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  102. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  103. <collectionProp name="Arguments.arguments">
  104. <elementProp name="" elementType="HTTPArgument">
  105. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  106. <stringProp name="Argument.value">{&#xd;
  107. &quot;name&quot;:&quot;zmq&quot;,&#xd;
  108. &quot;file&quot;:&quot;http://127.0.0.1:9090/plugins/zmq.zip&quot;&#xd;
  109. }</stringProp>
  110. <stringProp name="Argument.metadata">=</stringProp>
  111. </elementProp>
  112. </collectionProp>
  113. </elementProp>
  114. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  115. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  116. <stringProp name="HTTPSampler.protocol"></stringProp>
  117. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  118. <stringProp name="HTTPSampler.path">/plugins/sources</stringProp>
  119. <stringProp name="HTTPSampler.method">POST</stringProp>
  120. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  121. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  122. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  123. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  124. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  125. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  126. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  127. </HTTPSamplerProxy>
  128. <hashTree>
  129. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  130. <collectionProp name="Asserion.test_strings">
  131. <stringProp name="49587">201</stringProp>
  132. </collectionProp>
  133. <stringProp name="Assertion.custom_message"></stringProp>
  134. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  135. <boolProp name="Assertion.assume_success">true</boolProp>
  136. <intProp name="Assertion.test_type">16</intProp>
  137. </ResponseAssertion>
  138. <hashTree/>
  139. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  140. <stringProp name="ConstantTimer.delay">500</stringProp>
  141. </ConstantTimer>
  142. <hashTree/>
  143. </hashTree>
  144. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
  145. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  146. <collectionProp name="Arguments.arguments"/>
  147. </elementProp>
  148. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  149. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  150. <stringProp name="HTTPSampler.protocol"></stringProp>
  151. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  152. <stringProp name="HTTPSampler.path">/plugins/sources/zmq</stringProp>
  153. <stringProp name="HTTPSampler.method">GET</stringProp>
  154. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  155. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  156. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  157. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  158. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  159. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  160. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  161. </HTTPSamplerProxy>
  162. <hashTree>
  163. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  164. <collectionProp name="Asserion.test_strings">
  165. <stringProp name="120734">zmq</stringProp>
  166. </collectionProp>
  167. <stringProp name="Assertion.custom_message"></stringProp>
  168. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  169. <boolProp name="Assertion.assume_success">true</boolProp>
  170. <intProp name="Assertion.test_type">16</intProp>
  171. </ResponseAssertion>
  172. <hashTree/>
  173. </hashTree>
  174. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  175. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  176. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  177. <collectionProp name="Arguments.arguments">
  178. <elementProp name="" elementType="HTTPArgument">
  179. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  180. <stringProp name="Argument.value">{&#xd;
  181. &quot;sql&quot; : &quot;create stream demo (humidity bigint, temperature bigint) WITH (DATASOURCE=\&quot;events\&quot;, FORMAT=\&quot;JSON\&quot;, TYPE=\&quot;zmq\&quot;)&quot;&#xd;
  182. }</stringProp>
  183. <stringProp name="Argument.metadata">=</stringProp>
  184. </elementProp>
  185. </collectionProp>
  186. </elementProp>
  187. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  188. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  189. <stringProp name="HTTPSampler.protocol"></stringProp>
  190. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  191. <stringProp name="HTTPSampler.path">/streams</stringProp>
  192. <stringProp name="HTTPSampler.method">POST</stringProp>
  193. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  194. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  195. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  196. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  197. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  198. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  199. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  200. </HTTPSamplerProxy>
  201. <hashTree>
  202. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  203. <collectionProp name="Asserion.test_strings">
  204. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  205. </collectionProp>
  206. <stringProp name="Assertion.custom_message"></stringProp>
  207. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  208. <boolProp name="Assertion.assume_success">true</boolProp>
  209. <intProp name="Assertion.test_type">16</intProp>
  210. </ResponseAssertion>
  211. <hashTree/>
  212. </hashTree>
  213. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  214. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  215. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  216. <collectionProp name="Arguments.arguments">
  217. <elementProp name="" elementType="HTTPArgument">
  218. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  219. <stringProp name="Argument.value">{&#xd;
  220. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  221. &quot;sql&quot;: &quot;SELECT * FROM demo WHERE humidity = 55&quot;,&#xd;
  222. &quot;actions&quot;: [&#xd;
  223. {&#xd;
  224. &quot;rest&quot;: {&#xd;
  225. &quot;url&quot;: &quot;http://127.0.0.1:9090/alert&quot;,&#xd;
  226. &quot;method&quot;: &quot;post&quot;,&#xd;
  227. &quot;dataTemplate&quot;: &quot;{\&quot;content\&quot;:{{json .}}}&quot;,&#xd;
  228. &quot;sendSingle&quot;: true&#xd;
  229. }&#xd;
  230. }&#xd;
  231. ]&#xd;
  232. }</stringProp>
  233. <stringProp name="Argument.metadata">=</stringProp>
  234. </elementProp>
  235. </collectionProp>
  236. </elementProp>
  237. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  238. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  239. <stringProp name="HTTPSampler.protocol"></stringProp>
  240. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  241. <stringProp name="HTTPSampler.path">/rules</stringProp>
  242. <stringProp name="HTTPSampler.method">POST</stringProp>
  243. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  244. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  245. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  246. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  247. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  248. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  249. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  250. </HTTPSamplerProxy>
  251. <hashTree>
  252. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  253. <collectionProp name="Asserion.test_strings">
  254. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  255. </collectionProp>
  256. <stringProp name="Assertion.custom_message"></stringProp>
  257. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  258. <boolProp name="Assertion.assume_success">true</boolProp>
  259. <intProp name="Assertion.test_type">16</intProp>
  260. </ResponseAssertion>
  261. <hashTree/>
  262. </hashTree>
  263. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="Send_Data" enabled="true">
  264. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  265. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  266. <stringProp name="SystemSampler.command">test/plugins/pub/zmq_pub</stringProp>
  267. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  268. <collectionProp name="Arguments.arguments"/>
  269. </elementProp>
  270. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  271. <collectionProp name="Arguments.arguments"/>
  272. </elementProp>
  273. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  274. </SystemSampler>
  275. <hashTree>
  276. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  277. <stringProp name="ConstantTimer.delay">500</stringProp>
  278. </ConstantTimer>
  279. <hashTree/>
  280. </hashTree>
  281. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  282. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  283. <collectionProp name="Arguments.arguments"/>
  284. </elementProp>
  285. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  286. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  287. <stringProp name="HTTPSampler.protocol"></stringProp>
  288. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  289. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  290. <stringProp name="HTTPSampler.method">GET</stringProp>
  291. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  292. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  293. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  294. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  295. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  296. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  297. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  298. </HTTPSamplerProxy>
  299. <hashTree>
  300. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  301. <stringProp name="JSON_PATH">$.sink_rest_0_0_records_in_total</stringProp>
  302. <stringProp name="EXPECTED_VALUE">2</stringProp>
  303. <boolProp name="JSONVALIDATION">true</boolProp>
  304. <boolProp name="EXPECT_NULL">false</boolProp>
  305. <boolProp name="INVERT">false</boolProp>
  306. <boolProp name="ISREGEX">false</boolProp>
  307. </JSONPathAssertion>
  308. <hashTree/>
  309. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  310. <stringProp name="ConstantTimer.delay">1000</stringProp>
  311. </ConstantTimer>
  312. <hashTree/>
  313. </hashTree>
  314. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  315. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  316. <collectionProp name="Arguments.arguments"/>
  317. </elementProp>
  318. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  319. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  320. <stringProp name="HTTPSampler.protocol"></stringProp>
  321. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  322. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  323. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  324. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  325. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  326. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  327. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  328. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  329. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  330. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  331. </HTTPSamplerProxy>
  332. <hashTree>
  333. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  334. <collectionProp name="Asserion.test_strings">
  335. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  336. </collectionProp>
  337. <stringProp name="Assertion.custom_message"></stringProp>
  338. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  339. <boolProp name="Assertion.assume_success">false</boolProp>
  340. <intProp name="Assertion.test_type">16</intProp>
  341. </ResponseAssertion>
  342. <hashTree/>
  343. </hashTree>
  344. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  345. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  346. <collectionProp name="Arguments.arguments"/>
  347. </elementProp>
  348. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  349. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  350. <stringProp name="HTTPSampler.protocol"></stringProp>
  351. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  352. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  353. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  354. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  355. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  356. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  357. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  358. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  359. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  360. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  361. </HTTPSamplerProxy>
  362. <hashTree>
  363. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  364. <collectionProp name="Asserion.test_strings">
  365. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  366. </collectionProp>
  367. <stringProp name="Assertion.custom_message"></stringProp>
  368. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  369. <boolProp name="Assertion.assume_success">false</boolProp>
  370. <intProp name="Assertion.test_type">16</intProp>
  371. </ResponseAssertion>
  372. <hashTree/>
  373. </hashTree>
  374. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
  375. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  376. <collectionProp name="Arguments.arguments"/>
  377. </elementProp>
  378. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  379. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  380. <stringProp name="HTTPSampler.protocol"></stringProp>
  381. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  382. <stringProp name="HTTPSampler.path">/plugins/sources/zmq</stringProp>
  383. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  384. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  385. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  386. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  387. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  388. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  389. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  390. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  391. </HTTPSamplerProxy>
  392. <hashTree>
  393. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  394. <collectionProp name="Asserion.test_strings">
  395. <stringProp name="-1776925942">sources plugin zmq is deleted</stringProp>
  396. </collectionProp>
  397. <stringProp name="Assertion.custom_message"></stringProp>
  398. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  399. <boolProp name="Assertion.assume_success">true</boolProp>
  400. <intProp name="Assertion.test_type">16</intProp>
  401. </ResponseAssertion>
  402. <hashTree/>
  403. </hashTree>
  404. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  405. <stringProp name="ConstantTimer.delay">500</stringProp>
  406. </ConstantTimer>
  407. <hashTree/>
  408. </hashTree>
  409. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Tdengine plugin" enabled="true">
  410. <boolProp name="TransactionController.includeTimers">false</boolProp>
  411. <boolProp name="TransactionController.parent">false</boolProp>
  412. </TransactionController>
  413. <hashTree>
  414. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
  415. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  416. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  417. <collectionProp name="Arguments.arguments">
  418. <elementProp name="" elementType="HTTPArgument">
  419. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  420. <stringProp name="Argument.value">{&#xd;
  421. &quot;name&quot;:&quot;tdengine&quot;,&#xd;
  422. &quot;file&quot;:&quot;http://127.0.0.1:9090/plugins/tdengine.zip&quot;&#xd;
  423. }</stringProp>
  424. <stringProp name="Argument.metadata">=</stringProp>
  425. </elementProp>
  426. </collectionProp>
  427. </elementProp>
  428. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  429. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  430. <stringProp name="HTTPSampler.protocol"></stringProp>
  431. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  432. <stringProp name="HTTPSampler.path">/plugins/sinks</stringProp>
  433. <stringProp name="HTTPSampler.method">POST</stringProp>
  434. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  435. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  436. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  437. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  438. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  439. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  440. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  441. </HTTPSamplerProxy>
  442. <hashTree>
  443. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  444. <collectionProp name="Asserion.test_strings">
  445. <stringProp name="49587">201</stringProp>
  446. </collectionProp>
  447. <stringProp name="Assertion.custom_message"></stringProp>
  448. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  449. <boolProp name="Assertion.assume_success">true</boolProp>
  450. <intProp name="Assertion.test_type">16</intProp>
  451. </ResponseAssertion>
  452. <hashTree/>
  453. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  454. <stringProp name="ConstantTimer.delay">500</stringProp>
  455. </ConstantTimer>
  456. <hashTree/>
  457. </hashTree>
  458. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
  459. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  460. <collectionProp name="Arguments.arguments"/>
  461. </elementProp>
  462. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  463. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  464. <stringProp name="HTTPSampler.protocol"></stringProp>
  465. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  466. <stringProp name="HTTPSampler.path">/plugins/sinks/tdengine</stringProp>
  467. <stringProp name="HTTPSampler.method">GET</stringProp>
  468. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  469. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  470. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  471. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  472. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  473. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  474. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  475. </HTTPSamplerProxy>
  476. <hashTree>
  477. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  478. <collectionProp name="Asserion.test_strings">
  479. <stringProp name="1854895282">tdengine</stringProp>
  480. </collectionProp>
  481. <stringProp name="Assertion.custom_message"></stringProp>
  482. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  483. <boolProp name="Assertion.assume_success">true</boolProp>
  484. <intProp name="Assertion.test_type">16</intProp>
  485. </ResponseAssertion>
  486. <hashTree/>
  487. </hashTree>
  488. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  489. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  490. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  491. <collectionProp name="Arguments.arguments">
  492. <elementProp name="" elementType="HTTPArgument">
  493. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  494. <stringProp name="Argument.value">{&#xd;
  495. &quot;sql&quot; : &quot;create stream demo (humidity bigint, temperature bigint) WITH (DATASOURCE=\&quot;events\&quot;, FORMAT=\&quot;JSON\&quot;, TYPE=\&quot;mqtt\&quot;)&quot;&#xd;
  496. }</stringProp>
  497. <stringProp name="Argument.metadata">=</stringProp>
  498. </elementProp>
  499. </collectionProp>
  500. </elementProp>
  501. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  502. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  503. <stringProp name="HTTPSampler.protocol"></stringProp>
  504. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  505. <stringProp name="HTTPSampler.path">/streams</stringProp>
  506. <stringProp name="HTTPSampler.method">POST</stringProp>
  507. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  508. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  509. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  510. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  511. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  512. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  513. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  514. </HTTPSamplerProxy>
  515. <hashTree>
  516. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  517. <collectionProp name="Asserion.test_strings">
  518. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  519. </collectionProp>
  520. <stringProp name="Assertion.custom_message"></stringProp>
  521. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  522. <boolProp name="Assertion.assume_success">true</boolProp>
  523. <intProp name="Assertion.test_type">16</intProp>
  524. </ResponseAssertion>
  525. <hashTree/>
  526. </hashTree>
  527. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  528. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  529. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  530. <collectionProp name="Arguments.arguments">
  531. <elementProp name="" elementType="HTTPArgument">
  532. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  533. <stringProp name="Argument.value">{&#xd;
  534. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  535. &quot;sql&quot;: &quot;SELECT * FROM demo&quot;,&#xd;
  536. &quot;actions&quot;: [&#xd;
  537. {&#xd;
  538. &quot;tdengine&quot;: {&#xd;
  539. &quot;provideTs&quot;: false,&#xd;
  540. &quot;tsFieldName&quot;: &quot;time&quot;,&#xd;
  541. &quot;port&quot;: 0,&#xd;
  542. &quot;ip&quot;: &quot;taos&quot;,&#xd;
  543. &quot;user&quot;: &quot;root&quot;,&#xd;
  544. &quot;password&quot;: &quot;taosdata&quot;,&#xd;
  545. &quot;database&quot;: &quot;sensor&quot;,&#xd;
  546. &quot;table&quot;: &quot;t1&quot;,&#xd;
  547. &quot;fields&quot;: [&#xd;
  548. &quot;temperature&quot;,&quot;humidity&quot;&#xd;
  549. ]&#xd;
  550. }&#xd;
  551. }&#xd;
  552. ]&#xd;
  553. }</stringProp>
  554. <stringProp name="Argument.metadata">=</stringProp>
  555. </elementProp>
  556. </collectionProp>
  557. </elementProp>
  558. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  559. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  560. <stringProp name="HTTPSampler.protocol"></stringProp>
  561. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  562. <stringProp name="HTTPSampler.path">/rules</stringProp>
  563. <stringProp name="HTTPSampler.method">POST</stringProp>
  564. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  565. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  566. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  567. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  568. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  569. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  570. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  571. </HTTPSamplerProxy>
  572. <hashTree>
  573. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  574. <collectionProp name="Asserion.test_strings">
  575. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  576. </collectionProp>
  577. <stringProp name="Assertion.custom_message"></stringProp>
  578. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  579. <boolProp name="Assertion.assume_success">true</boolProp>
  580. <intProp name="Assertion.test_type">16</intProp>
  581. </ResponseAssertion>
  582. <hashTree/>
  583. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  584. <stringProp name="ConstantTimer.delay">500</stringProp>
  585. </ConstantTimer>
  586. <hashTree/>
  587. </hashTree>
  588. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  589. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  590. <collectionProp name="Arguments.arguments"/>
  591. </elementProp>
  592. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  593. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  594. <stringProp name="HTTPSampler.protocol"></stringProp>
  595. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  596. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  597. <stringProp name="HTTPSampler.method">GET</stringProp>
  598. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  599. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  600. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  601. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  602. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  603. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  604. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  605. </HTTPSamplerProxy>
  606. <hashTree>
  607. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  608. <stringProp name="JSON_PATH">$.sink_tdengine_0_0_records_in_total</stringProp>
  609. <stringProp name="EXPECTED_VALUE">0</stringProp>
  610. <boolProp name="JSONVALIDATION">true</boolProp>
  611. <boolProp name="EXPECT_NULL">false</boolProp>
  612. <boolProp name="INVERT">false</boolProp>
  613. <boolProp name="ISREGEX">false</boolProp>
  614. </JSONPathAssertion>
  615. <hashTree/>
  616. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  617. <stringProp name="ConstantTimer.delay">1000</stringProp>
  618. </ConstantTimer>
  619. <hashTree/>
  620. </hashTree>
  621. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  622. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  623. <collectionProp name="Arguments.arguments"/>
  624. </elementProp>
  625. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  626. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  627. <stringProp name="HTTPSampler.protocol"></stringProp>
  628. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  629. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  630. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  631. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  632. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  633. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  634. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  635. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  636. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  637. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  638. </HTTPSamplerProxy>
  639. <hashTree>
  640. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  641. <collectionProp name="Asserion.test_strings">
  642. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  643. </collectionProp>
  644. <stringProp name="Assertion.custom_message"></stringProp>
  645. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  646. <boolProp name="Assertion.assume_success">false</boolProp>
  647. <intProp name="Assertion.test_type">16</intProp>
  648. </ResponseAssertion>
  649. <hashTree/>
  650. </hashTree>
  651. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  652. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  653. <collectionProp name="Arguments.arguments"/>
  654. </elementProp>
  655. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  656. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  657. <stringProp name="HTTPSampler.protocol"></stringProp>
  658. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  659. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  660. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  661. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  662. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  663. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  664. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  665. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  666. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  667. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  668. </HTTPSamplerProxy>
  669. <hashTree>
  670. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  671. <collectionProp name="Asserion.test_strings">
  672. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  673. </collectionProp>
  674. <stringProp name="Assertion.custom_message"></stringProp>
  675. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  676. <boolProp name="Assertion.assume_success">false</boolProp>
  677. <intProp name="Assertion.test_type">16</intProp>
  678. </ResponseAssertion>
  679. <hashTree/>
  680. </hashTree>
  681. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
  682. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  683. <collectionProp name="Arguments.arguments"/>
  684. </elementProp>
  685. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  686. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  687. <stringProp name="HTTPSampler.protocol"></stringProp>
  688. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  689. <stringProp name="HTTPSampler.path">/plugins/sinks/tdengine</stringProp>
  690. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  691. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  692. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  693. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  694. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  695. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  696. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  697. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  698. </HTTPSamplerProxy>
  699. <hashTree>
  700. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  701. <collectionProp name="Asserion.test_strings">
  702. <stringProp name="-1724150076">sinks plugin tdengine is deleted</stringProp>
  703. </collectionProp>
  704. <stringProp name="Assertion.custom_message"></stringProp>
  705. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  706. <boolProp name="Assertion.assume_success">true</boolProp>
  707. <intProp name="Assertion.test_type">16</intProp>
  708. </ResponseAssertion>
  709. <hashTree/>
  710. </hashTree>
  711. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  712. <stringProp name="ConstantTimer.delay">500</stringProp>
  713. </ConstantTimer>
  714. <hashTree/>
  715. </hashTree>
  716. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Sql plugin" enabled="true">
  717. <boolProp name="TransactionController.includeTimers">false</boolProp>
  718. <boolProp name="TransactionController.parent">false</boolProp>
  719. </TransactionController>
  720. <hashTree>
  721. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
  722. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  723. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  724. <collectionProp name="Arguments.arguments">
  725. <elementProp name="" elementType="HTTPArgument">
  726. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  727. <stringProp name="Argument.value">{&#xd;
  728. &quot;name&quot;:&quot;sql&quot;,&#xd;
  729. &quot;file&quot;:&quot;http://127.0.0.1:9090/plugins/sql.zip&quot;&#xd;
  730. }</stringProp>
  731. <stringProp name="Argument.metadata">=</stringProp>
  732. </elementProp>
  733. </collectionProp>
  734. </elementProp>
  735. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  736. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  737. <stringProp name="HTTPSampler.protocol"></stringProp>
  738. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  739. <stringProp name="HTTPSampler.path">/plugins/sinks</stringProp>
  740. <stringProp name="HTTPSampler.method">POST</stringProp>
  741. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  742. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  743. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  744. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  745. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  746. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  747. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  748. </HTTPSamplerProxy>
  749. <hashTree>
  750. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  751. <collectionProp name="Asserion.test_strings">
  752. <stringProp name="49587">201</stringProp>
  753. </collectionProp>
  754. <stringProp name="Assertion.custom_message"></stringProp>
  755. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  756. <boolProp name="Assertion.assume_success">true</boolProp>
  757. <intProp name="Assertion.test_type">16</intProp>
  758. </ResponseAssertion>
  759. <hashTree/>
  760. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  761. <stringProp name="ConstantTimer.delay">500</stringProp>
  762. </ConstantTimer>
  763. <hashTree/>
  764. </hashTree>
  765. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
  766. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  767. <collectionProp name="Arguments.arguments"/>
  768. </elementProp>
  769. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  770. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  771. <stringProp name="HTTPSampler.protocol"></stringProp>
  772. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  773. <stringProp name="HTTPSampler.path">/plugins/sinks/sql</stringProp>
  774. <stringProp name="HTTPSampler.method">GET</stringProp>
  775. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  776. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  777. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  778. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  779. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  780. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  781. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  782. </HTTPSamplerProxy>
  783. <hashTree>
  784. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  785. <collectionProp name="Asserion.test_strings">
  786. <stringProp name="114126">sql</stringProp>
  787. </collectionProp>
  788. <stringProp name="Assertion.custom_message"></stringProp>
  789. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  790. <boolProp name="Assertion.assume_success">true</boolProp>
  791. <intProp name="Assertion.test_type">16</intProp>
  792. </ResponseAssertion>
  793. <hashTree/>
  794. </hashTree>
  795. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  796. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  797. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  798. <collectionProp name="Arguments.arguments">
  799. <elementProp name="" elementType="HTTPArgument">
  800. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  801. <stringProp name="Argument.value">{&#xd;
  802. &quot;sql&quot; : &quot;create stream demo (humidity bigint, temperature bigint) WITH (DATASOURCE=\&quot;events\&quot;, FORMAT=\&quot;JSON\&quot;, TYPE=\&quot;mqtt\&quot;)&quot;&#xd;
  803. }</stringProp>
  804. <stringProp name="Argument.metadata">=</stringProp>
  805. </elementProp>
  806. </collectionProp>
  807. </elementProp>
  808. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  809. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  810. <stringProp name="HTTPSampler.protocol"></stringProp>
  811. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  812. <stringProp name="HTTPSampler.path">/streams</stringProp>
  813. <stringProp name="HTTPSampler.method">POST</stringProp>
  814. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  815. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  816. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  817. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  818. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  819. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  820. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  821. </HTTPSamplerProxy>
  822. <hashTree>
  823. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  824. <collectionProp name="Asserion.test_strings">
  825. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  826. </collectionProp>
  827. <stringProp name="Assertion.custom_message"></stringProp>
  828. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  829. <boolProp name="Assertion.assume_success">true</boolProp>
  830. <intProp name="Assertion.test_type">16</intProp>
  831. </ResponseAssertion>
  832. <hashTree/>
  833. </hashTree>
  834. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  835. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  836. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  837. <collectionProp name="Arguments.arguments">
  838. <elementProp name="" elementType="HTTPArgument">
  839. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  840. <stringProp name="Argument.value">{&#xd;
  841. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  842. &quot;sql&quot;: &quot;SELECT * FROM demo&quot;,&#xd;
  843. &quot;actions&quot;: [&#xd;
  844. {&#xd;
  845. &quot;sql&quot;: {&#xd;
  846. &quot;url&quot;: &quot;mysql://user:test@10.10.20.147/user?parseTime=true&quot;,&#xd;
  847. &quot;table&quot;: &quot;test&quot;,&#xd;
  848. &quot;fields&quot;: [&quot;id&quot;,&quot;name&quot;,&quot;registerTime&quot;]&#xd;
  849. }&#xd;
  850. }&#xd;
  851. ]&#xd;
  852. }</stringProp>
  853. <stringProp name="Argument.metadata">=</stringProp>
  854. </elementProp>
  855. </collectionProp>
  856. </elementProp>
  857. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  858. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  859. <stringProp name="HTTPSampler.protocol"></stringProp>
  860. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  861. <stringProp name="HTTPSampler.path">/rules</stringProp>
  862. <stringProp name="HTTPSampler.method">POST</stringProp>
  863. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  864. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  865. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  866. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  867. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  868. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  869. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  870. </HTTPSamplerProxy>
  871. <hashTree>
  872. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  873. <collectionProp name="Asserion.test_strings">
  874. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  875. </collectionProp>
  876. <stringProp name="Assertion.custom_message"></stringProp>
  877. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  878. <boolProp name="Assertion.assume_success">true</boolProp>
  879. <intProp name="Assertion.test_type">16</intProp>
  880. </ResponseAssertion>
  881. <hashTree/>
  882. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  883. <stringProp name="ConstantTimer.delay">500</stringProp>
  884. </ConstantTimer>
  885. <hashTree/>
  886. </hashTree>
  887. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  888. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  889. <collectionProp name="Arguments.arguments"/>
  890. </elementProp>
  891. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  892. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  893. <stringProp name="HTTPSampler.protocol"></stringProp>
  894. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  895. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  896. <stringProp name="HTTPSampler.method">GET</stringProp>
  897. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  898. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  899. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  900. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  901. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  902. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  903. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  904. </HTTPSamplerProxy>
  905. <hashTree>
  906. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  907. <stringProp name="JSON_PATH">$.sink_sql_0_0_records_in_total</stringProp>
  908. <stringProp name="EXPECTED_VALUE">0</stringProp>
  909. <boolProp name="JSONVALIDATION">true</boolProp>
  910. <boolProp name="EXPECT_NULL">false</boolProp>
  911. <boolProp name="INVERT">false</boolProp>
  912. <boolProp name="ISREGEX">false</boolProp>
  913. </JSONPathAssertion>
  914. <hashTree/>
  915. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  916. <stringProp name="ConstantTimer.delay">1000</stringProp>
  917. </ConstantTimer>
  918. <hashTree/>
  919. </hashTree>
  920. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  921. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  922. <collectionProp name="Arguments.arguments"/>
  923. </elementProp>
  924. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  925. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  926. <stringProp name="HTTPSampler.protocol"></stringProp>
  927. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  928. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  929. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  930. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  931. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  932. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  933. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  934. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  935. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  936. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  937. </HTTPSamplerProxy>
  938. <hashTree>
  939. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  940. <collectionProp name="Asserion.test_strings">
  941. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  942. </collectionProp>
  943. <stringProp name="Assertion.custom_message"></stringProp>
  944. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  945. <boolProp name="Assertion.assume_success">false</boolProp>
  946. <intProp name="Assertion.test_type">16</intProp>
  947. </ResponseAssertion>
  948. <hashTree/>
  949. </hashTree>
  950. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  951. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  952. <collectionProp name="Arguments.arguments"/>
  953. </elementProp>
  954. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  955. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  956. <stringProp name="HTTPSampler.protocol"></stringProp>
  957. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  958. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  959. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  960. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  961. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  962. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  963. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  964. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  965. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  966. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  967. </HTTPSamplerProxy>
  968. <hashTree>
  969. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  970. <collectionProp name="Asserion.test_strings">
  971. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  972. </collectionProp>
  973. <stringProp name="Assertion.custom_message"></stringProp>
  974. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  975. <boolProp name="Assertion.assume_success">false</boolProp>
  976. <intProp name="Assertion.test_type">16</intProp>
  977. </ResponseAssertion>
  978. <hashTree/>
  979. </hashTree>
  980. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  981. <stringProp name="ConstantTimer.delay">500</stringProp>
  982. </ConstantTimer>
  983. <hashTree/>
  984. </hashTree>
  985. </hashTree>
  986. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="false">
  987. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  988. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  989. <boolProp name="LoopController.continue_forever">false</boolProp>
  990. <stringProp name="LoopController.loops">1</stringProp>
  991. </elementProp>
  992. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  993. <stringProp name="ThreadGroup.ramp_time">0</stringProp>
  994. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  995. <stringProp name="ThreadGroup.duration"></stringProp>
  996. <stringProp name="ThreadGroup.delay"></stringProp>
  997. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  998. </ThreadGroup>
  999. <hashTree>
  1000. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  1001. <boolProp name="ResultCollector.error_logging">false</boolProp>
  1002. <objProp>
  1003. <name>saveConfig</name>
  1004. <value class="SampleSaveConfiguration">
  1005. <time>true</time>
  1006. <latency>true</latency>
  1007. <timestamp>true</timestamp>
  1008. <success>true</success>
  1009. <label>true</label>
  1010. <code>true</code>
  1011. <message>true</message>
  1012. <threadName>true</threadName>
  1013. <dataType>true</dataType>
  1014. <encoding>false</encoding>
  1015. <assertions>true</assertions>
  1016. <subresults>true</subresults>
  1017. <responseData>false</responseData>
  1018. <samplerData>false</samplerData>
  1019. <xml>false</xml>
  1020. <fieldNames>true</fieldNames>
  1021. <responseHeaders>false</responseHeaders>
  1022. <requestHeaders>false</requestHeaders>
  1023. <responseDataOnError>false</responseDataOnError>
  1024. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  1025. <assertionsResultsToSave>0</assertionsResultsToSave>
  1026. <bytes>true</bytes>
  1027. <sentBytes>true</sentBytes>
  1028. <threadCounts>true</threadCounts>
  1029. <idleTime>true</idleTime>
  1030. <connectTime>true</connectTime>
  1031. </value>
  1032. </objProp>
  1033. <stringProp name="filename"></stringProp>
  1034. </ResultCollector>
  1035. <hashTree/>
  1036. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="App_Service" enabled="true">
  1037. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  1038. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  1039. <stringProp name="SystemSampler.command">./server</stringProp>
  1040. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  1041. <collectionProp name="Arguments.arguments"/>
  1042. </elementProp>
  1043. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  1044. <collectionProp name="Arguments.arguments"/>
  1045. </elementProp>
  1046. <stringProp name="SystemSampler.directory">${__property(fvt,,)}/test/plugins/service/</stringProp>
  1047. </SystemSampler>
  1048. <hashTree/>
  1049. </hashTree>
  1050. </hashTree>
  1051. </hashTree>
  1052. </jmeterTestPlan>