|
@@ -0,0 +1,774 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<!--
|
|
|
|
+ ~ Copyright 2021 EMQ Technologies Co., Ltd.
|
|
|
|
+ ~
|
|
|
|
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
+ ~ you may not use this file except in compliance with the License.
|
|
|
|
+ ~ You may obtain a copy of the License at
|
|
|
|
+ ~
|
|
|
|
+ ~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
+ ~
|
|
|
|
+ ~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
+ ~ See the License for the specific language governing permissions and
|
|
|
|
+ ~ limitations under the License.
|
|
|
|
+ -->
|
|
|
|
+
|
|
|
|
+<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
|
|
|
|
+ <hashTree>
|
|
|
|
+ <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
|
|
|
|
+ <stringProp name="TestPlan.comments"></stringProp>
|
|
|
|
+ <boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
|
|
+ <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
|
|
|
|
+ <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
|
|
+ <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="TestPlan.user_define_classpath"></stringProp>
|
|
|
|
+ </TestPlan>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="srv" elementType="Argument">
|
|
|
|
+ <stringProp name="Argument.name">srv</stringProp>
|
|
|
|
+ <stringProp name="Argument.value">127.0.0.1</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <elementProp name="rest_port" elementType="Argument">
|
|
|
|
+ <stringProp name="Argument.name">rest_port</stringProp>
|
|
|
|
+ <stringProp name="Argument.value">9081</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </Arguments>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Rules" enabled="true">
|
|
|
|
+ <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
|
|
+ <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
|
|
|
|
+ <boolProp name="LoopController.continue_forever">false</boolProp>
|
|
|
|
+ <stringProp name="LoopController.loops">1</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="ThreadGroup.num_threads">1</stringProp>
|
|
|
|
+ <stringProp name="ThreadGroup.ramp_time">1</stringProp>
|
|
|
|
+ <boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
|
+ <stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
|
+ <stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
|
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
|
|
+ </ThreadGroup>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
|
|
+ <boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
|
|
+ <objProp>
|
|
|
|
+ <name>saveConfig</name>
|
|
|
|
+ <value class="SampleSaveConfiguration">
|
|
|
|
+ <time>true</time>
|
|
|
|
+ <latency>true</latency>
|
|
|
|
+ <timestamp>true</timestamp>
|
|
|
|
+ <success>true</success>
|
|
|
|
+ <label>true</label>
|
|
|
|
+ <code>true</code>
|
|
|
|
+ <message>true</message>
|
|
|
|
+ <threadName>true</threadName>
|
|
|
|
+ <dataType>true</dataType>
|
|
|
|
+ <encoding>false</encoding>
|
|
|
|
+ <assertions>true</assertions>
|
|
|
|
+ <subresults>true</subresults>
|
|
|
|
+ <responseData>false</responseData>
|
|
|
|
+ <samplerData>false</samplerData>
|
|
|
|
+ <xml>false</xml>
|
|
|
|
+ <fieldNames>true</fieldNames>
|
|
|
|
+ <responseHeaders>false</responseHeaders>
|
|
|
|
+ <requestHeaders>false</requestHeaders>
|
|
|
|
+ <responseDataOnError>false</responseDataOnError>
|
|
|
|
+ <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
|
|
+ <assertionsResultsToSave>0</assertionsResultsToSave>
|
|
|
|
+ <bytes>true</bytes>
|
|
|
|
+ <sentBytes>true</sentBytes>
|
|
|
|
+ <threadCounts>true</threadCounts>
|
|
|
|
+ <idleTime>true</idleTime>
|
|
|
|
+ <connectTime>true</connectTime>
|
|
|
|
+ </value>
|
|
|
|
+ </objProp>
|
|
|
|
+ <stringProp name="filename"></stringProp>
|
|
|
|
+ </ResultCollector>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Go" enabled="true">
|
|
|
|
+ <boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
|
+ <boolProp name="TransactionController.parent">false</boolProp>
|
|
|
|
+ </TransactionController>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "name":"mirror",
|
|
|
|
+ "file":"http://127.0.0.1:9090/plugins/mirror.zip"
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="49587">201</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables/mirror</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="-1073910849">mirror</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "sql" : "CREATE STREAM ext (count bigint) WITH (DATASOURCE=\"ext\", FORMAT=\"JSON\", TYPE=\"random\",CONF_KEY=\"ext\")"
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/streams</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="-1010817923">Stream ext is created.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "id": "ruleExtG",
|
|
|
|
+ "sql": "SELECT * FROM ext",
|
|
|
|
+ "actions": [{
|
|
|
|
+ "file": {
|
|
|
|
+ "path": "cache"
|
|
|
|
+ }
|
|
|
|
+ }]
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="1460104055">Rule ruleExtG was created</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/ruleExtG/status</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">300</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
|
|
|
|
+ <stringProp name="JSONPostProcessor.referenceNames">fileout</stringProp>
|
|
|
|
+ <stringProp name="JSONPostProcessor.jsonPathExprs">$.sink_file_0_0_records_out_total</stringProp>
|
|
|
|
+ <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
|
|
|
|
+ </JSONPostProcessor>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
|
|
|
|
+ <stringProp name="cacheKey">true</stringProp>
|
|
|
|
+ <stringProp name="filename"></stringProp>
|
|
|
|
+ <stringProp name="parameters"></stringProp>
|
|
|
|
+ <stringProp name="script">String jsonString = vars.get("fileout");
|
|
|
|
+int count = jsonString.toInteger()
|
|
|
|
+log.info ("The file out metric " + count);
|
|
|
|
+
|
|
|
|
+if (count<=0)
|
|
|
|
+ {
|
|
|
|
+ AssertionResult.setFailureMessage("The sink output is 0");
|
|
|
|
+ AssertionResult.setFailure(true);
|
|
|
|
+ }</stringProp>
|
|
|
|
+ <stringProp name="scriptLanguage">groovy</stringProp>
|
|
|
|
+ </JSR223Assertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/ruleExtG</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="-95415958">Rule ruleExtG is dropped.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/streams/ext</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="1032017573">Stream ext is dropped.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables/mirror</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="471904668">portable plugin mirror is deleted</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Python" enabled="true">
|
|
|
|
+ <boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
|
+ <boolProp name="TransactionController.parent">false</boolProp>
|
|
|
|
+ </TransactionController>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "name":"pysam",
|
|
|
|
+ "file":"http://127.0.0.1:9090/plugins/pysam.zip"
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="49587">201</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables/pysam</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="107152694">pysam</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "sql" : "CREATE STREAM ext2 () WITH (DATASOURCE=\"ext2\", FORMAT=\"JSON\", TYPE=\"pyjson\")"
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/streams</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="2081963405">Stream ext2 is created.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
|
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
|
+ "id": "ruleExtP",
|
|
|
|
+ "sql": "SELECT * FROM ext2",
|
|
|
|
+ "actions": [{
|
|
|
|
+ "print": {
|
|
|
|
+ }
|
|
|
|
+ }]
|
|
|
|
+}</stringProp>
|
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="-1180523008">Rule ruleExtP was created</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/ruleExtP/status</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
|
|
|
|
+ <stringProp name="JSONPostProcessor.referenceNames">fileout</stringProp>
|
|
|
|
+ <stringProp name="JSONPostProcessor.jsonPathExprs">$.sink_print_0_0_records_out_total</stringProp>
|
|
|
|
+ <stringProp name="JSONPostProcessor.match_numbers"></stringProp>
|
|
|
|
+ </JSONPostProcessor>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true">
|
|
|
|
+ <stringProp name="cacheKey">true</stringProp>
|
|
|
|
+ <stringProp name="filename"></stringProp>
|
|
|
|
+ <stringProp name="parameters"></stringProp>
|
|
|
|
+ <stringProp name="script">String jsonString = vars.get("fileout");
|
|
|
|
+int count = jsonString.toInteger()
|
|
|
|
+log.info ("The file out metric " + count);
|
|
|
|
+
|
|
|
|
+if (count<=0)
|
|
|
|
+ {
|
|
|
|
+ AssertionResult.setFailureMessage("The sink output is 0");
|
|
|
|
+ AssertionResult.setFailure(true);
|
|
|
|
+ }</stringProp>
|
|
|
|
+ <stringProp name="scriptLanguage">groovy</stringProp>
|
|
|
|
+ </JSR223Assertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/ruleExtP</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="1558924275">Rule ruleExtP is dropped.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/streams/ext2</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="-170168395">Stream ext2 is dropped.</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
|
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/portables/pysam</stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
|
+ </HTTPSamplerProxy>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
|
+ <stringProp name="1655874005">portable plugin pysam is deleted</stringProp>
|
|
|
|
+ </collectionProp>
|
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
|
+ </ResponseAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
|
+ </ConstantTimer>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ </hashTree>
|
|
|
|
+ <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Result" enabled="false">
|
|
|
|
+ <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
|
|
+ <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
|
|
|
|
+ <boolProp name="LoopController.continue_forever">false</boolProp>
|
|
|
|
+ <stringProp name="LoopController.loops">1</stringProp>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="ThreadGroup.num_threads">1</stringProp>
|
|
|
|
+ <stringProp name="ThreadGroup.ramp_time">0</stringProp>
|
|
|
|
+ <boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
|
+ <stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
|
+ <stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
|
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
|
|
+ </ThreadGroup>
|
|
|
|
+ <hashTree>
|
|
|
|
+ <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
|
|
+ <boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
|
|
+ <objProp>
|
|
|
|
+ <name>saveConfig</name>
|
|
|
|
+ <value class="SampleSaveConfiguration">
|
|
|
|
+ <time>true</time>
|
|
|
|
+ <latency>true</latency>
|
|
|
|
+ <timestamp>true</timestamp>
|
|
|
|
+ <success>true</success>
|
|
|
|
+ <label>true</label>
|
|
|
|
+ <code>true</code>
|
|
|
|
+ <message>true</message>
|
|
|
|
+ <threadName>true</threadName>
|
|
|
|
+ <dataType>true</dataType>
|
|
|
|
+ <encoding>false</encoding>
|
|
|
|
+ <assertions>true</assertions>
|
|
|
|
+ <subresults>true</subresults>
|
|
|
|
+ <responseData>false</responseData>
|
|
|
|
+ <samplerData>false</samplerData>
|
|
|
|
+ <xml>false</xml>
|
|
|
|
+ <fieldNames>true</fieldNames>
|
|
|
|
+ <responseHeaders>false</responseHeaders>
|
|
|
|
+ <requestHeaders>false</requestHeaders>
|
|
|
|
+ <responseDataOnError>false</responseDataOnError>
|
|
|
|
+ <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
|
|
+ <assertionsResultsToSave>0</assertionsResultsToSave>
|
|
|
|
+ <bytes>true</bytes>
|
|
|
|
+ <sentBytes>true</sentBytes>
|
|
|
|
+ <threadCounts>true</threadCounts>
|
|
|
|
+ <idleTime>true</idleTime>
|
|
|
|
+ <connectTime>true</connectTime>
|
|
|
|
+ </value>
|
|
|
|
+ </objProp>
|
|
|
|
+ <stringProp name="filename"></stringProp>
|
|
|
|
+ </ResultCollector>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ <SystemSampler guiclass="SystemSamplerGui" testclass="SystemSampler" testname="App_Service" enabled="true">
|
|
|
|
+ <boolProp name="SystemSampler.checkReturnCode">false</boolProp>
|
|
|
|
+ <stringProp name="SystemSampler.expectedReturnCode">0</stringProp>
|
|
|
|
+ <stringProp name="SystemSampler.command">./server</stringProp>
|
|
|
|
+ <elementProp name="SystemSampler.arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <elementProp name="SystemSampler.environment" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
|
+ </elementProp>
|
|
|
|
+ <stringProp name="SystemSampler.directory">${__property(fvt,,)}/test/plugins/service/</stringProp>
|
|
|
|
+ </SystemSampler>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
|
|
+ </hashTree>
|
|
|
|
+ </hashTree>
|
|
|
|
+</jmeterTestPlan>
|