diff --git a/backend/src/main/java/io/metersphere/api/jmeter/LocalRunner.java b/backend/src/main/java/io/metersphere/api/jmeter/LocalRunner.java index b2401e9233..9c5a42800f 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/LocalRunner.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/LocalRunner.java @@ -1,7 +1,6 @@ package io.metersphere.api.jmeter; import io.metersphere.commons.utils.LogUtil; -import org.apache.jmeter.engine.JMeterEngine; import org.apache.jmeter.engine.JMeterEngineException; import org.apache.jmeter.engine.StandardJMeterEngine; import org.apache.jorphan.collections.HashTree; @@ -17,7 +16,7 @@ public class LocalRunner { } public void run(String report) { - JMeterEngine engine = new StandardJMeterEngine(); + StandardJMeterEngine engine = new StandardJMeterEngine(); engine.configure(jmxTree); try { engine.runTest(); @@ -29,7 +28,7 @@ public class LocalRunner { public void stop(String report) { try { - JMeterEngine engine = MessageCache.runningEngine.get(report); + StandardJMeterEngine engine = MessageCache.runningEngine.get(report); if (engine != null) { engine.stopTest(); MessageCache.runningEngine.remove(report); diff --git a/backend/src/main/java/io/metersphere/api/jmeter/MessageCache.java b/backend/src/main/java/io/metersphere/api/jmeter/MessageCache.java index 230c789fd0..80bc1263af 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/MessageCache.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/MessageCache.java @@ -1,6 +1,6 @@ package io.metersphere.api.jmeter; -import org.apache.jmeter.engine.JMeterEngine; +import org.apache.jmeter.engine.StandardJMeterEngine; import javax.websocket.Session; import java.util.HashMap; @@ -12,6 +12,6 @@ public class MessageCache { public static ConcurrentHashMap reportCache = new ConcurrentHashMap<>(); - public static ConcurrentHashMap runningEngine = new ConcurrentHashMap<>(); + public static ConcurrentHashMap runningEngine = new ConcurrentHashMap<>(); } diff --git a/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue index ef9cbff6fd..67de4d15fc 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue @@ -1,10 +1,13 @@ diff --git a/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue index 10e46c4207..7645c9e5a9 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue @@ -1,11 +1,13 @@