redis_kv_storage.jmx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
  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="fvt" elementType="Argument">
  28. <stringProp name="Argument.name">fvt</stringProp>
  29. <stringProp name="Argument.value">${__property(fvt,,)}</stringProp>
  30. <stringProp name="Argument.metadata">=</stringProp>
  31. </elementProp>
  32. <elementProp name="redis_srv" elementType="Argument">
  33. <stringProp name="Argument.name">redis_srv</stringProp>
  34. <stringProp name="Argument.value">127.0.0.1</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. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  52. </ThreadGroup>
  53. <hashTree>
  54. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  55. <boolProp name="ResultCollector.error_logging">false</boolProp>
  56. <objProp>
  57. <name>saveConfig</name>
  58. <value class="SampleSaveConfiguration">
  59. <time>true</time>
  60. <latency>true</latency>
  61. <timestamp>true</timestamp>
  62. <success>true</success>
  63. <label>true</label>
  64. <code>true</code>
  65. <message>true</message>
  66. <threadName>true</threadName>
  67. <dataType>true</dataType>
  68. <encoding>false</encoding>
  69. <assertions>true</assertions>
  70. <subresults>true</subresults>
  71. <responseData>false</responseData>
  72. <samplerData>false</samplerData>
  73. <xml>false</xml>
  74. <fieldNames>true</fieldNames>
  75. <responseHeaders>false</responseHeaders>
  76. <requestHeaders>false</requestHeaders>
  77. <responseDataOnError>false</responseDataOnError>
  78. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  79. <assertionsResultsToSave>0</assertionsResultsToSave>
  80. <bytes>true</bytes>
  81. <sentBytes>true</sentBytes>
  82. <threadCounts>true</threadCounts>
  83. <idleTime>true</idleTime>
  84. <connectTime>true</connectTime>
  85. </value>
  86. </objProp>
  87. <stringProp name="filename"></stringProp>
  88. </ResultCollector>
  89. <hashTree/>
  90. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Rule" enabled="true">
  91. <boolProp name="TransactionController.includeTimers">false</boolProp>
  92. <boolProp name="TransactionController.parent">false</boolProp>
  93. </TransactionController>
  94. <hashTree>
  95. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  96. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  97. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  98. <collectionProp name="Arguments.arguments">
  99. <elementProp name="" elementType="HTTPArgument">
  100. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  101. <stringProp name="Argument.value">{&#xd;
  102. &quot;sql&quot; : &quot;create stream demo () WITH (FORMAT=\&quot;JSON\&quot;,DATASOURCE=\&quot;demo\&quot;)&quot;&#xd;
  103. }</stringProp>
  104. <stringProp name="Argument.metadata">=</stringProp>
  105. </elementProp>
  106. </collectionProp>
  107. </elementProp>
  108. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  109. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  110. <stringProp name="HTTPSampler.protocol"></stringProp>
  111. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  112. <stringProp name="HTTPSampler.path">/streams</stringProp>
  113. <stringProp name="HTTPSampler.method">POST</stringProp>
  114. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  115. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  116. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  117. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  118. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  119. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  120. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  121. </HTTPSamplerProxy>
  122. <hashTree>
  123. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  124. <collectionProp name="Asserion.test_strings">
  125. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  126. </collectionProp>
  127. <stringProp name="Assertion.custom_message"></stringProp>
  128. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  129. <boolProp name="Assertion.assume_success">true</boolProp>
  130. <intProp name="Assertion.test_type">16</intProp>
  131. </ResponseAssertion>
  132. <hashTree/>
  133. </hashTree>
  134. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  135. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  136. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  137. <collectionProp name="Arguments.arguments">
  138. <elementProp name="" elementType="HTTPArgument">
  139. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  140. <stringProp name="Argument.value">{&#xd;
  141. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  142. &quot;sql&quot;: &quot;SELECT * FROM demo&quot;,&#xd;
  143. &quot;actions&quot;: [&#xd;
  144. {&#xd;
  145. &quot;log&quot;: {}&#xd;
  146. },&#xd;
  147. {&#xd;
  148. &quot;mqtt&quot;: {&#xd;
  149. &quot;server&quot;: &quot;tcp://127.0.0.1:1883&quot;,&#xd;
  150. &quot;topic&quot;: &quot;devices/result&quot;,&#xd;
  151. &quot;qos&quot;: 1,&#xd;
  152. &quot;clientId&quot;: &quot;demo_001&quot;&#xd;
  153. }&#xd;
  154. }&#xd;
  155. ]&#xd;
  156. }</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">POST</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. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  177. <collectionProp name="Asserion.test_strings">
  178. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  179. </collectionProp>
  180. <stringProp name="Assertion.custom_message"></stringProp>
  181. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  182. <boolProp name="Assertion.assume_success">true</boolProp>
  183. <intProp name="Assertion.test_type">16</intProp>
  184. </ResponseAssertion>
  185. <hashTree/>
  186. </hashTree>
  187. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  188. <boolProp name="SystemSampler.checkReturnCode">true</boolProp>
  189. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  190. <stringProp name="SystemSampler.command">test/redis/set</stringProp>
  191. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  192. <collectionProp name="Arguments.arguments">
  193. <elementProp name="" elementType="Argument">
  194. <stringProp name="Argument.name"></stringProp>
  195. <stringProp name="Argument.value">get</stringProp>
  196. <stringProp name="Argument.metadata">=</stringProp>
  197. </elementProp>
  198. <elementProp name="" elementType="Argument">
  199. <stringProp name="Argument.name"></stringProp>
  200. <stringProp name="Argument.value">${redis_srv}</stringProp>
  201. <stringProp name="Argument.metadata">=</stringProp>
  202. </elementProp>
  203. <elementProp name="" elementType="Argument">
  204. <stringProp name="Argument.name"></stringProp>
  205. <stringProp name="Argument.value">KV:STORE:stream:demo</stringProp>
  206. <stringProp name="Argument.metadata">=</stringProp>
  207. </elementProp>
  208. </collectionProp>
  209. </elementProp>
  210. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  211. <collectionProp name="Arguments.arguments"/>
  212. </elementProp>
  213. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  214. </SystemSampler>
  215. <hashTree>
  216. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  217. <collectionProp name="Asserion.test_strings">
  218. <stringProp name="-1550701856">&quot;create stream demo () WITH (FORMAT=\&quot;JSON\&quot;,DATASOURCE=\&quot;demo\&quot;)&quot;</stringProp>
  219. </collectionProp>
  220. <stringProp name="Assertion.custom_message"></stringProp>
  221. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  222. <boolProp name="Assertion.assume_success">false</boolProp>
  223. <intProp name="Assertion.test_type">16</intProp>
  224. </ResponseAssertion>
  225. <hashTree/>
  226. </hashTree>
  227. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  228. <boolProp name="SystemSampler.checkReturnCode">true</boolProp>
  229. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  230. <stringProp name="SystemSampler.command">test/redis/set</stringProp>
  231. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  232. <collectionProp name="Arguments.arguments">
  233. <elementProp name="" elementType="Argument">
  234. <stringProp name="Argument.name"></stringProp>
  235. <stringProp name="Argument.value">get</stringProp>
  236. <stringProp name="Argument.metadata">=</stringProp>
  237. </elementProp>
  238. <elementProp name="" elementType="Argument">
  239. <stringProp name="Argument.name"></stringProp>
  240. <stringProp name="Argument.value">${redis_srv}</stringProp>
  241. <stringProp name="Argument.metadata">=</stringProp>
  242. </elementProp>
  243. <elementProp name="" elementType="Argument">
  244. <stringProp name="Argument.name"></stringProp>
  245. <stringProp name="Argument.value">KV:STORE:rule:rule1</stringProp>
  246. <stringProp name="Argument.metadata">=</stringProp>
  247. </elementProp>
  248. </collectionProp>
  249. </elementProp>
  250. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  251. <collectionProp name="Arguments.arguments"/>
  252. </elementProp>
  253. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  254. </SystemSampler>
  255. <hashTree>
  256. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  257. <collectionProp name="Asserion.test_strings">
  258. <stringProp name="-81457759">&quot;SELECT * FROM demo&quot;</stringProp>
  259. </collectionProp>
  260. <stringProp name="Assertion.custom_message"></stringProp>
  261. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  262. <boolProp name="Assertion.assume_success">false</boolProp>
  263. <intProp name="Assertion.test_type">16</intProp>
  264. </ResponseAssertion>
  265. <hashTree/>
  266. </hashTree>
  267. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  268. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  269. <collectionProp name="Arguments.arguments"/>
  270. </elementProp>
  271. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  272. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  273. <stringProp name="HTTPSampler.protocol"></stringProp>
  274. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  275. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  276. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  277. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  278. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  279. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  280. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  281. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  282. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  283. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  284. </HTTPSamplerProxy>
  285. <hashTree>
  286. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  287. <collectionProp name="Asserion.test_strings">
  288. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  289. </collectionProp>
  290. <stringProp name="Assertion.custom_message"></stringProp>
  291. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  292. <boolProp name="Assertion.assume_success">false</boolProp>
  293. <intProp name="Assertion.test_type">16</intProp>
  294. </ResponseAssertion>
  295. <hashTree/>
  296. </hashTree>
  297. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  298. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  299. <collectionProp name="Arguments.arguments"/>
  300. </elementProp>
  301. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  302. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  303. <stringProp name="HTTPSampler.protocol"></stringProp>
  304. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  305. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  306. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  307. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  308. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  309. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  310. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  311. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  312. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  313. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  314. </HTTPSamplerProxy>
  315. <hashTree>
  316. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  317. <collectionProp name="Asserion.test_strings">
  318. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  319. </collectionProp>
  320. <stringProp name="Assertion.custom_message"></stringProp>
  321. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  322. <boolProp name="Assertion.assume_success">false</boolProp>
  323. <intProp name="Assertion.test_type">16</intProp>
  324. </ResponseAssertion>
  325. <hashTree/>
  326. </hashTree>
  327. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  328. <stringProp name="ConstantTimer.delay">500</stringProp>
  329. </ConstantTimer>
  330. <hashTree/>
  331. </hashTree>
  332. </hashTree>
  333. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="true">
  334. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  335. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  336. <boolProp name="LoopController.continue_forever">false</boolProp>
  337. <stringProp name="LoopController.loops">1</stringProp>
  338. </elementProp>
  339. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  340. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  341. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  342. <stringProp name="ThreadGroup.duration"></stringProp>
  343. <stringProp name="ThreadGroup.delay"></stringProp>
  344. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  345. </ThreadGroup>
  346. <hashTree/>
  347. </hashTree>
  348. </hashTree>
  349. </jmeterTestPlan>