data_import_export.jmx 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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;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;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;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. <BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="BeanShell Assertion" enabled="true">
  122. <stringProp name="BeanShellAssertion.query">String responseBody = new String(ResponseData);
  123. log.info(&quot;Response body of full import: &quot; + responseBody);</stringProp>
  124. <stringProp name="BeanShellAssertion.filename"></stringProp>
  125. <stringProp name="BeanShellAssertion.parameters"></stringProp>
  126. <boolProp name="BeanShellAssertion.resetInterpreter">false</boolProp>
  127. </BeanShellAssertion>
  128. <hashTree/>
  129. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  130. <stringProp name="ConstantTimer.delay">500</stringProp>
  131. </ConstantTimer>
  132. <hashTree/>
  133. </hashTree>
  134. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetStreams" enabled="true">
  135. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  136. <collectionProp name="Arguments.arguments"/>
  137. </elementProp>
  138. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  139. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  140. <stringProp name="HTTPSampler.protocol"></stringProp>
  141. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  142. <stringProp name="HTTPSampler.path">/streams</stringProp>
  143. <stringProp name="HTTPSampler.method">GET</stringProp>
  144. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  145. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  146. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  147. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  148. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  149. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  150. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  151. </HTTPSamplerProxy>
  152. <hashTree>
  153. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  154. <collectionProp name="Asserion.test_strings">
  155. <stringProp name="-1543116923">[&quot;demo&quot;]</stringProp>
  156. </collectionProp>
  157. <stringProp name="Assertion.custom_message"></stringProp>
  158. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  159. <boolProp name="Assertion.assume_success">true</boolProp>
  160. <intProp name="Assertion.test_type">16</intProp>
  161. </ResponseAssertion>
  162. <hashTree/>
  163. </hashTree>
  164. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetTables" enabled="true">
  165. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  166. <collectionProp name="Arguments.arguments"/>
  167. </elementProp>
  168. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  169. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  170. <stringProp name="HTTPSampler.protocol"></stringProp>
  171. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  172. <stringProp name="HTTPSampler.path">/tables</stringProp>
  173. <stringProp name="HTTPSampler.method">GET</stringProp>
  174. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  175. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  176. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  177. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  178. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  179. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  180. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  181. </HTTPSamplerProxy>
  182. <hashTree>
  183. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  184. <collectionProp name="Asserion.test_strings">
  185. <stringProp name="-2051054434">[&quot;T110&quot;]</stringProp>
  186. </collectionProp>
  187. <stringProp name="Assertion.custom_message"></stringProp>
  188. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  189. <boolProp name="Assertion.assume_success">true</boolProp>
  190. <intProp name="Assertion.test_type">16</intProp>
  191. </ResponseAssertion>
  192. <hashTree/>
  193. </hashTree>
  194. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GeRule" enabled="true">
  195. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  196. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  197. <collectionProp name="Arguments.arguments">
  198. <elementProp name="" elementType="HTTPArgument">
  199. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  200. <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>
  201. <stringProp name="Argument.metadata">=</stringProp>
  202. </elementProp>
  203. </collectionProp>
  204. </elementProp>
  205. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  206. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  207. <stringProp name="HTTPSampler.protocol"></stringProp>
  208. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  209. <stringProp name="HTTPSampler.path">/rules/rule2</stringProp>
  210. <stringProp name="HTTPSampler.method">GET</stringProp>
  211. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  212. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  213. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  214. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  215. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  216. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  217. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  218. </HTTPSamplerProxy>
  219. <hashTree>
  220. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  221. <collectionProp name="Asserion.test_strings">
  222. <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>
  223. </collectionProp>
  224. <stringProp name="Assertion.custom_message"></stringProp>
  225. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  226. <boolProp name="Assertion.assume_success">true</boolProp>
  227. <intProp name="Assertion.test_type">16</intProp>
  228. </ResponseAssertion>
  229. <hashTree/>
  230. </hashTree>
  231. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_SinkConfig" enabled="true">
  232. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  233. <collectionProp name="Arguments.arguments"/>
  234. </elementProp>
  235. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  236. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  237. <stringProp name="HTTPSampler.protocol"></stringProp>
  238. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  239. <stringProp name="HTTPSampler.path">/metadata/sinks/yaml/mqtt</stringProp>
  240. <stringProp name="HTTPSampler.method">GET</stringProp>
  241. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  242. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  243. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  244. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  245. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  246. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  247. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  248. </HTTPSamplerProxy>
  249. <hashTree>
  250. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  251. <collectionProp name="Asserion.test_strings">
  252. <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;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;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://broker.emqx.io:1883&quot;,&quot;topic&quot;:&quot;result/ruleRevert&quot;}}</stringProp>
  253. </collectionProp>
  254. <stringProp name="Assertion.custom_message"></stringProp>
  255. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  256. <boolProp name="Assertion.assume_success">true</boolProp>
  257. <intProp name="Assertion.test_type">16</intProp>
  258. </ResponseAssertion>
  259. <hashTree/>
  260. </hashTree>
  261. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_full_export" enabled="true">
  262. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  263. <collectionProp name="Arguments.arguments"/>
  264. </elementProp>
  265. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  266. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  267. <stringProp name="HTTPSampler.protocol"></stringProp>
  268. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  269. <stringProp name="HTTPSampler.path">/data/export</stringProp>
  270. <stringProp name="HTTPSampler.method">GET</stringProp>
  271. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  272. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  273. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  274. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  275. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  276. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  277. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  278. </HTTPSamplerProxy>
  279. <hashTree>
  280. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  281. <collectionProp name="Asserion.test_strings">
  282. <stringProp name="-586919642">{&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;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;},&quot;rules&quot;:{&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;,&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;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;,&quot;pyjson&quot;:&quot;{\&quot;default\&quot;:{}}&quot;},&quot;sinkConfig&quot;:{&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;sendSingle\&quot;:true,\&quot;server\&quot;:\&quot;localhost\&quot;,\&quot;topic\&quot;:\&quot;application\&quot;,\&quot;type\&quot;:\&quot;redis\&quot;}}&quot;,&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;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;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>
  283. </collectionProp>
  284. <stringProp name="Assertion.custom_message"></stringProp>
  285. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  286. <boolProp name="Assertion.assume_success">false</boolProp>
  287. <intProp name="Assertion.test_type">16</intProp>
  288. </ResponseAssertion>
  289. <hashTree/>
  290. <BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="BeanShell Assertion" enabled="true">
  291. <stringProp name="BeanShellAssertion.query">String responseBody = new String(ResponseData);
  292. log.info(&quot;Response body of full export: &quot; + responseBody);</stringProp>
  293. <stringProp name="BeanShellAssertion.filename"></stringProp>
  294. <stringProp name="BeanShellAssertion.parameters"></stringProp>
  295. <boolProp name="BeanShellAssertion.resetInterpreter">false</boolProp>
  296. </BeanShellAssertion>
  297. <hashTree/>
  298. </hashTree>
  299. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Clean" enabled="true">
  300. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  301. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  302. <collectionProp name="Arguments.arguments">
  303. <elementProp name="" elementType="HTTPArgument">
  304. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  305. <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>
  306. <stringProp name="Argument.metadata">=</stringProp>
  307. </elementProp>
  308. </collectionProp>
  309. </elementProp>
  310. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  311. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  312. <stringProp name="HTTPSampler.protocol"></stringProp>
  313. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  314. <stringProp name="HTTPSampler.path">/data/import?partial=0&amp;stop=0</stringProp>
  315. <stringProp name="HTTPSampler.method">POST</stringProp>
  316. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  317. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  318. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  319. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  320. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  321. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  322. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  323. </HTTPSamplerProxy>
  324. <hashTree>
  325. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  326. <collectionProp name="Asserion.test_strings">
  327. <stringProp name="49586">200</stringProp>
  328. </collectionProp>
  329. <stringProp name="Assertion.custom_message"></stringProp>
  330. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  331. <boolProp name="Assertion.assume_success">false</boolProp>
  332. <intProp name="Assertion.test_type">16</intProp>
  333. </ResponseAssertion>
  334. <hashTree/>
  335. </hashTree>
  336. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  337. <stringProp name="ConstantTimer.delay">500</stringProp>
  338. </ConstantTimer>
  339. <hashTree/>
  340. </hashTree>
  341. <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="data partial import" enabled="true">
  342. <boolProp name="TransactionController.includeTimers">false</boolProp>
  343. <boolProp name="TransactionController.parent">false</boolProp>
  344. </TransactionController>
  345. <hashTree>
  346. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="data_partial_import" 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">{&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;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;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;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>
  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">/data/import?stop=0&amp;partial=1</stringProp>
  362. <stringProp name="HTTPSampler.method">POST</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="49586">200</stringProp>
  375. </collectionProp>
  376. <stringProp name="Assertion.custom_message"></stringProp>
  377. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  378. <boolProp name="Assertion.assume_success">true</boolProp>
  379. <intProp name="Assertion.test_type">16</intProp>
  380. </ResponseAssertion>
  381. <hashTree/>
  382. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  383. <stringProp name="ConstantTimer.delay">500</stringProp>
  384. </ConstantTimer>
  385. <hashTree/>
  386. </hashTree>
  387. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetStreams" enabled="true">
  388. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  389. <collectionProp name="Arguments.arguments"/>
  390. </elementProp>
  391. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  392. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  393. <stringProp name="HTTPSampler.protocol"></stringProp>
  394. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  395. <stringProp name="HTTPSampler.path">/streams</stringProp>
  396. <stringProp name="HTTPSampler.method">GET</stringProp>
  397. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  398. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  399. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  400. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  401. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  402. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  403. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  404. </HTTPSamplerProxy>
  405. <hashTree>
  406. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  407. <collectionProp name="Asserion.test_strings">
  408. <stringProp name="-1543116923">[&quot;demo&quot;]</stringProp>
  409. </collectionProp>
  410. <stringProp name="Assertion.custom_message"></stringProp>
  411. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  412. <boolProp name="Assertion.assume_success">true</boolProp>
  413. <intProp name="Assertion.test_type">16</intProp>
  414. </ResponseAssertion>
  415. <hashTree/>
  416. </hashTree>
  417. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetTables" enabled="true">
  418. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  419. <collectionProp name="Arguments.arguments"/>
  420. </elementProp>
  421. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  422. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  423. <stringProp name="HTTPSampler.protocol"></stringProp>
  424. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  425. <stringProp name="HTTPSampler.path">/tables</stringProp>
  426. <stringProp name="HTTPSampler.method">GET</stringProp>
  427. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  428. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  429. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  430. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  431. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  432. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  433. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  434. </HTTPSamplerProxy>
  435. <hashTree>
  436. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  437. <collectionProp name="Asserion.test_strings">
  438. <stringProp name="-2051054434">[&quot;T110&quot;]</stringProp>
  439. </collectionProp>
  440. <stringProp name="Assertion.custom_message"></stringProp>
  441. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  442. <boolProp name="Assertion.assume_success">true</boolProp>
  443. <intProp name="Assertion.test_type">16</intProp>
  444. </ResponseAssertion>
  445. <hashTree/>
  446. </hashTree>
  447. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GeRule" enabled="true">
  448. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  449. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  450. <collectionProp name="Arguments.arguments">
  451. <elementProp name="" elementType="HTTPArgument">
  452. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  453. <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>
  454. <stringProp name="Argument.metadata">=</stringProp>
  455. </elementProp>
  456. </collectionProp>
  457. </elementProp>
  458. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  459. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  460. <stringProp name="HTTPSampler.protocol"></stringProp>
  461. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  462. <stringProp name="HTTPSampler.path">/rules/rule2</stringProp>
  463. <stringProp name="HTTPSampler.method">GET</stringProp>
  464. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  465. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  466. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  467. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  468. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  469. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  470. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  471. </HTTPSamplerProxy>
  472. <hashTree>
  473. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  474. <collectionProp name="Asserion.test_strings">
  475. <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>
  476. </collectionProp>
  477. <stringProp name="Assertion.custom_message"></stringProp>
  478. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  479. <boolProp name="Assertion.assume_success">true</boolProp>
  480. <intProp name="Assertion.test_type">16</intProp>
  481. </ResponseAssertion>
  482. <hashTree/>
  483. </hashTree>
  484. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_SinkConfig" enabled="true">
  485. <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  486. <collectionProp name="Arguments.arguments"/>
  487. </elementProp>
  488. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  489. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  490. <stringProp name="HTTPSampler.protocol"></stringProp>
  491. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  492. <stringProp name="HTTPSampler.path">/metadata/sinks/yaml/mqtt</stringProp>
  493. <stringProp name="HTTPSampler.method">GET</stringProp>
  494. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  495. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  496. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  497. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  498. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  499. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  500. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  501. </HTTPSamplerProxy>
  502. <hashTree>
  503. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  504. <collectionProp name="Asserion.test_strings">
  505. <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;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;sendSingle&quot;:true,&quot;server&quot;:&quot;tcp://broker.emqx.io:1883&quot;,&quot;topic&quot;:&quot;result/ruleRevert&quot;}}</stringProp>
  506. </collectionProp>
  507. <stringProp name="Assertion.custom_message"></stringProp>
  508. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  509. <boolProp name="Assertion.assume_success">true</boolProp>
  510. <intProp name="Assertion.test_type">16</intProp>
  511. </ResponseAssertion>
  512. <hashTree/>
  513. </hashTree>
  514. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_partial_export" enabled="true">
  515. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  516. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  517. <collectionProp name="Arguments.arguments">
  518. <elementProp name="" elementType="HTTPArgument">
  519. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  520. <stringProp name="Argument.value">[&quot;rule2&quot;]</stringProp>
  521. <stringProp name="Argument.metadata">=</stringProp>
  522. </elementProp>
  523. </collectionProp>
  524. </elementProp>
  525. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  526. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  527. <stringProp name="HTTPSampler.protocol"></stringProp>
  528. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  529. <stringProp name="HTTPSampler.path">/data/export</stringProp>
  530. <stringProp name="HTTPSampler.method">POST</stringProp>
  531. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  532. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  533. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  534. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  535. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  536. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  537. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  538. </HTTPSamplerProxy>
  539. <hashTree>
  540. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  541. <collectionProp name="Asserion.test_strings">
  542. <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;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>
  543. </collectionProp>
  544. <stringProp name="Assertion.custom_message"></stringProp>
  545. <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
  546. <boolProp name="Assertion.assume_success">false</boolProp>
  547. <intProp name="Assertion.test_type">16</intProp>
  548. </ResponseAssertion>
  549. <hashTree/>
  550. </hashTree>
  551. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Clean" enabled="true">
  552. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  553. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  554. <collectionProp name="Arguments.arguments">
  555. <elementProp name="" elementType="HTTPArgument">
  556. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  557. <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>
  558. <stringProp name="Argument.metadata">=</stringProp>
  559. </elementProp>
  560. </collectionProp>
  561. </elementProp>
  562. <stringProp name="HTTPSampler.domain">${srv}</stringProp>
  563. <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
  564. <stringProp name="HTTPSampler.protocol"></stringProp>
  565. <stringProp name="HTTPSampler.contentEncoding"></stringProp>
  566. <stringProp name="HTTPSampler.path">/data/import?partial=0&amp;stop=0</stringProp>
  567. <stringProp name="HTTPSampler.method">POST</stringProp>
  568. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  569. <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
  570. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  571. <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
  572. <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
  573. <stringProp name="HTTPSampler.connect_timeout"></stringProp>
  574. <stringProp name="HTTPSampler.response_timeout"></stringProp>
  575. </HTTPSamplerProxy>
  576. <hashTree>
  577. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
  578. <collectionProp name="Asserion.test_strings">
  579. <stringProp name="49586">200</stringProp>
  580. </collectionProp>
  581. <stringProp name="Assertion.custom_message"></stringProp>
  582. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  583. <boolProp name="Assertion.assume_success">false</boolProp>
  584. <intProp name="Assertion.test_type">16</intProp>
  585. </ResponseAssertion>
  586. <hashTree/>
  587. </hashTree>
  588. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
  589. <stringProp name="ConstantTimer.delay">500</stringProp>
  590. </ConstantTimer>
  591. <hashTree/>
  592. </hashTree>
  593. </hashTree>
  594. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="false">
  595. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  596. <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
  597. <boolProp name="LoopController.continue_forever">false</boolProp>
  598. <stringProp name="LoopController.loops">1</stringProp>
  599. </elementProp>
  600. <stringProp name="ThreadGroup.num_threads">1</stringProp>
  601. <stringProp name="ThreadGroup.ramp_time">0</stringProp>
  602. <boolProp name="ThreadGroup.scheduler">false</boolProp>
  603. <stringProp name="ThreadGroup.duration"></stringProp>
  604. <stringProp name="ThreadGroup.delay"></stringProp>
  605. <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
  606. </ThreadGroup>
  607. <hashTree>
  608. <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
  609. <boolProp name="ResultCollector.error_logging">false</boolProp>
  610. <objProp>
  611. <name>saveConfig</name>
  612. <value class="SampleSaveConfiguration">
  613. <time>true</time>
  614. <latency>true</latency>
  615. <timestamp>true</timestamp>
  616. <success>true</success>
  617. <label>true</label>
  618. <code>true</code>
  619. <message>true</message>
  620. <threadName>true</threadName>
  621. <dataType>true</dataType>
  622. <encoding>false</encoding>
  623. <assertions>true</assertions>
  624. <subresults>true</subresults>
  625. <responseData>false</responseData>
  626. <samplerData>false</samplerData>
  627. <xml>false</xml>
  628. <fieldNames>true</fieldNames>
  629. <responseHeaders>false</responseHeaders>
  630. <requestHeaders>false</requestHeaders>
  631. <responseDataOnError>false</responseDataOnError>
  632. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  633. <assertionsResultsToSave>0</assertionsResultsToSave>
  634. <bytes>true</bytes>
  635. <sentBytes>true</sentBytes>
  636. <threadCounts>true</threadCounts>
  637. <idleTime>true</idleTime>
  638. <connectTime>true</connectTime>
  639. </value>
  640. </objProp>
  641. <stringProp name="filename"></stringProp>
  642. </ResultCollector>
  643. <hashTree/>
  644. <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="App_Service" enabled="true">
  645. <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
  646. <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
  647. <stringProp name="SystemSampler.command">./server</stringProp>
  648. <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  649. <collectionProp name="Arguments.arguments"/>
  650. </elementProp>
  651. <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
  652. <collectionProp name="Arguments.arguments"/>
  653. </elementProp>
  654. <stringProp name="SystemSampler.directory">${__property(fvt,,)}/test/plugins/service/</stringProp>
  655. </SystemSampler>
  656. <hashTree/>
  657. </hashTree>
  658. </hashTree>
  659. </hashTree>
  660. </jmeterTestPlan>