edgex_array_rule.jmx 28 KB

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