jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject [jmeter] 01/02: Bug 64142 - Presence of DebugPostProcessor in Test plan breaks ActiveThread Over time in report due to missing information
Date Fri, 14 Feb 2020 07:37:05 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 8a02d4b485ddebefb47d18f2273046058cbadafe
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Fri Feb 14 08:31:02 2020 +0100

    Bug 64142 - Presence of DebugPostProcessor in Test plan breaks
    ActiveThread Over time in report due to missing information
---
 .../main/java/org/apache/jmeter/extractor/DebugPostProcessor.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/extractor/DebugPostProcessor.java
b/src/components/src/main/java/org/apache/jmeter/extractor/DebugPostProcessor.java
index 24172f2..b5862bb 100644
--- a/src/components/src/main/java/org/apache/jmeter/extractor/DebugPostProcessor.java
+++ b/src/components/src/main/java/org/apache/jmeter/extractor/DebugPostProcessor.java
@@ -30,6 +30,7 @@ import org.apache.jmeter.testelement.AbstractTestElement;
 import org.apache.jmeter.testelement.property.JMeterProperty;
 import org.apache.jmeter.testelement.property.PropertyIterator;
 import org.apache.jmeter.threads.JMeterContext;
+import org.apache.jmeter.threads.JMeterContextService;
 import org.apache.jmeter.util.JMeterUtils;
 
 /**
@@ -82,7 +83,9 @@ public class DebugPostProcessor extends AbstractTestElement implements PostProce
             formatSet(sb, System.getProperties().entrySet());
             sb.append("\n");
         }
-
+        sr.setThreadName(threadContext.getThread().getThreadName());
+        sr.setGroupThreads(threadContext.getThreadGroup().getNumberOfThreads());
+        sr.setAllThreads(JMeterContextService.getNumberOfThreads());
         sr.setResponseData(sb.toString(), null);
         sr.setDataType(SampleResult.TEXT);
         sr.setSamplerData(rd.toString());


Mime
View raw message