select_edgex_another_bus_rule.jmx 29 KB

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