edgex_redis_share_connection_sink_rule.jmx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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;, TYPE=\&quot;edgex\&quot; Conf_key=\&quot;share_conf\&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 meta(*) AS edgex_meta, temperature, humidity, humidity*2 as h1 FROM demo WHERE temperature = 20&quot;,&#xd;
  143. &quot;actions&quot;: [&#xd;
  144. {&#xd;
  145. &quot;edgex&quot;: {&#xd;
  146. &quot;connectionSelector&quot;: &quot;edgex.redisMsgBus&quot;,&#xd;
  147. &quot;topic&quot;: &quot;result&quot;,&#xd;
  148. &quot;metadata&quot;: &quot;edgex_meta&quot;,&#xd;
  149. &quot;contentType&quot;: &quot;application/json&quot;,&#xd;
  150. &quot;messageType&quot;: &quot;request&quot;&#xd;
  151. }&#xd;
  152. },&#xd;
  153. {&#xd;
  154. &quot;log&quot;:{}&#xd;
  155. }&#xd;
  156. ]&#xd;
  157. }</stringProp>
  158. <stringProp name="Argument.metadata">=</stringProp>
  159. </elementProp>
  160. </collectionProp>
  161. </elementProp>
  162. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  163. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  164. <stringProp name="HTTPSampler.protocol"></stringProp>
  165. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  166. <stringProp name="HTTPSampler.path">/rules</stringProp>
  167. <stringProp name="HTTPSampler.method">POST</stringProp>
  168. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  169. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  170. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  171. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  172. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  173. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  174. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  175. </HTTPSamplerProxy>
  176. <hashTree>
  177. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  178. <collectionProp name="Asserion.test_strings">
  179. <stringProp name="-2022196798">Rule rule1 was created</stringProp>
  180. </collectionProp>
  181. <stringProp name="Assertion.custom_message"></stringProp>
  182. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  183. <boolProp name="Assertion.assume_success">true</boolProp>
  184. <intProp name="Assertion.test_type">16</intProp>
  185. </ResponseAssertion>
  186. <hashTree/>
  187. </hashTree>
  188. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  189. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  190. <collectionProp name="Arguments.arguments"/>
  191. </elementProp>
  192. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  193. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  194. <stringProp name="HTTPSampler.protocol"></stringProp>
  195. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  196. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  197. <stringProp name="HTTPSampler.method">GET</stringProp>
  198. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  199. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  200. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  201. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  202. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  203. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  204. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  205. </HTTPSamplerProxy>
  206. <hashTree>
  207. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  208. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  209. <stringProp name="EXPECTED_VALUE">0</stringProp>
  210. <boolProp name="JSONVALIDATION">true</boolProp>
  211. <boolProp name="EXPECT_NULL">false</boolProp>
  212. <boolProp name="INVERT">false</boolProp>
  213. <boolProp name="ISREGEX">false</boolProp>
  214. </JSONPathAssertion>
  215. <hashTree/>
  216. </hashTree>
  217. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  218. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  219. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  220. <stringProp name="SystemSampler.command">test/edgex/pub</stringProp>
  221. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  222. <collectionProp name="Arguments.arguments">
  223. <elementProp name="" elementType="Argument">
  224. <stringProp name="Argument.name"></stringProp>
  225. <stringProp name="Argument.value">redis</stringProp>
  226. <stringProp name="Argument.metadata">=</stringProp>
  227. </elementProp>
  228. <elementProp name="" elementType="Argument">
  229. <stringProp name="Argument.name"></stringProp>
  230. <stringProp name="Argument.value">${redis_srv}</stringProp>
  231. <stringProp name="Argument.metadata">=</stringProp>
  232. </elementProp>
  233. </collectionProp>
  234. </elementProp>
  235. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  236. <collectionProp name="Arguments.arguments"/>
  237. </elementProp>
  238. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  239. </SystemSampler>
  240. <hashTree/>
  241. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
  242. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  243. <collectionProp name="Arguments.arguments"/>
  244. </elementProp>
  245. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  246. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  247. <stringProp name="HTTPSampler.protocol"></stringProp>
  248. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  249. <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
  250. <stringProp name="HTTPSampler.method">GET</stringProp>
  251. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  252. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  253. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  254. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  255. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  256. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  257. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  258. </HTTPSamplerProxy>
  259. <hashTree>
  260. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
  261. <stringProp name="JSON_PATH">$.source_demo_0_records_in_total</stringProp>
  262. <stringProp name="EXPECTED_VALUE">1</stringProp>
  263. <boolProp name="JSONVALIDATION">true</boolProp>
  264. <boolProp name="EXPECT_NULL">false</boolProp>
  265. <boolProp name="INVERT">false</boolProp>
  266. <boolProp name="ISREGEX">false</boolProp>
  267. </JSONPathAssertion>
  268. <hashTree/>
  269. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="false">
  270. <stringProp name="JSON_PATH">$.sink_edgex_0_0_records_in_total</stringProp>
  271. <stringProp name="EXPECTED_VALUE">6</stringProp>
  272. <boolProp name="JSONVALIDATION">true</boolProp>
  273. <boolProp name="EXPECT_NULL">false</boolProp>
  274. <boolProp name="INVERT">false</boolProp>
  275. <boolProp name="ISREGEX">false</boolProp>
  276. </JSONPathAssertion>
  277. <hashTree/>
  278. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  279. <stringProp name="ConstantTimer.delay">5000</stringProp>
  280. </ConstantTimer>
  281. <hashTree/>
  282. </hashTree>
  283. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
  284. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  285. <collectionProp name="Arguments.arguments"/>
  286. </elementProp>
  287. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  288. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  289. <stringProp name="HTTPSampler.protocol"></stringProp>
  290. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  291. <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
  292. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  293. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  294. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  295. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  296. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  297. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  298. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  299. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  300. </HTTPSamplerProxy>
  301. <hashTree>
  302. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  303. <collectionProp name="Asserion.test_strings">
  304. <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
  305. </collectionProp>
  306. <stringProp name="Assertion.custom_message"></stringProp>
  307. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  308. <boolProp name="Assertion.assume_success">false</boolProp>
  309. <intProp name="Assertion.test_type">16</intProp>
  310. </ResponseAssertion>
  311. <hashTree/>
  312. </hashTree>
  313. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
  314. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  315. <collectionProp name="Arguments.arguments"/>
  316. </elementProp>
  317. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  318. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  319. <stringProp name="HTTPSampler.protocol"></stringProp>
  320. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  321. <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
  322. <stringProp name="HTTPSampler.method">DELETE</stringProp>
  323. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  324. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  325. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  326. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  327. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  328. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  329. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  330. </HTTPSamplerProxy>
  331. <hashTree>
  332. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  333. <collectionProp name="Asserion.test_strings">
  334. <stringProp name="287881319">Stream demo is dropped.</stringProp>
  335. </collectionProp>
  336. <stringProp name="Assertion.custom_message"></stringProp>
  337. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  338. <boolProp name="Assertion.assume_success">false</boolProp>
  339. <intProp name="Assertion.test_type">16</intProp>
  340. </ResponseAssertion>
  341. <hashTree/>
  342. </hashTree>
  343. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  344. <stringProp name="ConstantTimer.delay">500</stringProp>
  345. </ConstantTimer>
  346. <hashTree/>
  347. </hashTree>
  348. </hashTree>
  349. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="true">
  350. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  351. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  352. <boolProp name="LoopController.continue_forever">false</boolProp>
  353. <stringProp name="LoopController.loops">1</stringProp>
  354. </elementProp>
  355. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  356. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  357. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  358. <stringProp name="ThreadGroup.duration"></stringProp>
  359. <stringProp name="ThreadGroup.delay"></stringProp>
  360. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  361. </ThreadGroup>
  362. <hashTree>
  363. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  364. <boolProp name="ResultCollector.error_logging">false</boolProp>
  365. <objProp>
  366. <name>saveConfig</name>
  367. <value class="SampleSaveConfiguration">
  368. <time>true</time>
  369. <latency>true</latency>
  370. <timestamp>true</timestamp>
  371. <success>true</success>
  372. <label>true</label>
  373. <code>true</code>
  374. <message>true</message>
  375. <threadName>true</threadName>
  376. <dataType>true</dataType>
  377. <encoding>false</encoding>
  378. <assertions>true</assertions>
  379. <subresults>true</subresults>
  380. <responseData>false</responseData>
  381. <samplerData>false</samplerData>
  382. <xml>false</xml>
  383. <fieldNames>true</fieldNames>
  384. <responseHeaders>false</responseHeaders>
  385. <requestHeaders>false</requestHeaders>
  386. <responseDataOnError>false</responseDataOnError>
  387. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  388. <assertionsResultsToSave>0</assertionsResultsToSave>
  389. <bytes>true</bytes>
  390. <sentBytes>true</sentBytes>
  391. <threadCounts>true</threadCounts>
  392. <idleTime>true</idleTime>
  393. <connectTime>true</connectTime>
  394. </value>
  395. </objProp>
  396. <stringProp name="filename"></stringProp>
  397. </ResultCollector>
  398. <hashTree/>
  399. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="OS Process Sampler" enabled="true">
  400. <boolProp name="SystemSampler.checkReturnCode">true</boolProp>
  401. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  402. <stringProp name="SystemSampler.command">test/edgex/sub/sub</stringProp>
  403. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  404. <collectionProp name="Arguments.arguments">
  405. <elementProp name="" elementType="Argument">
  406. <stringProp name="Argument.name"></stringProp>
  407. <stringProp name="Argument.value">redis</stringProp>
  408. <stringProp name="Argument.metadata">=</stringProp>
  409. </elementProp>
  410. <elementProp name="" elementType="Argument">
  411. <stringProp name="Argument.name"></stringProp>
  412. <stringProp name="Argument.value">${redis_srv}</stringProp>
  413. <stringProp name="Argument.metadata">=</stringProp>
  414. </elementProp>
  415. </collectionProp>
  416. </elementProp>
  417. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  418. <collectionProp name="Arguments.arguments"/>
  419. </elementProp>
  420. <stringProp name="SystemSampler.directory">${__property(fvt,,)}</stringProp>
  421. </SystemSampler>
  422. <hashTree>
  423. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="device Assertion" enabled="true">
  424. <stringProp name="JSON_PATH">$.event.deviceName</stringProp>
  425. <stringProp name="EXPECTED_VALUE">demo1</stringProp>
  426. <boolProp name="JSONVALIDATION">true</boolProp>
  427. <boolProp name="EXPECT_NULL">false</boolProp>
  428. <boolProp name="INVERT">false</boolProp>
  429. <boolProp name="ISREGEX">false</boolProp>
  430. </JSONPathAssertion>
  431. <hashTree/>
  432. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="reading_0 Assertion" enabled="true">
  433. <stringProp name="JSON_PATH">$.event.readings[0].value</stringProp>
  434. <stringProp name="EXPECTED_VALUE">30</stringProp>
  435. <boolProp name="JSONVALIDATION">false</boolProp>
  436. <boolProp name="EXPECT_NULL">false</boolProp>
  437. <boolProp name="INVERT">false</boolProp>
  438. <boolProp name="ISREGEX">false</boolProp>
  439. </JSONPathAssertion>
  440. <hashTree/>
  441. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="reading_1 Assertion" enabled="true">
  442. <stringProp name="JSON_PATH">$.event.readings[1].value</stringProp>
  443. <stringProp name="EXPECTED_VALUE">20</stringProp>
  444. <boolProp name="JSONVALIDATION">false</boolProp>
  445. <boolProp name="EXPECT_NULL">false</boolProp>
  446. <boolProp name="INVERT">false</boolProp>
  447. <boolProp name="ISREGEX">false</boolProp>
  448. </JSONPathAssertion>
  449. <hashTree/>
  450. <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="reading_2 Assertion" enabled="true">
  451. <stringProp name="JSON_PATH">$.event.readings[2].value</stringProp>
  452. <stringProp name="EXPECTED_VALUE">20</stringProp>
  453. <boolProp name="JSONVALIDATION">false</boolProp>
  454. <boolProp name="EXPECT_NULL">false</boolProp>
  455. <boolProp name="INVERT">false</boolProp>
  456. <boolProp name="ISREGEX">false</boolProp>
  457. </JSONPathAssertion>
  458. <hashTree/>
  459. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="temperature name assertion" enabled="true">
  460. <collectionProp name="Asserion.test_strings">
  461. <stringProp name="321701236">temperature</stringProp>
  462. </collectionProp>
  463. <stringProp name="Assertion.custom_message"></stringProp>
  464. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  465. <boolProp name="Assertion.assume_success">false</boolProp>
  466. <intProp name="Assertion.test_type">2</intProp>
  467. </ResponseAssertion>
  468. <hashTree/>
  469. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="humidity name assertion" enabled="true">
  470. <collectionProp name="Asserion.test_strings">
  471. <stringProp name="548027571">humidity</stringProp>
  472. </collectionProp>
  473. <stringProp name="Assertion.custom_message"></stringProp>
  474. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  475. <boolProp name="Assertion.assume_success">false</boolProp>
  476. <intProp name="Assertion.test_type">2</intProp>
  477. </ResponseAssertion>
  478. <hashTree/>
  479. </hashTree>
  480. </hashTree>
  481. </hashTree>
  482. </hashTree>
  483. </jmeterTestPlan>