From 08e7ea6167829005a13b9ab89bf9fb304ad436a3 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Mon, 1 Aug 2022 10:46:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=A3=80=E6=9F=A5=E5=8F=AF=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E7=9A=84=E6=96=B9=E6=B3=95=20(#16525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: wxg0103 <727495428@qq.com> --- .../java/io/metersphere/track/service/TestPlanService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index acb8e5a5be..d221f1819d 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -2076,7 +2076,7 @@ public class TestPlanService { public String runPlan(TestplanRunRequest testplanRunRequest) { //检查测试计划下有没有可以执行的用例; - if (!haveExecCase(testplanRunRequest.getTestPlanId()) || !haveUiCase(testplanRunRequest.getTestPlanId())) { + if (!haveExecCase(testplanRunRequest.getTestPlanId()) && !haveUiCase(testplanRunRequest.getTestPlanId())) { MSException.throwException(Translator.get("plan_warning")); } String envType = testplanRunRequest.getEnvironmentType(); @@ -2323,7 +2323,7 @@ public class TestPlanService { append.append("/"); } } - if (!haveExecCase(planList.get(i).getId()) || !haveUiCase(planList.get(i).getId())) { + if (!haveExecCase(planList.get(i).getId()) && !haveUiCase(planList.get(i).getId())) { haveExecCaseBuilder.append(planList.get(i).getName()).append("; "); } }