diff --git a/pom.xml b/pom.xml index f3a26ed..bf5c0b9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.blazemeter jmeter-bzm-correlation-recorder jar - 3.0 + 3.1 Auto Correlation Recorder Auto Correlation Recorder as JMeter Plugin https://github.com/Blazemeter/CorrelationRecorder diff --git a/releases.json b/releases.json index 1190e9c..6f40e02 100644 --- a/releases.json +++ b/releases.json @@ -40,5 +40,19 @@ "json>=20190722", "maven-artifact>=3.8.4" ] + }, + { + "version": "3.1", + "what_is_new": "Many improvements in generation of suggestions from templates!", + "dependencies": [ + "jackson-dataformat-xml>=2.10.3", + "jackson-annotations>=2.13.3", + "jackson-databind>=2.10.3", + "jackson-core>=2.13.3", + "jackson-module-jaxb-annotations>=2.10.3", + "jmeter-bzm-commons>=0.2.1", + "json>=20190722", + "maven-artifact>=3.8.4" + ] } ] diff --git a/src/main/java/com/blazemeter/jmeter/correlation/core/CorrelationEngine.java b/src/main/java/com/blazemeter/jmeter/correlation/core/CorrelationEngine.java index 897f257..fb3c537 100644 --- a/src/main/java/com/blazemeter/jmeter/correlation/core/CorrelationEngine.java +++ b/src/main/java/com/blazemeter/jmeter/correlation/core/CorrelationEngine.java @@ -88,6 +88,9 @@ public synchronized void process(HTTPSamplerBase sampler, List chil JMeterContextService.getContext().setVariables(vars); // Using for instead of streams to avoid ConcurrentModificationException for (CorrelationRule rule : rules) { + if (Thread.currentThread().isInterrupted()) { + break; + } if (rule.isEnabled() && rule.getCorrelationReplacement() != null) { try { rule.getCorrelationReplacement().process(sampler, children, result, vars); @@ -106,6 +109,9 @@ public synchronized void process(HTTPSamplerBase sampler, List chil if (isContentTypeAllowed(result, responseFilter)) { // Using for instead of streams to avoid ConcurrentModificationException for (CorrelationRule rule : rules) { + if (Thread.currentThread().isInterrupted()) { + break; + } if (rule.isEnabled() && rule.getCorrelationExtractor() != null) { try { rule.getCorrelationExtractor().process(sampler, children, result, vars); diff --git a/src/main/java/com/blazemeter/jmeter/correlation/core/analysis/Analysis.java b/src/main/java/com/blazemeter/jmeter/correlation/core/analysis/Analysis.java index 5112413..724d6a8 100644 --- a/src/main/java/com/blazemeter/jmeter/correlation/core/analysis/Analysis.java +++ b/src/main/java/com/blazemeter/jmeter/correlation/core/analysis/Analysis.java @@ -67,14 +67,15 @@ public Map> run(List