From f109a704792e0066fe6b05792a034a5839ba21d2 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Wed, 3 Aug 2022 10:32:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=9C=AA=E6=89=A7=E8=A1=8C=E7=9A=84ui?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=9F=A5=E7=9C=8B=E5=AE=9E=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=B5=8B=E8=AF=95=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015635 --user=张大海 【UI 测试】关联未执行的ui场景查看实时报告不展示测试结果数据 https://www.tapd.cn/55049933/s/1218043 --- .../metersphere/commons/utils/TestPlanUtils.java | 3 ++- .../comonents/report/detail/TestPlanUiReport.vue | 2 +- .../report/detail/component/UiResult.vue | 16 ++++++++-------- .../report/detail/component/UiScenarioResult.vue | 5 +++-- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java index 30b1378d07..a7495651c2 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java @@ -13,7 +13,8 @@ import java.util.Map; public class TestPlanUtils { public static void buildStatusResultMap(Map reportStatusResultMap, String result) { - if (StringUtils.isBlank(result)) { + // unexecute 存在于 ui 执行结果中 + if (StringUtils.isBlank(result) || StringUtils.equals("UnExecute", result)) { result = TestPlanTestCaseStatus.Prepare.name(); } TestCaseReportStatusResultDTO statusResult = reportStatusResultMap.get(result); diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanUiReport.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanUiReport.vue index 1d733503c8..545c019046 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanUiReport.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanUiReport.vue @@ -2,7 +2,7 @@ - +