edgex_sink_rule.jmx 28 KB

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