data_import_export.jmx 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
  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. </collectionProp>
  28. </Arguments>
  29. <hashTree/>
  30. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
  31. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  32. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  33. <boolProp name="LoopController.continue_forever">false</boolProp>
  34. <stringProp name="LoopController.loops">1</stringProp>
  35. </elementProp>
  36. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  37. <stringProp name="ThreadGroup.ramp_time">1</stringProp>
  38. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  39. <stringProp name="ThreadGroup.duration"></stringProp>
  40. <stringProp name="ThreadGroup.delay"></stringProp>
  41. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  42. </ThreadGroup>
  43. <hashTree>
  44. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  45. <boolProp name="ResultCollector.error_logging">false</boolProp>
  46. <objProp>
  47. <name>saveConfig</name>
  48. <value class="SampleSaveConfiguration">
  49. <time>true</time>
  50. <latency>true</latency>
  51. <timestamp>true</timestamp>
  52. <success>true</success>
  53. <label>true</label>
  54. <code>true</code>
  55. <message>true</message>
  56. <threadName>true</threadName>
  57. <dataType>true</dataType>
  58. <encoding>false</encoding>
  59. <assertions>true</assertions>
  60. <subresults>true</subresults>
  61. <responseData>false</responseData>
  62. <samplerData>false</samplerData>
  63. <xml>false</xml>
  64. <fieldNames>true</fieldNames>
  65. <responseHeaders>false</responseHeaders>
  66. <requestHeaders>false</requestHeaders>
  67. <responseDataOnError>false</responseDataOnError>
  68. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  69. <assertionsResultsToSave>0</assertionsResultsToSave>
  70. <bytes>true</bytes>
  71. <sentBytes>true</sentBytes>
  72. <threadCounts>true</threadCounts>
  73. <idleTime>true</idleTime>
  74. <connectTime>true</connectTime>
  75. </value>
  76. </objProp>
  77. <stringProp name="filename"></stringProp>
  78. </ResultCollector>
  79. <hashTree/>
  80. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="data full import" enabled="true">
  81. <boolProp name="TransactionController.includeTimers">false</boolProp>
  82. <boolProp name="TransactionController.parent">false</boolProp>
  83. </TransactionController>
  84. <hashTree>
  85. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="data_full_import" enabled="true">
  86. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  87. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  88. <collectionProp name="Arguments.arguments">
  89. <elementProp name="" elementType="HTTPArgument">
  90. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  91. <stringProp name="Argument.value">{&quot;content&quot;:&quot;{\n \&quot;streams\&quot;: {\n \&quot;demo\&quot;: \&quot;CREATE STREAM demo () WITH (DATASOURCE=\\\&quot;users\\\&quot;, CONF_KEY=\\\&quot;td\\\&quot;, FORMAT=\\\&quot;JSON\\\&quot;)\&quot;\n },\n \&quot;tables\&quot;: {\n \&quot;T110\&quot;:\&quot;\\n CREATE TABLE T110\\n (\\n S1 string\\n )\\n WITH (DATASOURCE=\\\&quot;test.json\\\&quot;, FORMAT=\\\&quot;json\\\&quot;, TYPE=\\\&quot;file\\\&quot;, KIND=\\\&quot;scan\\\&quot;, );\\n \&quot;\n },\n \&quot;rules\&quot;: {\n \&quot;rule1\&quot;: \&quot;{\\\&quot;id\\\&quot;: \\\&quot;rule1\\\&quot;,\\\&quot;sql\\\&quot;: \\\&quot;SELECT * FROM demo\\\&quot;,\\\&quot;actions\\\&quot;: [{\\\&quot;log\\\&quot;: {}}]}\&quot;,\n \&quot;rule2\&quot;: \&quot;{\\\&quot;id\\\&quot;: \\\&quot;rule2\\\&quot;,\\\&quot;sql\\\&quot;: \\\&quot;SELECT revert(name) FROM demo\\\&quot;,\\\&quot;actions\\\&quot;: [{\\\&quot;mqtt\\\&quot;:{\\\&quot;sendSingle\\\&quot;:true,\\\&quot;resourceId\\\&quot;:\\\&quot;remote\\\&quot;,\\\&quot;server\\\&quot;:\\\&quot;tcp://emqx:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;demo1When_result\\\&quot;}}]}\&quot;\n },\n \&quot;nativePlugins\&quot;:{\n },\n \&quot;portablePlugins\&quot;:{\n \&quot;pysam\&quot;:\&quot;{\\\&quot;name\\\&quot;:\\\&quot;pysam\\\&quot;,\\\&quot;file\\\&quot;:\\\&quot;http://127.0.0.1:9090/plugins/pysam.zip\\\&quot;,\\\&quot;shellParas\\\&quot;:[]}\&quot;\n },\n \&quot;sourceConfig\&quot;:{\n \&quot;mqtt\&quot;:\&quot;{\\\&quot;td\\\&quot;:{\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;password\\\&quot;:\\\&quot;public\\\&quot;,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:1,\\\&quot;server\\\&quot;:\\\&quot;tcp://broker.emqx.io:1883\\\&quot;,\\\&quot;username\\\&quot;:\\\&quot;admin\\\&quot;},\\\&quot;test\\\&quot;:{\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;password\\\&quot;:\\\&quot;public\\\&quot;,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:1,\\\&quot;server\\\&quot;:\\\&quot;tcp://127.0.0.1:1883\\\&quot;,\\\&quot;username\\\&quot;:\\\&quot;admin\\\&quot;}}\&quot;\n },\n \&quot;sinkConfig\&quot;:{\n \&quot;edgex\&quot;:\&quot;{\\\&quot;test\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;contentType\\\&quot;:\\\&quot;application/json\\\&quot;,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;messageType\\\&quot;:\\\&quot;event\\\&quot;,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;port\\\&quot;:6379,\\\&quot;protocol\\\&quot;:\\\&quot;redis\\\&quot;,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;localhost\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;application\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;redis\\\&quot;}}\&quot;,\n \&quot;mqtt\&quot;:\&quot;{\\\&quot;local\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:0,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;tcp://122.9.166.75:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;demo_out\\\&quot;},\\\&quot;remote\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:0,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;tcp://broker.emqx.io:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;result/ruleRevert\\\&quot;}}\&quot;\n },\n \&quot;connectionConfig\&quot;:{\n },\n \&quot;Service\&quot;:{\n },\n \&quot;Schema\&quot;:{\n }\n}&quot;}</stringProp>
  92. <stringProp name="Argument.metadata">=</stringProp>
  93. </elementProp>
  94. </collectionProp>
  95. </elementProp>
  96. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  97. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  98. <stringProp name="HTTPSampler.protocol"></stringProp>
  99. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  100. <stringProp name="HTTPSampler.path">/data/import?stop=0</stringProp>
  101. <stringProp name="HTTPSampler.method">POST</stringProp>
  102. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  103. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  104. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  105. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  106. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  107. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  108. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  109. </HTTPSamplerProxy>
  110. <hashTree>
  111. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  112. <collectionProp name="Asserion.test_strings">
  113. <stringProp name="49586">200</stringProp>
  114. </collectionProp>
  115. <stringProp name="Assertion.custom_message"></stringProp>
  116. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  117. <boolProp name="Assertion.assume_success">true</boolProp>
  118. <intProp name="Assertion.test_type">16</intProp>
  119. </ResponseAssertion>
  120. <hashTree/>
  121. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  122. <stringProp name="ConstantTimer.delay">500</stringProp>
  123. </ConstantTimer>
  124. <hashTree/>
  125. </hashTree>
  126. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetStreams" enabled="true">
  127. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  128. <collectionProp name="Arguments.arguments"/>
  129. </elementProp>
  130. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  131. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  132. <stringProp name="HTTPSampler.protocol"></stringProp>
  133. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  134. <stringProp name="HTTPSampler.path">/streams</stringProp>
  135. <stringProp name="HTTPSampler.method">GET</stringProp>
  136. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  137. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  138. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  139. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  140. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  141. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  142. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  143. </HTTPSamplerProxy>
  144. <hashTree>
  145. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  146. <collectionProp name="Asserion.test_strings">
  147. <stringProp name="-1543116923">[&quot;demo&quot;]</stringProp>
  148. </collectionProp>
  149. <stringProp name="Assertion.custom_message"></stringProp>
  150. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  151. <boolProp name="Assertion.assume_success">true</boolProp>
  152. <intProp name="Assertion.test_type">16</intProp>
  153. </ResponseAssertion>
  154. <hashTree/>
  155. </hashTree>
  156. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetTables" enabled="true">
  157. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  158. <collectionProp name="Arguments.arguments"/>
  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">/tables</stringProp>
  165. <stringProp name="HTTPSampler.method">GET</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="-2051054434">[&quot;T110&quot;]</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_GeRule" 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">{&quot;id&quot;: &quot;rule2&quot;,&quot;sql&quot;: &quot;SELECT revert(name) FROM demo&quot;,&quot;actions&quot;: [{&quot;mqtt&quot;:{&quot;sendSingle&quot;:true,&quot;resourceId&quot;:&quot;remote&quot;,&quot;server&quot;:&quot;tcp://emqx:1883&quot;,&quot;topic&quot;:&quot;demo1When_result&quot;}}]}</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/rule2</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. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  213. <collectionProp name="Asserion.test_strings">
  214. <stringProp name="-739690316">{&quot;id&quot;: &quot;rule2&quot;,&quot;sql&quot;: &quot;SELECT revert(name) FROM demo&quot;,&quot;actions&quot;: [{&quot;mqtt&quot;:{&quot;sendSingle&quot;:true,&quot;resourceId&quot;:&quot;remote&quot;,&quot;server&quot;:&quot;tcp://emqx:1883&quot;,&quot;topic&quot;:&quot;demo1When_result&quot;}}]}</stringProp>
  215. </collectionProp>
  216. <stringProp name="Assertion.custom_message"></stringProp>
  217. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  218. <boolProp name="Assertion.assume_success">true</boolProp>
  219. <intProp name="Assertion.test_type">16</intProp>
  220. </ResponseAssertion>
  221. <hashTree/>
  222. </hashTree>
  223. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_SinkConfig" enabled="true">
  224. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  225. <collectionProp name="Arguments.arguments"/>
  226. </elementProp>
  227. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  228. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  229. <stringProp name="HTTPSampler.protocol"></stringProp>
  230. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  231. <stringProp name="HTTPSampler.path">/metadata/sinks/yaml/mqtt</stringProp>
  232. <stringProp name="HTTPSampler.method">GET</stringProp>
  233. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  234. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  235. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  236. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  237. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  238. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  239. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  240. </HTTPSamplerProxy>
  241. <hashTree>
  242. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  243. <collectionProp name="Asserion.test_strings">
  244. <stringProp name="1041721998">{&quot;local&quot;:{&quot;bufferLength&quot;:1024,&quot;enableCache&quot;:false,&quot;format&quot;:&quot;json&quot;,&quot;insecureSkipVerify&quot;:false,&quot;omitIfEmpty&quot;:false,&quot;protocolVersion&quot;:&quot;3.1.1&quot;,&quot;qos&quot;:0,&quot;runAsync&quot;:false,&quot;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://122.9.166.75:1883&quot;,&quot;topic&quot;:&quot;demo_out&quot;},&quot;remote&quot;:{&quot;bufferLength&quot;:1024,&quot;enableCache&quot;:false,&quot;format&quot;:&quot;json&quot;,&quot;insecureSkipVerify&quot;:false,&quot;omitIfEmpty&quot;:false,&quot;protocolVersion&quot;:&quot;3.1.1&quot;,&quot;qos&quot;:0,&quot;runAsync&quot;:false,&quot;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://broker.emqx.io:1883&quot;,&quot;topic&quot;:&quot;result/ruleRevert&quot;}}</stringProp>
  245. </collectionProp>
  246. <stringProp name="Assertion.custom_message"></stringProp>
  247. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  248. <boolProp name="Assertion.assume_success">true</boolProp>
  249. <intProp name="Assertion.test_type">16</intProp>
  250. </ResponseAssertion>
  251. <hashTree/>
  252. </hashTree>
  253. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_full_export" enabled="true">
  254. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  255. <collectionProp name="Arguments.arguments"/>
  256. </elementProp>
  257. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  258. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  259. <stringProp name="HTTPSampler.protocol"></stringProp>
  260. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  261. <stringProp name="HTTPSampler.path">/data/export</stringProp>
  262. <stringProp name="HTTPSampler.method">GET</stringProp>
  263. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  264. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  265. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  266. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  267. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  268. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  269. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  270. </HTTPSamplerProxy>
  271. <hashTree>
  272. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  273. <collectionProp name="Asserion.test_strings">
  274. <stringProp name="829120172">{&quot;streams&quot;:{&quot;demo&quot;:&quot;CREATE STREAM demo () WITH (DATASOURCE=\&quot;users\&quot;, CONF_KEY=\&quot;td\&quot;, FORMAT=\&quot;JSON\&quot;)&quot;},&quot;tables&quot;:{},&quot;rules&quot;:{&quot;rule2&quot;:&quot;{\&quot;id\&quot;: \&quot;rule2\&quot;,\&quot;sql\&quot;: \&quot;SELECT revert(name) FROM demo\&quot;,\&quot;actions\&quot;: [{\&quot;mqtt\&quot;:{\&quot;sendSingle\&quot;:true,\&quot;resourceId\&quot;:\&quot;remote\&quot;,\&quot;server\&quot;:\&quot;tcp://emqx:1883\&quot;,\&quot;topic\&quot;:\&quot;demo1When_result\&quot;}}]}&quot;},&quot;nativePlugins&quot;:{},&quot;portablePlugins&quot;:{&quot;pysam&quot;:&quot;{\&quot;name\&quot;:\&quot;pysam\&quot;,\&quot;file\&quot;:\&quot;http://127.0.0.1:9090/plugins/pysam.zip\&quot;,\&quot;shellParas\&quot;:[]}&quot;},&quot;sourceConfig&quot;:{},&quot;sinkConfig&quot;:{&quot;mqtt&quot;:&quot;{\&quot;remote\&quot;:{\&quot;bufferLength\&quot;:1024,\&quot;enableCache\&quot;:false,\&quot;format\&quot;:\&quot;json\&quot;,\&quot;insecureSkipVerify\&quot;:false,\&quot;omitIfEmpty\&quot;:false,\&quot;protocolVersion\&quot;:\&quot;3.1.1\&quot;,\&quot;qos\&quot;:0,\&quot;runAsync\&quot;:false,\&quot;sendSingle\&quot;:true,\&quot;server\&quot;:\&quot;tcp://broker.emqx.io:1883\&quot;,\&quot;topic\&quot;:\&quot;result/ruleRevert\&quot;}}&quot;},&quot;connectionConfig&quot;:{},&quot;Service&quot;:{},&quot;Schema&quot;:{}}</stringProp>
  275. </collectionProp>
  276. <stringProp name="Assertion.custom_message"></stringProp>
  277. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  278. <boolProp name="Assertion.assume_success">false</boolProp>
  279. <intProp name="Assertion.test_type">16</intProp>
  280. </ResponseAssertion>
  281. <hashTree/>
  282. </hashTree>
  283. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Clean" enabled="true">
  284. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  285. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  286. <collectionProp name="Arguments.arguments">
  287. <elementProp name="" elementType="HTTPArgument">
  288. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  289. <stringProp name="Argument.value">{&quot;content&quot;: &quot;{\n \&quot;streams\&quot;:{},\n \&quot;tables\&quot;:{},\n \&quot;rules\&quot;:{},\n \&quot;nativePlugins\&quot;:{},\n \&quot;portablePlugins\&quot;:{},\n \&quot;sourceConfig\&quot;:{},\n \&quot;sinkConfig\&quot;:{},\n \&quot;connectionConfig\&quot;:{},\n \&quot;Service\&quot;:{},\n \&quot;Schema\&quot;:{}\n}\n&quot;}</stringProp>
  290. <stringProp name="Argument.metadata">=</stringProp>
  291. </elementProp>
  292. </collectionProp>
  293. </elementProp>
  294. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  295. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  296. <stringProp name="HTTPSampler.protocol"></stringProp>
  297. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  298. <stringProp name="HTTPSampler.path">/data/import?partial=0&amp;stop=0</stringProp>
  299. <stringProp name="HTTPSampler.method">POST</stringProp>
  300. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  301. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  302. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  303. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  304. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  305. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  306. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  307. </HTTPSamplerProxy>
  308. <hashTree>
  309. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  310. <collectionProp name="Asserion.test_strings">
  311. <stringProp name="49586">200</stringProp>
  312. </collectionProp>
  313. <stringProp name="Assertion.custom_message"></stringProp>
  314. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  315. <boolProp name="Assertion.assume_success">false</boolProp>
  316. <intProp name="Assertion.test_type">16</intProp>
  317. </ResponseAssertion>
  318. <hashTree/>
  319. </hashTree>
  320. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  321. <stringProp name="ConstantTimer.delay">500</stringProp>
  322. </ConstantTimer>
  323. <hashTree/>
  324. </hashTree>
  325. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="data partial import" enabled="true">
  326. <boolProp name="TransactionController.includeTimers">false</boolProp>
  327. <boolProp name="TransactionController.parent">false</boolProp>
  328. </TransactionController>
  329. <hashTree>
  330. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="data_partial_import" enabled="true">
  331. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  332. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  333. <collectionProp name="Arguments.arguments">
  334. <elementProp name="" elementType="HTTPArgument">
  335. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  336. <stringProp name="Argument.value">{&quot;content&quot;:&quot;{\n \&quot;streams\&quot;: {\n \&quot;demo\&quot;: \&quot;CREATE STREAM demo () WITH (DATASOURCE=\\\&quot;users\\\&quot;, CONF_KEY=\\\&quot;td\\\&quot;, FORMAT=\\\&quot;JSON\\\&quot;)\&quot;\n },\n \&quot;tables\&quot;: {\n \&quot;T110\&quot;:\&quot;\\n CREATE TABLE T110\\n (\\n S1 string\\n )\\n WITH (DATASOURCE=\\\&quot;test.json\\\&quot;, FORMAT=\\\&quot;json\\\&quot;, TYPE=\\\&quot;file\\\&quot;, KIND=\\\&quot;scan\\\&quot;, );\\n \&quot;\n },\n \&quot;rules\&quot;: {\n \&quot;rule1\&quot;: \&quot;{\\\&quot;id\\\&quot;: \\\&quot;rule1\\\&quot;,\\\&quot;sql\\\&quot;: \\\&quot;SELECT * FROM demo\\\&quot;,\\\&quot;actions\\\&quot;: [{\\\&quot;log\\\&quot;: {}}]}\&quot;,\n \&quot;rule2\&quot;: \&quot;{\\\&quot;id\\\&quot;: \\\&quot;rule2\\\&quot;,\\\&quot;sql\\\&quot;: \\\&quot;SELECT revert(name) FROM demo\\\&quot;,\\\&quot;actions\\\&quot;: [{\\\&quot;mqtt\\\&quot;:{\\\&quot;sendSingle\\\&quot;:true,\\\&quot;resourceId\\\&quot;:\\\&quot;remote\\\&quot;,\\\&quot;server\\\&quot;:\\\&quot;tcp://emqx:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;demo1When_result\\\&quot;}}]}\&quot;\n },\n \&quot;nativePlugins\&quot;:{\n },\n \&quot;portablePlugins\&quot;:{\n \&quot;pysam\&quot;:\&quot;{\\\&quot;name\\\&quot;:\\\&quot;pysam\\\&quot;,\\\&quot;file\\\&quot;:\\\&quot;http://127.0.0.1:9090/plugins/pysam.zip\\\&quot;,\\\&quot;shellParas\\\&quot;:[]}\&quot;\n },\n \&quot;sourceConfig\&quot;:{\n \&quot;mqtt\&quot;:\&quot;{\\\&quot;td\\\&quot;:{\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;password\\\&quot;:\\\&quot;public\\\&quot;,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:1,\\\&quot;server\\\&quot;:\\\&quot;tcp://broker.emqx.io:1883\\\&quot;,\\\&quot;username\\\&quot;:\\\&quot;admin\\\&quot;},\\\&quot;test\\\&quot;:{\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;password\\\&quot;:\\\&quot;public\\\&quot;,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:1,\\\&quot;server\\\&quot;:\\\&quot;tcp://127.0.0.1:1883\\\&quot;,\\\&quot;username\\\&quot;:\\\&quot;admin\\\&quot;}}\&quot;\n },\n \&quot;sinkConfig\&quot;:{\n \&quot;edgex\&quot;:\&quot;{\\\&quot;test\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;contentType\\\&quot;:\\\&quot;application/json\\\&quot;,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;messageType\\\&quot;:\\\&quot;event\\\&quot;,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;port\\\&quot;:6379,\\\&quot;protocol\\\&quot;:\\\&quot;redis\\\&quot;,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;localhost\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;application\\\&quot;,\\\&quot;type\\\&quot;:\\\&quot;redis\\\&quot;}}\&quot;,\n \&quot;mqtt\&quot;:\&quot;{\\\&quot;local\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:0,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;tcp://122.9.166.75:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;demo_out\\\&quot;},\\\&quot;remote\\\&quot;:{\\\&quot;bufferLength\\\&quot;:1024,\\\&quot;enableCache\\\&quot;:false,\\\&quot;format\\\&quot;:\\\&quot;json\\\&quot;,\\\&quot;insecureSkipVerify\\\&quot;:false,\\\&quot;omitIfEmpty\\\&quot;:false,\\\&quot;protocolVersion\\\&quot;:\\\&quot;3.1.1\\\&quot;,\\\&quot;qos\\\&quot;:0,\\\&quot;runAsync\\\&quot;:false,\\\&quot;sendSingle\\\&quot;:true,\\\&quot;server\\\&quot;:\\\&quot;tcp://broker.emqx.io:1883\\\&quot;,\\\&quot;topic\\\&quot;:\\\&quot;result/ruleRevert\\\&quot;}}\&quot;\n },\n \&quot;connectionConfig\&quot;:{\n },\n \&quot;Service\&quot;:{\n },\n \&quot;Schema\&quot;:{\n }\n}&quot;}</stringProp>
  337. <stringProp name="Argument.metadata">=</stringProp>
  338. </elementProp>
  339. </collectionProp>
  340. </elementProp>
  341. <stringProp name="HTTPSampler.domain">122.9.166.75</stringProp>
  342. <stringProp name="HTTPSampler.port">59720</stringProp>
  343. <stringProp name="HTTPSampler.protocol"></stringProp>
  344. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  345. <stringProp name="HTTPSampler.path">/data/import?stop=0&amp;partial=1</stringProp>
  346. <stringProp name="HTTPSampler.method">POST</stringProp>
  347. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  348. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  349. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  350. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  351. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  352. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  353. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  354. </HTTPSamplerProxy>
  355. <hashTree>
  356. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  357. <collectionProp name="Asserion.test_strings">
  358. <stringProp name="49586">200</stringProp>
  359. </collectionProp>
  360. <stringProp name="Assertion.custom_message"></stringProp>
  361. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  362. <boolProp name="Assertion.assume_success">true</boolProp>
  363. <intProp name="Assertion.test_type">16</intProp>
  364. </ResponseAssertion>
  365. <hashTree/>
  366. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  367. <stringProp name="ConstantTimer.delay">500</stringProp>
  368. </ConstantTimer>
  369. <hashTree/>
  370. </hashTree>
  371. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetStreams" enabled="true">
  372. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  373. <collectionProp name="Arguments.arguments"/>
  374. </elementProp>
  375. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  376. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  377. <stringProp name="HTTPSampler.protocol"></stringProp>
  378. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  379. <stringProp name="HTTPSampler.path">/streams</stringProp>
  380. <stringProp name="HTTPSampler.method">GET</stringProp>
  381. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  382. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  383. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  384. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  385. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  386. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  387. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  388. </HTTPSamplerProxy>
  389. <hashTree>
  390. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  391. <collectionProp name="Asserion.test_strings">
  392. <stringProp name="-1543116923">[&quot;demo&quot;]</stringProp>
  393. </collectionProp>
  394. <stringProp name="Assertion.custom_message"></stringProp>
  395. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  396. <boolProp name="Assertion.assume_success">true</boolProp>
  397. <intProp name="Assertion.test_type">16</intProp>
  398. </ResponseAssertion>
  399. <hashTree/>
  400. </hashTree>
  401. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetTables" enabled="true">
  402. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  403. <collectionProp name="Arguments.arguments"/>
  404. </elementProp>
  405. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  406. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  407. <stringProp name="HTTPSampler.protocol"></stringProp>
  408. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  409. <stringProp name="HTTPSampler.path">/tables</stringProp>
  410. <stringProp name="HTTPSampler.method">GET</stringProp>
  411. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  412. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  413. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  414. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  415. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  416. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  417. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  418. </HTTPSamplerProxy>
  419. <hashTree>
  420. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  421. <collectionProp name="Asserion.test_strings">
  422. <stringProp name="-2051054434">[&quot;T110&quot;]</stringProp>
  423. </collectionProp>
  424. <stringProp name="Assertion.custom_message"></stringProp>
  425. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  426. <boolProp name="Assertion.assume_success">true</boolProp>
  427. <intProp name="Assertion.test_type">16</intProp>
  428. </ResponseAssertion>
  429. <hashTree/>
  430. </hashTree>
  431. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GeRule" enabled="true">
  432. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  433. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  434. <collectionProp name="Arguments.arguments">
  435. <elementProp name="" elementType="HTTPArgument">
  436. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  437. <stringProp name="Argument.value">{&quot;id&quot;: &quot;rule2&quot;,&quot;sql&quot;: &quot;SELECT revert(name) FROM demo&quot;,&quot;actions&quot;: [{&quot;mqtt&quot;:{&quot;sendSingle&quot;:true,&quot;resourceId&quot;:&quot;remote&quot;,&quot;server&quot;:&quot;tcp://emqx:1883&quot;,&quot;topic&quot;:&quot;demo1When_result&quot;}}]}</stringProp>
  438. <stringProp name="Argument.metadata">=</stringProp>
  439. </elementProp>
  440. </collectionProp>
  441. </elementProp>
  442. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  443. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  444. <stringProp name="HTTPSampler.protocol"></stringProp>
  445. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  446. <stringProp name="HTTPSampler.path">/rules/rule2</stringProp>
  447. <stringProp name="HTTPSampler.method">GET</stringProp>
  448. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  449. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  450. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  451. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  452. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  453. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  454. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  455. </HTTPSamplerProxy>
  456. <hashTree>
  457. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  458. <collectionProp name="Asserion.test_strings">
  459. <stringProp name="-739690316">{&quot;id&quot;: &quot;rule2&quot;,&quot;sql&quot;: &quot;SELECT revert(name) FROM demo&quot;,&quot;actions&quot;: [{&quot;mqtt&quot;:{&quot;sendSingle&quot;:true,&quot;resourceId&quot;:&quot;remote&quot;,&quot;server&quot;:&quot;tcp://emqx:1883&quot;,&quot;topic&quot;:&quot;demo1When_result&quot;}}]}</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">true</boolProp>
  464. <intProp name="Assertion.test_type">16</intProp>
  465. </ResponseAssertion>
  466. <hashTree/>
  467. </hashTree>
  468. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_SinkConfig" enabled="true">
  469. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  470. <collectionProp name="Arguments.arguments"/>
  471. </elementProp>
  472. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  473. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  474. <stringProp name="HTTPSampler.protocol"></stringProp>
  475. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  476. <stringProp name="HTTPSampler.path">/metadata/sinks/yaml/mqtt</stringProp>
  477. <stringProp name="HTTPSampler.method">GET</stringProp>
  478. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  479. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  480. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  481. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  482. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  483. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  484. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  485. </HTTPSamplerProxy>
  486. <hashTree>
  487. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  488. <collectionProp name="Asserion.test_strings">
  489. <stringProp name="1041721998">{&quot;local&quot;:{&quot;bufferLength&quot;:1024,&quot;enableCache&quot;:false,&quot;format&quot;:&quot;json&quot;,&quot;insecureSkipVerify&quot;:false,&quot;omitIfEmpty&quot;:false,&quot;protocolVersion&quot;:&quot;3.1.1&quot;,&quot;qos&quot;:0,&quot;runAsync&quot;:false,&quot;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://122.9.166.75:1883&quot;,&quot;topic&quot;:&quot;demo_out&quot;},&quot;remote&quot;:{&quot;bufferLength&quot;:1024,&quot;enableCache&quot;:false,&quot;format&quot;:&quot;json&quot;,&quot;insecureSkipVerify&quot;:false,&quot;omitIfEmpty&quot;:false,&quot;protocolVersion&quot;:&quot;3.1.1&quot;,&quot;qos&quot;:0,&quot;runAsync&quot;:false,&quot;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://broker.emqx.io:1883&quot;,&quot;topic&quot;:&quot;result/ruleRevert&quot;}}</stringProp>
  490. </collectionProp>
  491. <stringProp name="Assertion.custom_message"></stringProp>
  492. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  493. <boolProp name="Assertion.assume_success">true</boolProp>
  494. <intProp name="Assertion.test_type">16</intProp>
  495. </ResponseAssertion>
  496. <hashTree/>
  497. </hashTree>
  498. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_partial_export" enabled="true">
  499. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  500. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  501. <collectionProp name="Arguments.arguments">
  502. <elementProp name="" elementType="HTTPArgument">
  503. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  504. <stringProp name="Argument.value">[&quot;rule2&quot;]</stringProp>
  505. <stringProp name="Argument.metadata">=</stringProp>
  506. </elementProp>
  507. </collectionProp>
  508. </elementProp>
  509. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  510. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  511. <stringProp name="HTTPSampler.protocol"></stringProp>
  512. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  513. <stringProp name="HTTPSampler.path">/data/export</stringProp>
  514. <stringProp name="HTTPSampler.method">POST</stringProp>
  515. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  516. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  517. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  518. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  519. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  520. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  521. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  522. </HTTPSamplerProxy>
  523. <hashTree>
  524. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  525. <collectionProp name="Asserion.test_strings">
  526. <stringProp name="829120172">{&quot;streams&quot;:{&quot;demo&quot;:&quot;CREATE STREAM demo () WITH (DATASOURCE=\&quot;users\&quot;, CONF_KEY=\&quot;td\&quot;, FORMAT=\&quot;JSON\&quot;)&quot;},&quot;tables&quot;:{},&quot;rules&quot;:{&quot;rule2&quot;:&quot;{\&quot;id\&quot;: \&quot;rule2\&quot;,\&quot;sql\&quot;: \&quot;SELECT revert(name) FROM demo\&quot;,\&quot;actions\&quot;: [{\&quot;mqtt\&quot;:{\&quot;sendSingle\&quot;:true,\&quot;resourceId\&quot;:\&quot;remote\&quot;,\&quot;server\&quot;:\&quot;tcp://emqx:1883\&quot;,\&quot;topic\&quot;:\&quot;demo1When_result\&quot;}}]}&quot;},&quot;nativePlugins&quot;:{},&quot;portablePlugins&quot;:{&quot;pysam&quot;:&quot;{\&quot;name\&quot;:\&quot;pysam\&quot;,\&quot;file\&quot;:\&quot;http://127.0.0.1:9090/plugins/pysam.zip\&quot;,\&quot;shellParas\&quot;:[]}&quot;},&quot;sourceConfig&quot;:{},&quot;sinkConfig&quot;:{&quot;mqtt&quot;:&quot;{\&quot;remote\&quot;:{\&quot;bufferLength\&quot;:1024,\&quot;enableCache\&quot;:false,\&quot;format\&quot;:\&quot;json\&quot;,\&quot;insecureSkipVerify\&quot;:false,\&quot;omitIfEmpty\&quot;:false,\&quot;protocolVersion\&quot;:\&quot;3.1.1\&quot;,\&quot;qos\&quot;:0,\&quot;runAsync\&quot;:false,\&quot;sendSingle\&quot;:true,\&quot;server\&quot;:\&quot;tcp://broker.emqx.io:1883\&quot;,\&quot;topic\&quot;:\&quot;result/ruleRevert\&quot;}}&quot;},&quot;connectionConfig&quot;:{},&quot;Service&quot;:{},&quot;Schema&quot;:{}}</stringProp>
  527. </collectionProp>
  528. <stringProp name="Assertion.custom_message"></stringProp>
  529. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  530. <boolProp name="Assertion.assume_success">false</boolProp>
  531. <intProp name="Assertion.test_type">16</intProp>
  532. </ResponseAssertion>
  533. <hashTree/>
  534. </hashTree>
  535. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Clean" enabled="true">
  536. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  537. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  538. <collectionProp name="Arguments.arguments">
  539. <elementProp name="" elementType="HTTPArgument">
  540. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  541. <stringProp name="Argument.value">{&quot;content&quot;: &quot;{\n \&quot;streams\&quot;:{},\n \&quot;tables\&quot;:{},\n \&quot;rules\&quot;:{},\n \&quot;nativePlugins\&quot;:{},\n \&quot;portablePlugins\&quot;:{},\n \&quot;sourceConfig\&quot;:{},\n \&quot;sinkConfig\&quot;:{},\n \&quot;connectionConfig\&quot;:{},\n \&quot;Service\&quot;:{},\n \&quot;Schema\&quot;:{}\n}\n&quot;}</stringProp>
  542. <stringProp name="Argument.metadata">=</stringProp>
  543. </elementProp>
  544. </collectionProp>
  545. </elementProp>
  546. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  547. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  548. <stringProp name="HTTPSampler.protocol"></stringProp>
  549. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  550. <stringProp name="HTTPSampler.path">/data/import?partial=0&amp;stop=0</stringProp>
  551. <stringProp name="HTTPSampler.method">POST</stringProp>
  552. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  553. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  554. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  555. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  556. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  557. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  558. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  559. </HTTPSamplerProxy>
  560. <hashTree>
  561. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  562. <collectionProp name="Asserion.test_strings">
  563. <stringProp name="49586">200</stringProp>
  564. </collectionProp>
  565. <stringProp name="Assertion.custom_message"></stringProp>
  566. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  567. <boolProp name="Assertion.assume_success">false</boolProp>
  568. <intProp name="Assertion.test_type">16</intProp>
  569. </ResponseAssertion>
  570. <hashTree/>
  571. </hashTree>
  572. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  573. <stringProp name="ConstantTimer.delay">500</stringProp>
  574. </ConstantTimer>
  575. <hashTree/>
  576. </hashTree>
  577. </hashTree>
  578. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="false">
  579. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  580. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  581. <boolProp name="LoopController.continue_forever">false</boolProp>
  582. <stringProp name="LoopController.loops">1</stringProp>
  583. </elementProp>
  584. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  585. <stringProp name="ThreadGroup.ramp_time">0</stringProp>
  586. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  587. <stringProp name="ThreadGroup.duration"></stringProp>
  588. <stringProp name="ThreadGroup.delay"></stringProp>
  589. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  590. </ThreadGroup>
  591. <hashTree>
  592. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  593. <boolProp name="ResultCollector.error_logging">false</boolProp>
  594. <objProp>
  595. <name>saveConfig</name>
  596. <value class="SampleSaveConfiguration">
  597. <time>true</time>
  598. <latency>true</latency>
  599. <timestamp>true</timestamp>
  600. <success>true</success>
  601. <label>true</label>
  602. <code>true</code>
  603. <message>true</message>
  604. <threadName>true</threadName>
  605. <dataType>true</dataType>
  606. <encoding>false</encoding>
  607. <assertions>true</assertions>
  608. <subresults>true</subresults>
  609. <responseData>false</responseData>
  610. <samplerData>false</samplerData>
  611. <xml>false</xml>
  612. <fieldNames>true</fieldNames>
  613. <responseHeaders>false</responseHeaders>
  614. <requestHeaders>false</requestHeaders>
  615. <responseDataOnError>false</responseDataOnError>
  616. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  617. <assertionsResultsToSave>0</assertionsResultsToSave>
  618. <bytes>true</bytes>
  619. <sentBytes>true</sentBytes>
  620. <threadCounts>true</threadCounts>
  621. <idleTime>true</idleTime>
  622. <connectTime>true</connectTime>
  623. </value>
  624. </objProp>
  625. <stringProp name="filename"></stringProp>
  626. </ResultCollector>
  627. <hashTree/>
  628. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="App_Service" enabled="true">
  629. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  630. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  631. <stringProp name="SystemSampler.command">./server</stringProp>
  632. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  633. <collectionProp name="Arguments.arguments"/>
  634. </elementProp>
  635. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  636. <collectionProp name="Arguments.arguments"/>
  637. </elementProp>
  638. <stringProp name="SystemSampler.directory">${__property(fvt,,)}/test/plugins/service/</stringProp>
  639. </SystemSampler>
  640. <hashTree/>
  641. </hashTree>
  642. </hashTree>
  643. </hashTree>
  644. </jmeterTestPlan>