edgex_mqtt_sink_rule.jmx 30 KB

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