From fdacec0a7f7ec06f85edeea0132dc4ca76f8be0c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 1 Dec 2022 19:10:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=89=A7=E8=A1=8C=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=B2=A1=E6=9C=89=E6=89=A7=E8=A1=8C=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=88=99=E4=B8=8D=E8=B0=83=E7=94=A8=E8=AF=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/plan/service/TestPlanService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java index 66702c34aa..2d4226d4fd 100644 --- a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java +++ b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java @@ -861,18 +861,18 @@ public class TestPlanService { Map scenarioReportMap = null; Map loadCaseReportMap = null; Map uiScenarioReportMap = null; - if (reportInfoDTO.getApiTestCaseDataMap() != null) { + if (MapUtils.isNotEmpty(reportInfoDTO.getApiTestCaseDataMap())) { //执行接口案例任务 LoggerUtil.info("开始执行测试计划接口用例 " + planReportId); apiCaseReportMap = this.executeApiTestCase(triggerMode, planReportId, userId, new ArrayList<>(reportInfoDTO.getApiTestCaseDataMap().keySet()), runModeConfig); } - if (reportInfoDTO.getPlanScenarioIdMap() != null) { + if (MapUtils.isNotEmpty(reportInfoDTO.getPlanScenarioIdMap())) { //执行场景执行任务 LoggerUtil.info("开始执行测试计划场景用例 " + planReportId); scenarioReportMap = this.executeScenarioCase(planReportId, testPlanId, projectId, runModeConfig, triggerMode, userId, reportInfoDTO.getPlanScenarioIdMap()); } - if (reportInfoDTO.getPerformanceIdMap() != null) { + if (MapUtils.isNotEmpty(reportInfoDTO.getPerformanceIdMap())) { //执行性能测试任务 LoggerUtil.info("开始执行测试计划性能用例 " + planReportId); loadCaseReportMap = perfExecService.executeLoadCase(planReportId, runModeConfig, transformationPerfTriggerMode(triggerMode), reportInfoDTO.getPerformanceIdMap());