http_pull_rule.jmx 26 KB

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