diff --git a/backend/src/main/java/io/metersphere/api/cache/TestPlanReportExecuteCatch.java b/backend/src/main/java/io/metersphere/api/cache/TestPlanReportExecuteCatch.java index 518556b70f..d1161c02fb 100644 --- a/backend/src/main/java/io/metersphere/api/cache/TestPlanReportExecuteCatch.java +++ b/backend/src/main/java/io/metersphere/api/cache/TestPlanReportExecuteCatch.java @@ -1,5 +1,8 @@ package io.metersphere.api.cache; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import java.util.HashMap; import java.util.Map; @@ -8,6 +11,7 @@ import java.util.Map; * @Date 2021/8/20 3:29 下午 */ public class TestPlanReportExecuteCatch { + private static Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog"); private static Map testPlanReportMap = new HashMap<>(); private TestPlanReportExecuteCatch() { @@ -88,6 +92,7 @@ public class TestPlanReportExecuteCatch { } public static void finishAllTask(String planReportId) { + testPlanLog.info("ReportId["+planReportId+"] finish task!"); if(testPlanReportMap.containsKey(planReportId)){ testPlanReportMap.get(planReportId).finishAllTask(); } diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java index dd4c4da761..7d4d05ab7f 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java @@ -1239,6 +1239,7 @@ public class TestPlanReportService { //20分钟没有案例执行结果更新,则定位超时 long lastCountTime = executeInfo.getLastFinishedNumCountTime(); long nowTime = System.currentTimeMillis(); + testPlanLog.info("ReportId: ["+planReportId+"]; timeCount:"+ (nowTime - lastCountTime)); if (nowTime - lastCountTime > 1200000) { return true; } diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/component/LoadResult.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/component/LoadResult.vue index 1203ed26bd..2d7bd983b1 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/component/LoadResult.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/component/LoadResult.vue @@ -21,7 +21,10 @@ export default { return { caseDataMap: new Map([ ["success", {name: this.$t('test_track.plan_view.pass'), itemStyle: {color: '#67C23A'}}], + ["Success", {name: this.$t('test_track.plan_view.pass'), itemStyle: {color: '#67C23A'}}], + ["SUCCESS", {name: this.$t('test_track.plan_view.pass'), itemStyle: {color: '#67C23A'}}], ["error", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}], + ["Error", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}], ["run", {name: this.$t('运行中'), itemStyle: {color: '#DEDE10'}}], ["Prepare", {name: this.$t('api_test.home_page.detail_card.unexecute'), itemStyle: {color: '#909399'}}], ]),