|
@@ -108,6 +108,80 @@
|
|
<stringProp name="mqtt.reconn_attampt_max">0</stringProp>
|
|
<stringProp name="mqtt.reconn_attampt_max">0</stringProp>
|
|
</net.xmeter.samplers.ConnectSampler>
|
|
</net.xmeter.samplers.ConnectSampler>
|
|
<hashTree/>
|
|
<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":"image",
|
|
|
|
+ "file":"http://127.0.0.1:9090/plugins/image.zip",
|
|
|
|
+ "functions":["resize","thumbnail"]
|
|
|
|
+ }</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/functions</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_GetFunc" 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/udfs/resize</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>
|
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
|
+ <stringProp name="JSON_PATH">$.plugin</stringProp>
|
|
|
|
+ <stringProp name="EXPECTED_VALUE">image</stringProp>
|
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
|
+ </JSONPathAssertion>
|
|
|
|
+ <hashTree/>
|
|
|
|
+ </hashTree>
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|