edgex_sink_rule.jmx 28 KB

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