edgex_redis_share_connection_sink_rule.jmx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2023 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.5">
  18. <hashTree>
  19. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
  20. <stringProp name="TestPlan.comments"></stringProp>
  21. <boolProp name="TestPlan.functional_mode">false</boolProp>
  22. <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
  23. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  24. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  25. <collectionProp name="Arguments.arguments"/>
  26. </elementProp>
  27. <stringProp name="TestPlan.user_define_classpath"></stringProp>
  28. </TestPlan>
  29. <hashTree>
  30. <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  31. <collectionProp name="Arguments.arguments">
  32. <elementProp name="srv" elementType="Argument">
  33. <stringProp name="Argument.name">srv</stringProp>
  34. <stringProp name="Argument.value">127.0.0.1</stringProp>
  35. <stringProp name="Argument.metadata">=</stringProp>
  36. </elementProp>
  37. <elementProp name="rest_port" elementType="Argument">
  38. <stringProp name="Argument.name">rest_port</stringProp>
  39. <stringProp name="Argument.value">9081</stringProp>
  40. <stringProp name="Argument.metadata">=</stringProp>
  41. </elementProp>
  42. <elementProp name="fvt" elementType="Argument">
  43. <stringProp name="Argument.name">fvt</stringProp>
  44. <stringProp name="Argument.value">${__property(fvt,,)}</stringProp>
  45. <stringProp name="Argument.metadata">=</stringProp>
  46. </elementProp>
  47. <elementProp name="redis_srv" elementType="Argument">
  48. <stringProp name="Argument.name">redis_srv</stringProp>
  49. <stringProp name="Argument.value">127.0.0.1</stringProp>
  50. <stringProp name="Argument.metadata">=</stringProp>
  51. </elementProp>
  52. </collectionProp>
  53. </Arguments>
  54. <hashTree/>
  55. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  56. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  57. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  58. <boolProp name="LoopController.continue_forever">false</boolProp>
  59. <stringProp name="LoopController.loops">1</stringProp>
  60. </elementProp>
  61. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  62. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  63. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  64. <stringProp name="ThreadGroup.duration"></stringProp>
  65. <stringProp name="ThreadGroup.delay"></stringProp>
  66. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  67. </ThreadGroup>
  68. <hashTree>
  69. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  70. <boolProp name="ResultCollector.error_logging">false</boolProp>
  71. <objProp>
  72. <name>saveConfig</name>
  73. <value class="SampleSaveConfiguration">
  74. <time>true</time>
  75. <latency>true</latency>
  76. <timestamp>true</timestamp>
  77. <success>true</success>
  78. <label>true</label>
  79. <code>true</code>
  80. <message>true</message>
  81. <threadName>true</threadName>
  82. <dataType>true</dataType>
  83. <encoding>false</encoding>
  84. <assertions>true</assertions>
  85. <subresults>true</subresults>
  86. <responseData>false</responseData>
  87. <samplerData>false</samplerData>
  88. <xml>false</xml>
  89. <fieldNames>true</fieldNames>
  90. <responseHeaders>false</responseHeaders>
  91. <requestHeaders>false</requestHeaders>
  92. <responseDataOnError>false</responseDataOnError>
  93. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  94. <assertionsResultsToSave>0</assertionsResultsToSave>
  95. <bytes>true</bytes>
  96. <sentBytes>true</sentBytes>
  97. <threadCounts>true</threadCounts>
  98. <idleTime>true</idleTime>
  99. <connectTime>true</connectTime>
  100. </value>
  101. </objProp>
  102. <stringProp name="filename"></stringProp>
  103. </ResultCollector>
  104. <hashTree/>
  105. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Rule" enabled="true">
  106. <boolProp name="TransactionController.includeTimers">false</boolProp>
  107. <boolProp name="TransactionController.parent">false</boolProp>
  108. </TransactionController>
  109. <hashTree>
  110. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
  111. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  112. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  113. <collectionProp name="Arguments.arguments">
  114. <elementProp name="" elementType="HTTPArgument">
  115. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  116. <stringProp name="Argument.value">{&#xd;
  117. &quot;sql&quot; : &quot;create stream demo () WITH (FORMAT=\&quot;JSON\&quot;, TYPE=\&quot;edgex\&quot; Conf_key=\&quot;share_conf\&quot;)&quot;&#xd;
  118. }</stringProp>
  119. <stringProp name="Argument.metadata">=</stringProp>
  120. </elementProp>
  121. </collectionProp>
  122. </elementProp>
  123. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  124. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  125. <stringProp name="HTTPSampler.protocol"></stringProp>
  126. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  127. <stringProp name="HTTPSampler.path">/streams</stringProp>
  128. <stringProp name="HTTPSampler.method">POST</stringProp>
  129. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  130. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  131. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  132. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  133. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  134. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  135. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  136. </HTTPSamplerProxy>
  137. <hashTree>
  138. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  139. <collectionProp name="Asserion.test_strings">
  140. <stringProp name="-1754954177">Stream demo is created.</stringProp>
  141. </collectionProp>
  142. <stringProp name="Assertion.custom_message"></stringProp>
  143. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  144. <boolProp name="Assertion.assume_success">true</boolProp>
  145. <intProp name="Assertion.test_type">16</intProp>
  146. </ResponseAssertion>
  147. <hashTree/>
  148. </hashTree>
  149. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
  150. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  151. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  152. <collectionProp name="Arguments.arguments">
  153. <elementProp name="" elementType="HTTPArgument">
  154. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  155. <stringProp name="Argument.value">{&#xd;
  156. &quot;id&quot;: &quot;rule1&quot;,&#xd;
  157. &quot;sql&quot;: &quot;SELECT Temperature as temperature, Humidity, meta(*) AS edgex_meta FROM demo WHERE Temperature = 72&quot;,&#xd;
  158. &quot;actions&quot;: [&#xd;
  159. {&#xd;
  160. &quot;edgex&quot;: {&#xd;
  161. &quot;connectionSelector&quot;: &quot;edgex.redisMsgBus&quot;,&#xd;
  162. &quot;topic&quot;: &quot;result&quot;,&#xd;
  163. &quot;metadata&quot;: &quot;edgex_meta&quot;,&#xd;
  164. &quot;contentType&quot;: &quot;application/json&quot;,&#xd;
  165. &quot;messageType&quot;: &quot;request&quot;&#xd;
  166. }&#xd;
  167. },&#xd;
  168. {&#xd;
  169. &quot;log&quot;:{}&#xd;
  170. }&#xd;
  171. ]&#xd;
  172. }</stringProp>
  173. <stringProp name="Argument.metadata">=</stringProp>
  174. </elementProp>
  175. </collectionProp>
  176. </elementProp>
  177. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  178. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  179. <stringProp name="HTTPSampler.protocol"></stringProp>
  180. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  181. <stringProp name="HTTPSampler.path">/rules</stringProp>
  182. <stringProp name="HTTPSampler.method">POST</stringProp>
  183. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  184. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  185. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  186. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  187. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  188. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  189. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  190. </HTTPSamplerProxy>
  191. <hashTree>
  192. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  193. <collectionProp name="Asserion.test_strings">
  194. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  195. </collectionProp>
  196. <stringProp name="Assertion.custom_message"></stringProp>
  197. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  198. <boolProp name="Assertion.assume_success">true</boolProp>
  199. <intProp name="Assertion.test_type">16</intProp>
  200. </ResponseAssertion>
  201. <hashTree/>
  202. </hashTree>
  203. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  204. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  205. <collectionProp name="Arguments.arguments"/>
  206. </elementProp>
  207. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  208. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  209. <stringProp name="HTTPSampler.protocol"></stringProp>
  210. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  211. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  212. <stringProp name="HTTPSampler.method">GET</stringProp>
  213. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  214. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  215. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  216. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  217. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  218. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  219. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  220. </HTTPSamplerProxy>
  221. <hashTree>
  222. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  223. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  224. <stringProp name="EXPECTED_VALUE">0</stringProp>
  225. <boolProp name="JSONVALIDATION">true</boolProp>
  226. <boolProp name="EXPECT_NULL">false</boolProp>
  227. <boolProp name="INVERT">false</boolProp>
  228. <boolProp name="ISREGEX">false</boolProp>
  229. </JSONPathAssertion>
  230. <hashTree/>
  231. </hashTree>
  232. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  233. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  234. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  235. <stringProp name="SystemSampler.command">test/edgex/pub</stringProp>
  236. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  237. <collectionProp name="Arguments.arguments"/>
  238. </elementProp>
  239. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  240. <collectionProp name="Arguments.arguments"/>
  241. </elementProp>
  242. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  243. </SystemSampler>
  244. <hashTree/>
  245. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  246. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  247. <collectionProp name="Arguments.arguments"/>
  248. </elementProp>
  249. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  250. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  251. <stringProp name="HTTPSampler.protocol"></stringProp>
  252. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  253. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  254. <stringProp name="HTTPSampler.method">GET</stringProp>
  255. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  256. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  257. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  258. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  259. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  260. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  261. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  262. </HTTPSamplerProxy>
  263. <hashTree>
  264. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  265. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  266. <stringProp name="EXPECTED_VALUE">10</stringProp>
  267. <boolProp name="JSONVALIDATION">true</boolProp>
  268. <boolProp name="EXPECT_NULL">false</boolProp>
  269. <boolProp name="INVERT">false</boolProp>
  270. <boolProp name="ISREGEX">false</boolProp>
  271. </JSONPathAssertion>
  272. <hashTree/>
  273. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  274. <stringProp name="JSON_PATH">$.sink_edgex_0_0_records_in_total</stringProp>
  275. <stringProp name="EXPECTED_VALUE">6</stringProp>
  276. <boolProp name="JSONVALIDATION">true</boolProp>
  277. <boolProp name="EXPECT_NULL">false</boolProp>
  278. <boolProp name="INVERT">false</boolProp>
  279. <boolProp name="ISREGEX">false</boolProp>
  280. </JSONPathAssertion>
  281. <hashTree/>
  282. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  283. <stringProp name="ConstantTimer.delay">5000</stringProp>
  284. </ConstantTimer>
  285. <hashTree/>
  286. </hashTree>
  287. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  288. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  289. <collectionProp name="Arguments.arguments"/>
  290. </elementProp>
  291. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  292. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  293. <stringProp name="HTTPSampler.protocol"></stringProp>
  294. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  295. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  296. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  297. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  298. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  299. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  300. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  301. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  302. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  303. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  304. </HTTPSamplerProxy>
  305. <hashTree>
  306. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  307. <collectionProp name="Asserion.test_strings">
  308. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  309. </collectionProp>
  310. <stringProp name="Assertion.custom_message"></stringProp>
  311. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  312. <boolProp name="Assertion.assume_success">false</boolProp>
  313. <intProp name="Assertion.test_type">16</intProp>
  314. </ResponseAssertion>
  315. <hashTree/>
  316. </hashTree>
  317. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  318. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  319. <collectionProp name="Arguments.arguments"/>
  320. </elementProp>
  321. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  322. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  323. <stringProp name="HTTPSampler.protocol"></stringProp>
  324. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  325. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  326. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  327. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  328. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  329. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  330. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  331. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  332. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  333. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  334. </HTTPSamplerProxy>
  335. <hashTree>
  336. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  337. <collectionProp name="Asserion.test_strings">
  338. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  339. </collectionProp>
  340. <stringProp name="Assertion.custom_message"></stringProp>
  341. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  342. <boolProp name="Assertion.assume_success">false</boolProp>
  343. <intProp name="Assertion.test_type">16</intProp>
  344. </ResponseAssertion>
  345. <hashTree/>
  346. </hashTree>
  347. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  348. <stringProp name="ConstantTimer.delay">500</stringProp>
  349. </ConstantTimer>
  350. <hashTree/>
  351. </hashTree>
  352. </hashTree>
  353. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="true">
  354. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  355. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  356. <boolProp name="LoopController.continue_forever">false</boolProp>
  357. <stringProp name="LoopController.loops">1</stringProp>
  358. </elementProp>
  359. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  360. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  361. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  362. <stringProp name="ThreadGroup.duration"></stringProp>
  363. <stringProp name="ThreadGroup.delay"></stringProp>
  364. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  365. </ThreadGroup>
  366. <hashTree>
  367. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  368. <boolProp name="ResultCollector.error_logging">false</boolProp>
  369. <objProp>
  370. <name>saveConfig</name>
  371. <value class="SampleSaveConfiguration">
  372. <time>true</time>
  373. <latency>true</latency>
  374. <timestamp>true</timestamp>
  375. <success>true</success>
  376. <label>true</label>
  377. <code>true</code>
  378. <message>true</message>
  379. <threadName>true</threadName>
  380. <dataType>true</dataType>
  381. <encoding>false</encoding>
  382. <assertions>true</assertions>
  383. <subresults>true</subresults>
  384. <responseData>false</responseData>
  385. <samplerData>false</samplerData>
  386. <xml>false</xml>
  387. <fieldNames>true</fieldNames>
  388. <responseHeaders>false</responseHeaders>
  389. <requestHeaders>false</requestHeaders>
  390. <responseDataOnError>false</responseDataOnError>
  391. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  392. <assertionsResultsToSave>0</assertionsResultsToSave>
  393. <bytes>true</bytes>
  394. <sentBytes>true</sentBytes>
  395. <threadCounts>true</threadCounts>
  396. <idleTime>true</idleTime>
  397. <connectTime>true</connectTime>
  398. </value>
  399. </objProp>
  400. <stringProp name="filename"></stringProp>
  401. </ResultCollector>
  402. <hashTree/>
  403. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  404. <boolProp name="SystemSampler.checkReturnCode">true</boolProp>
  405. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  406. <stringProp name="SystemSampler.command">test/edgex/sub/sub</stringProp>
  407. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  408. <collectionProp name="Arguments.arguments">
  409. <elementProp name="" elementType="Argument">
  410. <stringProp name="Argument.name"></stringProp>
  411. <stringProp name="Argument.value">redis</stringProp>
  412. <stringProp name="Argument.metadata">=</stringProp>
  413. </elementProp>
  414. <elementProp name="" elementType="Argument">
  415. <stringProp name="Argument.name"></stringProp>
  416. <stringProp name="Argument.value">${redis_srv}</stringProp>
  417. <stringProp name="Argument.metadata">=</stringProp>
  418. </elementProp>
  419. </collectionProp>
  420. </elementProp>
  421. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  422. <collectionProp name="Arguments.arguments"/>
  423. </elementProp>
  424. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  425. </SystemSampler>
  426. <hashTree>
  427. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="device Assertion" enabled="true">
  428. <stringProp name="JSON_PATH">$.event.deviceName</stringProp>
  429. <stringProp name="EXPECTED_VALUE">demo</stringProp>
  430. <boolProp name="JSONVALIDATION">true</boolProp>
  431. <boolProp name="EXPECT_NULL">false</boolProp>
  432. <boolProp name="INVERT">false</boolProp>
  433. <boolProp name="ISREGEX">false</boolProp>
  434. </JSONPathAssertion>
  435. <hashTree/>
  436. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="Humidity value Assertion" enabled="true">
  437. <stringProp name="JSON_PATH">$.event.readings[1].value</stringProp>
  438. <stringProp name="EXPECTED_VALUE">81</stringProp>
  439. <boolProp name="JSONVALIDATION">false</boolProp>
  440. <boolProp name="EXPECT_NULL">false</boolProp>
  441. <boolProp name="INVERT">false</boolProp>
  442. <boolProp name="ISREGEX">false</boolProp>
  443. </JSONPathAssertion>
  444. <hashTree/>
  445. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="temperature value Assertion" enabled="true">
  446. <stringProp name="JSON_PATH">$.event.readings[0].value</stringProp>
  447. <stringProp name="EXPECTED_VALUE">72</stringProp>
  448. <boolProp name="JSONVALIDATION">false</boolProp>
  449. <boolProp name="EXPECT_NULL">false</boolProp>
  450. <boolProp name="INVERT">false</boolProp>
  451. <boolProp name="ISREGEX">false</boolProp>
  452. </JSONPathAssertion>
  453. <hashTree/>
  454. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Humidity name assertion" enabled="true">
  455. <collectionProp name="Asserion.test_strings">
  456. <stringProp name="612671699">Humidity</stringProp>
  457. </collectionProp>
  458. <stringProp name="Assertion.custom_message"></stringProp>
  459. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  460. <boolProp name="Assertion.assume_success">false</boolProp>
  461. <intProp name="Assertion.test_type">2</intProp>
  462. </ResponseAssertion>
  463. <hashTree/>
  464. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="temperature name assertion" enabled="true">
  465. <collectionProp name="Asserion.test_strings">
  466. <stringProp name="321701236">temperature</stringProp>
  467. </collectionProp>
  468. <stringProp name="Assertion.custom_message"></stringProp>
  469. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  470. <boolProp name="Assertion.assume_success">false</boolProp>
  471. <intProp name="Assertion.test_type">2</intProp>
  472. </ResponseAssertion>
  473. <hashTree/>
  474. </hashTree>
  475. </hashTree>
  476. </hashTree>
  477. </hashTree>
  478. </jmeterTestPlan>