Author: fschumacher
Date: Wed Jul 12 18:26:33 2017
New Revision: 1801765
URL: http://svn.apache.org/viewvc?rev=1801765&view=rev
Log:
Don't save size in bytes for the whole message, as it includes the headers. Assert for size
of body instead.
Modified:
jmeter/trunk/bin/testfiles/SlowCharsFeature.jmx
jmeter/trunk/bin/testfiles/SlowCharsFeature_HttpClient4.xml
jmeter/trunk/bin/testfiles/SlowCharsFeature_Java.xml
Modified: jmeter/trunk/bin/testfiles/SlowCharsFeature.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/SlowCharsFeature.jmx?rev=1801765&r1=1801764&r2=1801765&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/SlowCharsFeature.jmx (original)
+++ jmeter/trunk/bin/testfiles/SlowCharsFeature.jmx Wed Jul 12 18:26:33 2017
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2-SNAPSHOT.20170227">
+<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.3-SNAPSHOT.20170705">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
@@ -161,6 +161,12 @@ SampleResult.setBytes(0);</stringProp>
<stringProp name="scriptLanguage">groovy</stringProp>
</JSR223Assertion>
<hashTree/>
+ <SizeAssertion guiclass="SizeAssertionGui" testclass="SizeAssertion" testname="RA_Size"
enabled="true">
+ <stringProp name="Assertion.test_field">SizeAssertion.response_data</stringProp>
+ <stringProp name="SizeAssertion.size">7001</stringProp>
+ <intProp name="SizeAssertion.operator">1</intProp>
+ </SizeAssertion>
+ <hashTree/>
</hashTree>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector"
testname="View Results Tree" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
@@ -219,7 +225,6 @@ SampleResult.setBytes(0);</stringProp>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
</value>
</objProp>
<stringProp name="filename">SlowCharsFeature_${__property(jmeter.httpsampler,,HttpClient4)}.xml</stringProp>
Modified: jmeter/trunk/bin/testfiles/SlowCharsFeature_HttpClient4.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/SlowCharsFeature_HttpClient4.xml?rev=1801765&r1=1801764&r2=1801765&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/SlowCharsFeature_HttpClient4.xml (original)
+++ jmeter/trunk/bin/testfiles/SlowCharsFeature_HttpClient4.xml Wed Jul 12 18:26:33 2017
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
-<sample s="true" lb="JSR223 Sampler" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text"
by="0"/>
-<httpSample s="true" lb="ApacheJMeter-HP-NonSecure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text" by="7360">
+<sample s="true" lb="JSR223 Sampler" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text"/>
+<httpSample s="true" lb="ApacheJMeter-HP-NonSecure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text">
<assertionResult>
<name>RA_206</name>
<failure>false</failure>
@@ -22,8 +22,13 @@
<failure>false</failure>
<error>false</error>
</assertionResult>
+ <assertionResult>
+ <name>RA_Size</name>
+ <failure>false</failure>
+ <error>false</error>
+ </assertionResult>
</httpSample>
-<httpSample s="true" lb="ApacheJMeter-HP-Secure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text" by="7360">
+<httpSample s="true" lb="ApacheJMeter-HP-Secure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text">
<assertionResult>
<name>RA_206</name>
<failure>false</failure>
@@ -44,6 +49,11 @@
<failure>false</failure>
<error>false</error>
</assertionResult>
+ <assertionResult>
+ <name>RA_Size</name>
+ <failure>false</failure>
+ <error>false</error>
+ </assertionResult>
</httpSample>
</testResults>
Modified: jmeter/trunk/bin/testfiles/SlowCharsFeature_Java.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/SlowCharsFeature_Java.xml?rev=1801765&r1=1801764&r2=1801765&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/SlowCharsFeature_Java.xml (original)
+++ jmeter/trunk/bin/testfiles/SlowCharsFeature_Java.xml Wed Jul 12 18:26:33 2017
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
-<sample s="true" lb="JSR223 Sampler" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text"
by="0"/>
-<httpSample s="true" lb="ApacheJMeter-HP-Secure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text" by="7360">
+<sample s="true" lb="JSR223 Sampler" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text"/>
+<httpSample s="true" lb="ApacheJMeter-HP-Secure" rc="206" rm="Partial Content" tn="Thread
Group 1-1" dt="text">
<assertionResult>
<name>RA_206</name>
<failure>false</failure>
@@ -22,6 +22,11 @@
<failure>false</failure>
<error>false</error>
</assertionResult>
+ <assertionResult>
+ <name>RA_Size</name>
+ <failure>false</failure>
+ <error>false</error>
+ </assertionResult>
</httpSample>
</testResults>
|