|
@@ -253,6 +253,105 @@ Small
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
</hashTree>
|
|
|
+ <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Post small file (rfc1341)" enabled="true"/>
|
|
|
+ <hashTree>
|
|
|
+ <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
|
|
|
+ <collectionProp name="HeaderManager.headers">
|
|
|
+ <elementProp name="" elementType="Header">
|
|
|
+ <stringProp name="Header.name">Content-Type</stringProp>
|
|
|
+ <stringProp name="Header.value">multipart/form-data; boundary="------------------------e6d533842bd07008"; type=Text/HTML</stringProp>
|
|
|
+ </elementProp>
|
|
|
+ </collectionProp>
|
|
|
+ </HeaderManager>
|
|
|
+ <hashTree/>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Post small file - test rfc1341 content type " 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">--------------------------e6d533842bd07008
|
|
|
+Content-Disposition: form-data; name="upload"; filename="UploadFileSmall.txt"
|
|
|
+Content-Type: text/plain
|
|
|
+
|
|
|
+Small
|
|
|
+
|
|
|
+--------------------------e6d533842bd07008--</stringProp>
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
+ </elementProp>
|
|
|
+ </collectionProp>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">false</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">$.files[0].size</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">7</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.files[0].sha1</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">d9ce7590765717c47c737add2ac11e0665eabbea</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.files[0].contentType</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">text/plain</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.files[0].fieldname</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">upload</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.files[0].filename</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">UploadFileSmall.txt</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.content.raw</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE"></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>
|
|
|
+ </hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Post UploadFile1.txt" enabled="true">
|
|
|
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
|
|
|
<collectionProp name="HTTPFileArgs.files">
|