From 00834652d0ee8857d2976616eb60f52062fd5694 Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Tue, 4 Jan 2022 18:27:15 +0100 Subject: [PATCH] Use correct message format for MessageFormat in HTMLAssertion Regression introduced by code clean up in commit af3958b3cd5172bc60ca2d3f440febf173f45f8e Bugzilla Id: 65782 --- .../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 8fc41ea1cdd..6e93c7e82c8 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 @@ private AssertionResult runTidy(SampleResult inResponse) { 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 15ce9515889..c6cbeb9a215 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.
  • 65352Warning logged when Boundary Extractor doesn't find any match
  • 65681Use default values for null values when extracting with JSONPostProcessor
  • Allow setters in ConstantThroughputTimer to updating the values during the run time
  • +
  • 65782Use correct message format for MessageFormat in HTMLAssertion
  • Functions