From b34967da9410ead14afa12d2f430213e5e8d39dc Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 25 Oct 2022 14:16:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=90=8E=E9=80=9A=E7=9F=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018800 --user=刘瑞斌 【项目设置】场景执行成功,消息通知却是执行失败事件。 https://www.tapd.cn/55049933/s/1276179 --- .../metersphere/service/scenario/ApiScenarioReportService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioReportService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioReportService.java index 252442dc52..130f6ca8b3 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioReportService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioReportService.java @@ -491,7 +491,7 @@ public class ApiScenarioReportService { String event; String status; - if (StringUtils.equals(scenario.getLastResult(), ApiReportStatus.SUCCESS.name())) { + if (StringUtils.endsWithIgnoreCase(scenario.getLastResult(), ApiReportStatus.SUCCESS.name())) { event = NoticeConstants.Event.EXECUTE_SUCCESSFUL; status = "成功"; } else {