From 4359861a509a184ec797f8ebe79cd923c86bbc31 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:44:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=94=A8=E4=BE=8B=EF=BC=8C=E5=A4=87=E6=B3=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=96=87=E6=9C=AC=E6=A1=86=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/track/service/TestCaseService.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index d6c7a199c0..3b4f73b266 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -392,11 +392,20 @@ public class TestCaseService { } else if (t.getMethod().equals("auto") && t.getType().equals("api")) { data.setStepDesc(""); data.setStepResult(""); - data.setRemark(t.getApiName()); + if(t.getTestId().equals("other")){ + data.setRemark(t.getOtherTestName()); + }else{ + data.setRemark(t.getApiName()); + } + } else if (t.getMethod().equals("auto") && t.getType().equals("performance")) { data.setStepDesc(""); data.setStepResult(""); - data.setRemark(t.getPerformName()); + if(t.getTestId().equals("other")){ + data.setRemark(t.getOtherTestName()); + }else{ + data.setRemark(t.getPerformName()); + } } data.setMaintainer(t.getMaintainer()); list.add(data);