Author: sebb
Date: Tue Feb 26 14:54:37 2008
New Revision: 631417
URL: http://svn.apache.org/viewvc?rev=631417&view=rev
Log:
Add application/vnd.wap.xhtml+xml as a text type
Allow View Results Tree maximum display size to be configured
Modified:
jakarta/jmeter/trunk/bin/jmeter.properties
jakarta/jmeter/trunk/docs/changes.html
jakarta/jmeter/trunk/docs/usermanual/component_reference.html
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
jakarta/jmeter/trunk/xdocs/changes.xml
jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
Modified: jakarta/jmeter/trunk/bin/jmeter.properties
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/jmeter.properties?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/bin/jmeter.properties (original)
+++ jakarta/jmeter/trunk/bin/jmeter.properties Tue Feb 26 14:54:37 2008
@@ -608,8 +608,20 @@
# List of additional content types to be treated as text; separate entries
with commas.
# If the content type begins with the same string, then it is treated as text.
+# See SampleResult.TEXT_TYPES
# The following example types are already allowed for:
-#content-type_text=text/,application/javascript,application/json,application/xhtml+xml,application/xml
+# text/
+# application/javascript
+# application/json
+# application/soap+xml
+# application/vnd.wap.xhtml+xml
+# application/xhtml+xml
+# application/xml
+#content-type_text=type1,type2,...
+
+# Maximum size of HTML page that can be displayed; default=200 * 1024
+# Set to 0 to disable the size check
+#view.results.tree.max_size=0
#---------------------------------------------------------------------------
# Classpath configuration
Modified: jakarta/jmeter/trunk/docs/changes.html
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/changes.html?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/changes.html (original)
+++ jakarta/jmeter/trunk/docs/changes.html Tue Feb 26 14:54:37 2008
@@ -332,6 +332,16 @@
</li>
+
<li >
+ Add
application/vnd.wap.xhtml+xml as a text type
+ </li>
+
+
+
<li >
+ Add means to
override maximum display size in View Results Tree - set the property:
view.results.tree.max_size
+ </li>
+
+
</ul>
<h4 >
Non-functional
changes
Modified: jakarta/jmeter/trunk/docs/usermanual/component_reference.html
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/usermanual/component_reference.html?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/usermanual/component_reference.html (original)
+++ jakarta/jmeter/trunk/docs/usermanual/component_reference.html Tue Feb 26
14:54:37 2008
@@ -5773,8 +5773,10 @@
text/
application/javascript
application/json
-application/xhtml+xml
application/soap+xml
+application/vnd.wap.xhtml+xml
+application/xhtml+xml
+application/xml
</pre>
@@ -5785,6 +5787,17 @@
</b>
as a comma-separated list of the content-type prefixes to be matched.
+
+ </p>
+
+
+
<p >
+ If the response
data is larger than 200K, then it won't be displayed.
+To change this limit, set the JMeter property
+
<b >
+
view.results.tree.max_size
+ </b>
+
</p>
Modified:
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
(original)
+++
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Tue Feb 26 14:54:37 2008
@@ -99,7 +99,11 @@
implements ActionListener, TreeSelectionListener, Clearable
{
- private static final Logger log = LoggingManager.getLoggerForClass();
+ private static final Logger log = LoggingManager.getLoggerForClass();
+
+ // Maximum size that we will display
+ private static final int MAX_DISPLAY_SIZE =
+ JMeterUtils.getPropDefault("view.results.tree.max_size", 200 * 1024);
// $NON-NLS-1$
// N.B. these are not multi-threaded, so don't make it static
private final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd
HH:mm:ss z"); // ISO format $NON-NLS-1$
@@ -611,8 +615,8 @@
// if this happens and revert the choice if he doesn't
confirm
// he's ready to wait.
int len = res.getResponseData().length;
- if (len > 200 * 1024) {
- response = "Response too large to be displayed
(" + len + " bytes).";
+ if (MAX_DISPLAY_SIZE > 0 && len > MAX_DISPLAY_SIZE) {
+ response = "Response too large to be displayed.
Size: " + len + " > Max: "+MAX_DISPLAY_SIZE;
log.warn(response);
} else {
response = res.getResponseDataAsString();
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
(original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
Tue Feb 26 14:54:37 2008
@@ -583,8 +583,9 @@
"text/", //$NON-NLS-1$
"application/javascript", //$NON-NLS-1$
"application/json", //$NON-NLS-1$
+ "application/soap+xml", //$NON-NLS-1$
+ "application/vnd.wap.xhtml+xml", //$NON-NLS-1$
"application/xhtml+xml", //$NON-NLS-1$
- "application/soap+xml", //$NON-NLS-1$
"application/xml", //$NON-NLS-1$
};
Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Tue Feb 26 14:54:37 2008
@@ -96,6 +96,8 @@
<li>Add "Substring" option to Response Assertion</li>
<li>Bug 44378 - Turkish localisation</li>
<li>Add optional output variable name to Jexl function</li>
+<li>Add application/vnd.wap.xhtml+xml as a text type</li>
+<li>Add means to override maximum display size in View Results Tree - set the
property: view.results.tree.max_size</li>
</ul>
<h4>Non-functional changes</h4>
Modified: jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml?rev=631417&r1=631416&r2=631417&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Tue Feb 26
14:54:37 2008
@@ -1814,12 +1814,17 @@
text/
application/javascript
application/json
-application/xhtml+xml
application/soap+xml
+application/vnd.wap.xhtml+xml
+application/xhtml+xml
+application/xml
</pre>
Additional types can be added by defining the JMeter property
<b>content-type_text</b>
as a comma-separated list of the content-type prefixes to be matched.
+</p>
+<p>If the response data is larger than 200K, then it won't be displayed.
+To change this limit, set the JMeter property <b>view.results.tree.max_size</b>
</p>
<p>The HTML view attempts to render the response as
HTML. The rendered HTML is likely to compare poorly to the view one
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]