From d591fc433aab9b61c7de538f757972da6c5bcc85 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 21 May 2024 17:29:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20xmind=E7=94=A8=E4=BE=8B=E5=AF=BC=E5=85=A5=EF=BC=8C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=90=88=E6=B3=95=E7=9A=84=E7=94=A8=E4=BE=8B=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039371 --user=陈建星 【测试跟踪】github#29824,测试跟踪用例导入xmind模版,连续两次点击导入按钮,会先提示导入失败,再次提示导入成功,实际文件并为导入成功 https://www.tapd.cn/55049933/s/1517834 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index f643754ec0..2e51fda764 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -1215,8 +1215,10 @@ public class TestCaseService { } httpRequest.setAttribute("ms-req-title", String.join(",", names)); httpRequest.setAttribute("ms-req-source-id", JSON.toJSONString(ids)); + } else { + MSException.throwException(Translator.get("no_legitimate_case_tip")); + return null; } - } xmindParser.clear(); } catch (Exception e) {