Author: pmouawad Date: Fri Oct 27 12:52:36 2017 New Revision: 1813528 URL: http://svn.apache.org/viewvc?rev=1813528&view=rev Log: Bug 57760 - View Results Tree : Cookie Header is wrongly shown as empty(no cookies) when viewing a recorder Sample Result Add Integration Tests Bugzilla Id: 57760
Added: jmeter/trunk/bin/testfiles/TestCookieManager.csv jmeter/trunk/bin/testfiles/TestCookieManager.jmx (with props) jmeter/trunk/bin/testfiles/TestCookieManager.xml (with props) Added: jmeter/trunk/bin/testfiles/TestCookieManager.csv URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/TestCookieManager.csv?rev=1813528&view=auto ============================================================================== --- jmeter/trunk/bin/testfiles/TestCookieManager.csv (added) +++ jmeter/trunk/bin/testfiles/TestCookieManager.csv Fri Oct 27 12:52:36 2017 @@ -0,0 +1,11 @@ +label,responseCode,responseMessage,threadName,dataType,success,grpThreads,allThreads,SampleCount,ErrorCount +JSS_startMirror,200,OK,setUp Thread Group 1-1,text,true,1,1,1,0 +HTTP-Request-HC4,200,OK,TG-ManagedCookieHC4 1-1,text,true,1,1,1,0 +HTTPS-Request-HC4,Non HTTP response code: java.net.ConnectException,Non HTTP response message: Connection refused (Connection refused),TG-ManagedCookieHC4 1-1,text,true,1,1,1,0 +HTTP-Request-Java,200,OK,TG-ManagedCookieJava 2-1,text,true,1,1,1,0 +HTTPS-Request-Java,Non HTTP response code: java.net.ConnectException,Non HTTP response message: Connection refused (Connection refused),TG-ManagedCookieJava 2-1,text,true,1,1,1,0 +HTTP-NonManagedCookie-HC4,200,OK,TG-NonManagedCookieHC4 3-1,text,true,1,1,1,0 +HTTPS-NonManagedCookie-HC4,200,OK,TG-NonManagedCookieHC4 3-1,text,true,1,1,1,0 +HTTP-NonManagedCookie-Java,200,OK,TG-NonManagedCookieJava 4-1,text,true,1,1,1,0 +HTTPS-NonManagedCookie-Java,200,OK,TG-NonManagedCookieJava 4-1,text,true,1,1,1,0 +JSS_stopMirror,200,OK,tearDown Thread Group 1-1,text,true,1,1,1,0 Added: jmeter/trunk/bin/testfiles/TestCookieManager.jmx URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/TestCookieManager.jmx?rev=1813528&view=auto ============================================================================== --- jmeter/trunk/bin/testfiles/TestCookieManager.jmx (added) +++ jmeter/trunk/bin/testfiles/TestCookieManager.jmx Fri Oct 27 12:52:36 2017 @@ -0,0 +1,668 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jmeterTestPlan version="1.2" properties="3.4" jmeter="3.4-SNAPSHOT.20171027"> + <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">true</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> + <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"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</stringProp> + <stringProp name="HTTPSampler.protocol"></stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path"></stringProp> + <stringProp name="HTTPSampler.concurrentPool">6</stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </ConfigTestElement> + <hashTree/> + <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp Thread Group" enabled="true"> + <stringProp name="ThreadGroup.on_sample_error">stoptest</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> + <longProp name="ThreadGroup.start_time">1488116764000</longProp> + <longProp name="ThreadGroup.end_time">1488116764000</longProp> + <boolProp name="ThreadGroup.scheduler">false</boolProp> + <stringProp name="ThreadGroup.duration"></stringProp> + <stringProp name="ThreadGroup.delay"></stringProp> + </SetupThreadGroup> + <hashTree> + <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSS_startMirror" enabled="true"> + <stringProp name="cacheKey">877b8f57-5272-402c-bc11-cddbd4e69d71</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import org.apache.jmeter.protocol.http.control.HttpMirrorServer; + +HttpMirrorServer mirrorServer = new HttpMirrorServer(8081, 10, 10); +props.put("MIRROR_SERVER", mirrorServer); + +mirrorServer.start();</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Sampler> + <hashTree/> + </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="TG-ManagedCookieHC4" 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> + </ThreadGroup> + <hashTree> + <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager" enabled="true"> + <collectionProp name="CookieManager.cookies"> + <elementProp name="myCookie" elementType="Cookie" testname="myCookie"> + <stringProp name="Cookie.value">value1</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">false</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + <elementProp name="mySecureCookie" elementType="Cookie" testname="mySecureCookie"> + <stringProp name="Cookie.value">value3</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">true</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + <elementProp name="myCookie2" elementType="Cookie" testname="myCookie2"> + <stringProp name="Cookie.value">value2</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">false</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + </collectionProp> + <boolProp name="CookieManager.clearEachIteration">true</boolProp> + </CookieManager> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP-Request-HC4" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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="955707620">Cookie: myCookie=value1; myCookie2=value2</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/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-230514610">myCookie=value1; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_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="HTTPS-Request-HC4" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8082</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/</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">1000</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="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">true</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="TG-ManagedCookieJava" 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> + </ThreadGroup> + <hashTree> + <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager" enabled="true"> + <collectionProp name="CookieManager.cookies"> + <elementProp name="myCookie" elementType="Cookie" testname="myCookie"> + <stringProp name="Cookie.value">value1</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">false</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + <elementProp name="mySecureCookie" elementType="Cookie" testname="mySecureCookie"> + <stringProp name="Cookie.value">value3</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">true</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + <elementProp name="myCookie2" elementType="Cookie" testname="myCookie2"> + <stringProp name="Cookie.value">value2</stringProp> + <stringProp name="Cookie.domain">localhost</stringProp> + <stringProp name="Cookie.path">/</stringProp> + <boolProp name="Cookie.secure">false</boolProp> + <longProp name="Cookie.expires">0</longProp> + <boolProp name="Cookie.path_specified">true</boolProp> + <boolProp name="Cookie.domain_specified">true</boolProp> + </elementProp> + </collectionProp> + <boolProp name="CookieManager.clearEachIteration">true</boolProp> + </CookieManager> + <hashTree/> + <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP-RD-SetJava" 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"></stringProp> + <stringProp name="HTTPSampler.port"></stringProp> + <stringProp name="HTTPSampler.protocol"></stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path"></stringProp> + <stringProp name="HTTPSampler.concurrentPool">6</stringProp> + <stringProp name="HTTPSampler.implementation">Java</stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </ConfigTestElement> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP-Request-Java" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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="955707620">Cookie: myCookie=value1; myCookie2=value2</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/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-230514610">myCookie=value1; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_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="HTTPS-Request-Java" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8082</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/</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">1000</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="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">true</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="TG-NonManagedCookieHC4" 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> + </ThreadGroup> + <hashTree> + <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> + <collectionProp name="HeaderManager.headers"> + <elementProp name="Cookie" elementType="Header"> + <stringProp name="Header.name">Cookie</stringProp> + <stringProp name="Header.value">myCookie=value1; myCookie2=value2</stringProp> + </elementProp> + </collectionProp> + </HeaderManager> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP-NonManagedCookie-HC4" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-230514610">myCookie=value1; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</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="955707620">Cookie: myCookie=value1; myCookie2=value2</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> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTPS-NonManagedCookie-HC4" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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> + <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> + <collectionProp name="HeaderManager.headers"> + <elementProp name="Cookie" elementType="Header"> + <stringProp name="Header.name">Cookie</stringProp> + <stringProp name="Header.value">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </elementProp> + </collectionProp> + </HeaderManager> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">true</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="TG-NonManagedCookieJava" 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> + </ThreadGroup> + <hashTree> + <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> + <collectionProp name="HeaderManager.headers"> + <elementProp name="Cookie" elementType="Header"> + <stringProp name="Header.name">Cookie</stringProp> + <stringProp name="Header.value">myCookie=value1; myCookie2=value2</stringProp> + </elementProp> + </collectionProp> + </HeaderManager> + <hashTree/> + <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP-RD-SetJava" 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"></stringProp> + <stringProp name="HTTPSampler.port"></stringProp> + <stringProp name="HTTPSampler.protocol"></stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path"></stringProp> + <stringProp name="HTTPSampler.concurrentPool">6</stringProp> + <stringProp name="HTTPSampler.implementation">Java</stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </ConfigTestElement> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP-NonManagedCookie-Java" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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="955707620">Cookie: myCookie=value1; myCookie2=value2</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/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-230514610">myCookie=value1; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_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="HTTPS-NonManagedCookie-Java" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">localhost</stringProp> + <stringProp name="HTTPSampler.port">8081</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">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> + <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> + <collectionProp name="HeaderManager.headers"> + <elementProp name="Cookie" elementType="Header"> + <stringProp name="Header.name">Cookie</stringProp> + <stringProp name="Header.value">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </elementProp> + </collectionProp> + </HeaderManager> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">true</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Request Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="735194388">Cookie Data:</stringProp> + <stringProp name="-1101339673">myCookie=value1; mySecureCookie=value3; myCookie2=value2</stringProp> + </collectionProp> + <stringProp name="Assertion.test_field">Assertion.request_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">16</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <PostThreadGroup guiclass="PostThreadGroupGui" testclass="PostThreadGroup" testname="tearDown Thread Group" enabled="true"> + <stringProp name="ThreadGroup.on_sample_error">stoptest</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> + <longProp name="ThreadGroup.start_time">1488116768000</longProp> + <longProp name="ThreadGroup.end_time">1488116768000</longProp> + <boolProp name="ThreadGroup.scheduler">false</boolProp> + <stringProp name="ThreadGroup.duration"></stringProp> + <stringProp name="ThreadGroup.delay"></stringProp> + </PostThreadGroup> + <hashTree> + <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSS_stopMirror" enabled="true"> + <stringProp name="scriptLanguage">groovy</stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="cacheKey">6e41dc10-a2fc-4d6b-a7a2-e76a1ceb22c5</stringProp> + <stringProp name="script">import org.apache.jmeter.protocol.http.control.HttpMirrorServer; + +HttpMirrorServer mirrorServer = (HttpMirrorServer) props.get("MIRROR_SERVER"); +mirrorServer.stopServer();</stringProp> + </JSR223Sampler> + <hashTree/> + </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>false</time> + <latency>false</latency> + <timestamp>false</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>false</saveAssertionResultsFailureMessage> + <assertionsResultsToSave>0</assertionsResultsToSave> + <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> + </value> + </objProp> + <stringProp name="filename">TestCookieManager.csv</stringProp> + </ResultCollector> + <hashTree/> + <ResultCollector guiclass="SimpleDataWriter" testclass="ResultCollector" testname="Simple Data Writer" enabled="true"> + <boolProp name="ResultCollector.error_logging">false</boolProp> + <objProp> + <name>saveConfig</name> + <value class="SampleSaveConfiguration"> + <time>false</time> + <latency>false</latency> + <timestamp>false</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>true</xml> + <fieldNames>false</fieldNames> + <responseHeaders>false</responseHeaders> + <requestHeaders>false</requestHeaders> + <responseDataOnError>false</responseDataOnError> + <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> + <assertionsResultsToSave>0</assertionsResultsToSave> + <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> + </value> + </objProp> + <stringProp name="filename">TestCookieManager.xml</stringProp> + </ResultCollector> + <hashTree/> + </hashTree> + <WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="WorkBench" enabled="true"> + <boolProp name="WorkBench.save">true</boolProp> + </WorkBench> + <hashTree> + <HttpMirrorControl guiclass="HttpMirrorControlGui" testclass="HttpMirrorControl" testname="HTTP Mirror Server" enabled="true"> + <stringProp name="HttpMirrorControlGui.port">8081</stringProp> + <stringProp name="HttpMirrorControlGui.maxPoolSize">0</stringProp> + <stringProp name="HttpMirrorControlGui.maxQueueSize">25</stringProp> + </HttpMirrorControl> + <hashTree/> + </hashTree> + </hashTree> +</jmeterTestPlan> Propchange: jmeter/trunk/bin/testfiles/TestCookieManager.jmx ------------------------------------------------------------------------------ svn:eol-style = LF Added: jmeter/trunk/bin/testfiles/TestCookieManager.xml URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/TestCookieManager.xml?rev=1813528&view=auto ============================================================================== --- jmeter/trunk/bin/testfiles/TestCookieManager.xml (added) +++ jmeter/trunk/bin/testfiles/TestCookieManager.xml Fri Oct 27 12:52:36 2017 @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<testResults version="1.2"> +<sample s="true" lb="JSS_startMirror" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text" sc="1" ec="0" ng="1" na="1"/> +<httpSample s="true" lb="HTTP-Request-HC4" rc="200" rm="OK" tn="TG-ManagedCookieHC4 1-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTPS-Request-HC4" rc="Non HTTP response code: java.net.ConnectException" rm="Non HTTP response message: Connection refused (Connection refused)" tn="TG-ManagedCookieHC4 1-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTP-Request-Java" rc="200" rm="OK" tn="TG-ManagedCookieJava 2-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTPS-Request-Java" rc="Non HTTP response code: java.net.ConnectException" rm="Non HTTP response message: Connection refused (Connection refused)" tn="TG-ManagedCookieJava 2-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTP-NonManagedCookie-HC4" rc="200" rm="OK" tn="TG-NonManagedCookieHC4 3-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Request Assertion</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="HTTPS-NonManagedCookie-HC4" rc="200" rm="OK" tn="TG-NonManagedCookieHC4 3-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTP-NonManagedCookie-Java" rc="200" rm="OK" tn="TG-NonManagedCookieJava 4-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<httpSample s="true" lb="HTTPS-NonManagedCookie-Java" rc="200" rm="OK" tn="TG-NonManagedCookieJava 4-1" dt="text" sc="1" ec="0" ng="1" na="1"> + <assertionResult> + <name>Response Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> + <assertionResult> + <name>Request Assertion</name> + <failure>false</failure> + <error>false</error> + </assertionResult> +</httpSample> +<sample s="true" lb="JSS_stopMirror" rc="200" rm="OK" tn="tearDown Thread Group 1-1" dt="text" sc="1" ec="0" ng="1" na="1"/> + +</testResults> Propchange: jmeter/trunk/bin/testfiles/TestCookieManager.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: jmeter/trunk/bin/testfiles/TestCookieManager.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain