Allow using same JMX file for 2 tests

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1784467 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 600825f4f4
This commit is contained in:
Philippe Mouawad 2017-02-26 17:40:32 +00:00
parent c6bb5d66a3
commit 048ae82f7c
6 changed files with 350 additions and 141 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2-SNAPSHOT.20170223">
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2-SNAPSHOT.20170226">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
@ -80,7 +80,7 @@ mirrorServer.start();</stringProp>
<stringProp name="1492901334">GET /test HTTP/1.1</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
@ -141,7 +141,7 @@ mirrorServer.start();</stringProp>
<stringProp name="70454">GET</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="827169597">/test?name=value</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
@ -192,7 +192,7 @@ mirrorServer.start();</stringProp>
<stringProp name="70454">GET</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="-1326526456">/test?name0=value0&amp;name1=value1</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
@ -201,56 +201,63 @@ mirrorServer.start();</stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET_WITH_BODY" 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">Get with body</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">/test</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>
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If_not_java_impl" enabled="true">
<stringProp name="IfController.condition">${__jexl3(&quot;${__P(jmeter.httpsampler,)}&quot; != &quot;Java&quot;,)}</stringProp>
<boolProp name="IfController.evaluateAll">false</boolProp>
<boolProp name="IfController.useExpression">true</boolProp>
</IfController>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="RA_ContentLength" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="224767426">Content-Length: 13</stringProp>
<stringProp name="1012959042">Content-Type: text/plain; charset=ISO-8859-1</stringProp>
<stringProp name="-644619860">Content-Type:</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="1492901334">GET /test HTTP/1.1</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1663251538">Get with body</stringProp>
</collectionProp>
<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/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET_WITH_BODY" 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">Get with body</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">/test</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="RA_ContentLength" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="224767426">Content-Length: 13</stringProp>
<stringProp name="1012959042">Content-Type: text/plain; charset=ISO-8859-1</stringProp>
<stringProp name="-644619860">Content-Type:</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="1492901334">GET /test HTTP/1.1</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="1663251538">Get with body</stringProp>
</collectionProp>
<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>
</hashTree>
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
@ -496,69 +503,76 @@ mirrorServer.start();</stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-GET_WITH_BODY_NoFollowRedirect" 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">Method has body</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">GET</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>
<stringProp name="TestPlan.comments">BUG 60682</stringProp>
</HTTPSamplerProxy>
<IfController guiclass="IfControllerPanel" testclass="IfController" testname="If_not_java_impl" enabled="true">
<stringProp name="IfController.condition">${__jexl3(&quot;${__P(jmeter.httpsampler,)}&quot; != &quot;Java&quot;,)}</stringProp>
<boolProp name="IfController.evaluateAll">false</boolProp>
<boolProp name="IfController.useExpression">true</boolProp>
</IfController>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="Accept-Encoding" elementType="Header">
<stringProp name="Header.name">Accept-Encoding</stringProp>
<stringProp name="Header.value">gzip</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">X-SetHeaders</stringProp>
<stringProp name="Header.value">Location:http://localhost:8081/redirect</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">X-ResponseStatus</stringProp>
<stringProp name="Header.value">302</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="RA_Gzip" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="-1680100360">Accept-Encoding: gzip</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="RA_NoContentLength" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="-88801152">Content-Length:</stringProp>
<stringProp name="-644619860">Content-Type:</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-GET_WITH_BODY_NoFollowRedirect" 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">Method has body</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">GET</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>
<stringProp name="TestPlan.comments">BUG 60682</stringProp>
</HTTPSamplerProxy>
<hashTree>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="Accept-Encoding" elementType="Header">
<stringProp name="Header.name">Accept-Encoding</stringProp>
<stringProp name="Header.value">gzip</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">X-SetHeaders</stringProp>
<stringProp name="Header.value">Location:http://localhost:8081/redirect</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">X-ResponseStatus</stringProp>
<stringProp name="Header.value">302</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="RA_Gzip" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="-1680100360">Accept-Encoding: gzip</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="RA_NoContentLength" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="-88801152">Content-Length:</stringProp>
<stringProp name="-644619860">Content-Type:</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.request_headers</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-FollowRedirect" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
@ -743,7 +757,7 @@ mirrorServer.start();</stringProp>
<stringProp name="-1704395926">Content-Type: application/x-www-form-urlencoded</stringProp>
<stringProp name="224767425">Content-Length: 12</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
@ -751,7 +765,7 @@ mirrorServer.start();</stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_PARAMETERS" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_PARAMETERS_MULTIPART" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="name1" elementType="HTTPArgument">
@ -790,7 +804,7 @@ mirrorServer.start();</stringProp>
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="REE_boundary" enabled="true">
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
<stringProp name="RegexExtractor.refname">boundary</stringProp>
<stringProp name="RegexExtractor.regex">boundary=(.+?);</stringProp>
<stringProp name="RegexExtractor.regex">boundary=(.*)</stringProp>
<stringProp name="RegexExtractor.template">$1$</stringProp>
<stringProp name="RegexExtractor.default">nv_boundary</stringProp>
<stringProp name="RegexExtractor.match_number">1</stringProp>
@ -802,15 +816,14 @@ mirrorServer.start();</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="-1680100360">Accept-Encoding: gzip</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="-1722553038">Content-Type: multipart/form-data; boundary=</stringProp>
<stringProp name="54777371">Content-Disposition: form-data; name=&quot;name1&quot;</stringProp>
<stringProp name="-320868780">Content-Type: text/plain; charset=US-ASCII</stringProp>
<stringProp name="-378849006">Content-Type: text/plain; charset=</stringProp>
<stringProp name="80784828">Content-Transfer-Encoding: 8bit</stringProp>
<stringProp name="-823812896">value1</stringProp>
<stringProp name="-1299776663">boundary=${boundary}</stringProp>
<stringProp name="1378275580">--${boundary}</stringProp>
<stringProp name="1672906652">--${boundary}--</stringProp>
<stringProp name="182753948">${boundary}</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
@ -818,7 +831,7 @@ mirrorServer.start();</stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_PARAMETERS" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_BODY" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
@ -861,7 +874,7 @@ mirrorServer.start();</stringProp>
<stringProp name="-1704395926">Content-Type: application/x-www-form-urlencoded</stringProp>
<stringProp name="224767427">Content-Length: 14</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="897616683">Veni vidi vici</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
@ -870,7 +883,7 @@ mirrorServer.start();</stringProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_PARAMETERS" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HR-POST_WITH_FILE" enabled="true">
<elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
<collectionProp name="HTTPFileArgs.files">
<elementProp name="user.properties" elementType="HTTPFileArg">
@ -910,7 +923,7 @@ mirrorServer.start();</stringProp>
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="REE_boundary" enabled="true">
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
<stringProp name="RegexExtractor.refname">boundary</stringProp>
<stringProp name="RegexExtractor.regex">boundary=(.+?);</stringProp>
<stringProp name="RegexExtractor.regex">boundary=(.*)</stringProp>
<stringProp name="RegexExtractor.template">$1$</stringProp>
<stringProp name="RegexExtractor.default">nv_boundary</stringProp>
<stringProp name="RegexExtractor.match_number">1</stringProp>
@ -922,14 +935,13 @@ mirrorServer.start();</stringProp>
<stringProp name="894172713">Connection: keep-alive</stringProp>
<stringProp name="-1680100360">Accept-Encoding: gzip</stringProp>
<stringProp name="2117109222">Host: localhost:8081</stringProp>
<stringProp name="526885222">User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_121)</stringProp>
<stringProp name="1052466409">User-Agent: </stringProp>
<stringProp name="-1722553038">Content-Type: multipart/form-data; boundary=</stringProp>
<stringProp name="-1500123463">Content-Disposition: form-data; name=&quot;fileName&quot;; filename=&quot;user.properties&quot;</stringProp>
<stringProp name="-1752268452">Content-Type: text/plain</stringProp>
<stringProp name="1533831720">Content-Transfer-Encoding: binary</stringProp>
<stringProp name="-1299776663">boundary=${boundary}</stringProp>
<stringProp name="1378275580">--${boundary}</stringProp>
<stringProp name="1672906652">--${boundary}--</stringProp>
<stringProp name="182753948">${boundary}</stringProp>
</collectionProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
@ -993,7 +1005,7 @@ mirrorServer.stopServer();</stringProp>
<assertionsResultsToSave>0</assertionsResultsToSave>
</value>
</objProp>
<stringProp name="filename">TEST_HTTP.csv</stringProp>
<stringProp name="filename">TEST_HTTP_${__P(jmeter.httpsampler,)}.csv</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="SimpleDataWriter" testclass="ResultCollector" testname="Simple Data Writer" enabled="true">
@ -1024,7 +1036,7 @@ mirrorServer.stopServer();</stringProp>
<assertionsResultsToSave>0</assertionsResultsToSave>
</value>
</objProp>
<stringProp name="filename">TEST_HTTP.xml</stringProp>
<stringProp name="filename">TEST_HTTP_${__P(jmeter.httpsampler,)}.xml</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>

View File

@ -10,7 +10,7 @@ HR-GET_WITH_BODY_NoFollowRedirect,302,TG_TEST_REDIRECT 3-1,text,true
HR-FollowRedirect,Non HTTP response code: java.io.IOException,TG_TEST_REDIRECT 3-1,text,true
HR-FollowRedirect,Non HTTP response code: org.apache.http.client.ClientProtocolException,TG_TEST_REDIRECT 3-1,text,true
HR-POST_WITH_PARAMETERS,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_PARAMETERS,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_PARAMETERS,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_PARAMETERS,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_PARAMETERS_MULTIPART,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_BODY,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_FILE,200,TG_TEST_POST 4-1,text,true
JSS_stopMirror,200,tearDown Thread Group 1-1,text,true
1 JSS_startMirror 200 setUp Thread Group 1-1 text true
10 HR-FollowRedirect Non HTTP response code: java.io.IOException TG_TEST_REDIRECT 3-1 text true
11 HR-FollowRedirect Non HTTP response code: org.apache.http.client.ClientProtocolException TG_TEST_REDIRECT 3-1 text true
12 HR-POST_WITH_PARAMETERS 200 TG_TEST_POST 4-1 text true
13 HR-POST_WITH_PARAMETERS HR-POST_WITH_PARAMETERS_MULTIPART 200 TG_TEST_POST 4-1 text true
14 HR-POST_WITH_PARAMETERS HR-POST_WITH_BODY 200 TG_TEST_POST 4-1 text true
15 HR-POST_WITH_PARAMETERS HR-POST_WITH_FILE 200 TG_TEST_POST 4-1 text true
16 JSS_stopMirror 200 tearDown Thread Group 1-1 text true

View File

@ -160,21 +160,21 @@
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS" rc="200" dt="text">
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS_MULTIPART" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS" rc="200" dt="text">
<httpSample s="true" lb="HR-POST_WITH_BODY" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS" rc="200" dt="text">
<httpSample s="true" lb="HR-POST_WITH_FILE" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>

View File

@ -0,0 +1,14 @@
JSS_startMirror,200,setUp Thread Group 1-1,text,true
GET_NO_PARAMETERS,200,TG_TEST_GET_COMBINATIONS 1-1,text,true
GET_WITH_PARAMETERS_IN_URL,200,TG_TEST_GET_COMBINATIONS 1-1,text,true
GET_WITH_PARAMETERS,200,TG_TEST_GET_COMBINATIONS 1-1,text,true
HR-Gzip,200,TG_TEST_GZIP 2-1,text,true
HR-NoGzip,200,TG_TEST_GZIP 2-1,text,true
HR-NoFollowRedirect,302,TG_TEST_REDIRECT 3-1,text,true
HR-FollowRedirect,Non HTTP response code: java.io.IOException,TG_TEST_REDIRECT 3-1,text,true
HR-FollowRedirect,Non HTTP response code: java.net.ProtocolException,TG_TEST_REDIRECT 3-1,text,true
HR-POST_WITH_PARAMETERS,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_PARAMETERS_MULTIPART,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_BODY,200,TG_TEST_POST 4-1,text,true
HR-POST_WITH_FILE,200,TG_TEST_POST 4-1,text,true
JSS_stopMirror,200,tearDown Thread Group 1-1,text,true
1 JSS_startMirror 200 setUp Thread Group 1-1 text true
2 GET_NO_PARAMETERS 200 TG_TEST_GET_COMBINATIONS 1-1 text true
3 GET_WITH_PARAMETERS_IN_URL 200 TG_TEST_GET_COMBINATIONS 1-1 text true
4 GET_WITH_PARAMETERS 200 TG_TEST_GET_COMBINATIONS 1-1 text true
5 HR-Gzip 200 TG_TEST_GZIP 2-1 text true
6 HR-NoGzip 200 TG_TEST_GZIP 2-1 text true
7 HR-NoFollowRedirect 302 TG_TEST_REDIRECT 3-1 text true
8 HR-FollowRedirect Non HTTP response code: java.io.IOException TG_TEST_REDIRECT 3-1 text true
9 HR-FollowRedirect Non HTTP response code: java.net.ProtocolException TG_TEST_REDIRECT 3-1 text true
10 HR-POST_WITH_PARAMETERS 200 TG_TEST_POST 4-1 text true
11 HR-POST_WITH_PARAMETERS_MULTIPART 200 TG_TEST_POST 4-1 text true
12 HR-POST_WITH_BODY 200 TG_TEST_POST 4-1 text true
13 HR-POST_WITH_FILE 200 TG_TEST_POST 4-1 text true
14 JSS_stopMirror 200 tearDown Thread Group 1-1 text true

View File

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<sample s="true" lb="JSS_startMirror" rc="200" dt="text"/>
<httpSample s="true" lb="GET_NO_PARAMETERS" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="GET_WITH_PARAMETERS_IN_URL" rc="200" dt="text">
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="GET_WITH_PARAMETERS" rc="200" dt="text">
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-Gzip" rc="200" dt="text">
<assertionResult>
<name>RA_Gzip</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-NoGzip" rc="200" dt="text">
<assertionResult>
<name>RA_NoGZIP_IN_RESPONSE</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoGzip_IN_REQUEST</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-NoFollowRedirect" rc="302" dt="text">
<assertionResult>
<name>RA_Gzip</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-FollowRedirect" rc="Non HTTP response code: java.io.IOException" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<assertionResult>
<name>RA_NoContentLength</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
<httpSample s="true" lb="http://localhost:8081/" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="true" lb="http://localhost:8081/redirect" rc="302" dt="text"/>
<httpSample s="false" lb="http://localhost:8081/redirect" rc="Non HTTP response code: java.io.IOException" dt="text"/>
</httpSample>
<httpSample s="true" lb="HR-FollowRedirect" rc="Non HTTP response code: java.net.ProtocolException" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_PARAMETERS_MULTIPART" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_BODY" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<httpSample s="true" lb="HR-POST_WITH_FILE" rc="200" dt="text">
<assertionResult>
<name>Response Assertion</name>
<failure>false</failure>
<error>false</error>
</assertionResult>
</httpSample>
<sample s="true" lb="JSS_stopMirror" rc="200" dt="text"/>
</testResults>

View File

@ -2495,6 +2495,7 @@ run JMeter unless all the JMeter jars are added.
<property name="batchtest.inp" location="${basedir}/bin/testfiles"/>
<property name="batchtest.out" location="${basedir}/bin"/>
<property name="batchtest.name" value="BatchTestLocal"/>
<property name="batchtest.jmx" value="${batchtest.name}.jmx"/>
<!--
Allow variable to be set on the command line
Cannot omit value because that causes a warning message
@ -2505,7 +2506,7 @@ run JMeter unless all the JMeter jars are added.
<!-- Fix the EOL in case the file was derived from the "wrong" archive type -->
<fixcrlf encoding="${encoding}" srcdir="${batchtest.inp}" includes="${batchtest.name}.csv"/>
<echo level="info" message="Starting ${batchtest.name} using ${remote}"/>
<echo level="info" message="Starting ${batchtest.name} with file ${batchtest.jmx} using ${remote}"/>
<macrodef name="deleteworkfiles">
<sequential>
@ -2562,7 +2563,7 @@ run JMeter unless all the JMeter jars are added.
<!-- reset the logging and other parameters -->
<arg value="-qtestfiles/jmeter-batch.properties"/>
<arg value="-n"/>
<arg value="-ttestfiles/${batchtest.name}.jmx"/>
<arg value="-ttestfiles/${batchtest.jmx}"/>
<arg value="-i"/>
<arg value="testfiles/log4j2-batch.xml"/>
<arg value="-j"/>
@ -2638,12 +2639,14 @@ run JMeter unless all the JMeter jars are added.
<target name="batch_scripts">
<antcall target="batchtest">
<param name="batchtest.name" value="HTMLParserTestFile_2"/>
<param name="batchtest.jmx" value="HTMLParserTestFile_2.jmx"/>
</antcall>
<!-- Disable Test which seems wrong -->
<!--
<antcall target="batchtest">
Using the same module controller name in command line mode causes NPE
<param name="batchtest.name" value="Bug47165"/>
<param name="batchtest.jmx" value="Bug47165.jmx"/>
</antcall>
-->
@ -2651,27 +2654,32 @@ run JMeter unless all the JMeter jars are added.
<!-- variable in IPSource failed HTTP request if "Concurrent Pool Size" is enabled -->
<!-- N.B. requires access to jmeter.apache.org -->
<param name="batchtest.name" value="Bug52310"/>
<param name="batchtest.jmx" value="Bug52310.jmx"/>
<param name="skip.batchtest" value="${skip.bug52310}" />
</antcall>
<antcall target="batchtest">
<!-- Option Start Next Loop in Thread Group does not mark parent Transaction Sampler in error when an error occurs -->
<param name="batchtest.name" value="Bug52968"/>
<param name="batchtest.jmx" value="Bug52968.jmx"/>
</antcall>
<antcall target="batchtest">
<!-- IncludeController : NullPointerException loading script in non-GUI mode if Includers use same element name -->
<param name="batchtest.name" value="Bug50898"/>
<param name="batchtest.jmx" value="Bug50898.jmx"/>
</antcall>
<antcall target="batchtest">
<!-- Foreach works incorrectly with indexes on subsequent iterations -->
<param name="batchtest.name" value="Bug56243"/>
<param name="batchtest.jmx" value="Bug56243.jmx"/>
</antcall>
<antcall target="batchtest">
<!-- ArrayIndexOutOfBoundsException if "sample_variable" is set in client but not server -->
<!-- This is unaffected by the bug; it just checks the script works OK in local mode -->
<param name="batchtest.name" value="Bug54685"/>
<param name="batchtest.jmx" value="Bug54685.jmx"/>
<param name="batchtest.variable" value="sample_variables"/>
<param name="batchtest.value" value="REFERENCE,JSESSIONID"/>
</antcall>
@ -2679,51 +2687,64 @@ run JMeter unless all the JMeter jars are added.
<antcall target="batchtest">
<!-- StackOverflowError with ModuleController in Non-GUI mode if its name is the same as the target node -->
<param name="batchtest.name" value="Bug55375"/>
<param name="batchtest.jmx" value="Bug55375.jmx"/>
</antcall>
<antcall target="batchtestserver">
<!-- ArrayIndexOutOfBoundsException if "sample_variable" is set in client but not server -->
<!-- This is the actual test -->
<param name="batchtest.name" value="Bug54685"/>
<param name="batchtest.jmx" value="Bug54685.jmx"/>
<param name="batchtest.variable" value="sample_variables"/>
<param name="batchtest.value" value="REFERENCE,JSESSIONID"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="Bug56811"/>
<param name="batchtest.jmx" value="Bug56811.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="TEST_HTTPS"/>
<param name="batchtest.jmx" value="TEST_HTTPS.jmx"/>
<param name="skip.batchtest" value="${skip.test_https}" />
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="Bug60607"/>
<param name="batchtest.jmx" value="Bug60607.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="SlowCharsFeature"/>
<param name="batchtest.jmx" value="SlowCharsFeature.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="Http4ImplPreemptiveBasicAuth"/>
<param name="batchtest.jmx" value="Http4ImplPreemptiveBasicAuth.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="TestKeepAlive"/>
<param name="batchtest.jmx" value="TestKeepAlive.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="TestHeaderManager"/>
<param name="batchtest.jmx" value="TestHeaderManager.jmx"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="TEST_HTTP"/>
<param name="batchtest.name" value="TEST_HTTP_HttpClient4"/>
<param name="batchtest.jmx" value="TEST_HTTP.jmx"/>
<param name="batchtest.variable" value="jmeter.httpsampler"/>
<param name="batchtest.value" value="HttpClient4"/>
</antcall>
<antcall target="batchtest">
<param name="batchtest.name" value="TEST_HTTP"/>
<param name="batchtest.name" value="TEST_HTTP_Java"/>
<param name="batchtest.jmx" value="TEST_HTTP.jmx"/>
<param name="batchtest.variable" value="jmeter.httpsampler"/>
<param name="batchtest.value" value="Java"/>
</antcall>