You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2022/01/04 17:28:35 UTC

[jmeter] branch master updated: Use correct message format for MessageFormat in HTMLAssertion

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 0083465  Use correct message format for MessageFormat in HTMLAssertion
0083465 is described below

commit 00834652d0ee8857d2976616eb60f52062fd5694
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Tue Jan 4 18:27:15 2022 +0100

    Use correct message format for MessageFormat in HTMLAssertion
    
    Regression introduced by code clean up in commit af3958b3cd5172bc60ca2d3f440febf173f45f8e
    
    Bugzilla Id: 65782
---
 .../src/main/java/org/apache/jmeter/assertions/HTMLAssertion.java       | 2 +-
 xdocs/changes.xml                                                       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/assertions/HTMLAssertion.java b/src/components/src/main/java/org/apache/jmeter/assertions/HTMLAssertion.java
index 8fc41ea..6e93c7e 100644
--- a/src/components/src/main/java/org/apache/jmeter/assertions/HTMLAssertion.java
+++ b/src/components/src/main/java/org/apache/jmeter/assertions/HTMLAssertion.java
@@ -124,7 +124,7 @@ public class HTMLAssertion extends AbstractTestElement implements Serializable,
                 log.debug("Errors/warnings detected while parsing with tidy: {}", errbuf);
                 result.setFailure(true);
                 result.setFailureMessage(MessageFormat.format(
-                        "Tidy Parser errors: {} (allowed {}) Tidy Parser warnings: {} (allowed {})",
+                        "Tidy Parser errors: {0} (allowed {1}) Tidy Parser warnings: {2} (allowed {3})",
                         tidy.getParseErrors(), getErrorThreshold(), tidy.getParseWarnings(), getWarningThreshold()));
                 // return with an error
 
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 15ce951..c6cbeb9 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -234,6 +234,7 @@ however, the profile can't be updated while the test is running.
   <li><bug>65352</bug>Warning logged when Boundary Extractor doesn't find any match</li>
   <li><bug>65681</bug>Use default values for null values when extracting with JSONPostProcessor</li>
   <li>Allow setters in ConstantThroughputTimer to updating the values during the run time</li>
+  <li><bug>65782</bug>Use correct message format for MessageFormat in HTMLAssertion</li>
 </ul>
 
 <h3>Functions</h3>