edgex_sink_rule.jmx 26 KB

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