fix(测试计划): 修复测试计划发送通知时未执行状态没有统计数的问题

--bug=1021840 --user=刘瑞斌 【测试计划】测试计划定时任务通知,场景数量统计错误 https://www.tapd.cn/55049933/s/1325941
This commit is contained in:
CaptainB 2023-02-02 17:02:33 +08:00 committed by 刘瑞斌
parent a05d6202db
commit 3ddbea8b5d
1 changed files with 7 additions and 0 deletions

View File

@ -295,10 +295,14 @@ public class TestPlanMessageService {
result.put("apiCaseFailedCount", v); result.put("apiCaseFailedCount", v);
break; break;
case "default": case "default":
case "pending":
case "stopped":
case "timeout":
result.put("apiCaseUnExecuteCount", v); result.put("apiCaseUnExecuteCount", v);
break; break;
case "errorreportresult": case "errorreportresult":
case "fakeerror": case "fakeerror":
case "fake_error":
result.put("apiCaseErrorReportCount", v); result.put("apiCaseErrorReportCount", v);
break; break;
default: default:
@ -324,10 +328,13 @@ public class TestPlanMessageService {
break; break;
case "unexecute": case "unexecute":
case "pending": case "pending":
case "stopped":
case "timeout":
result.put("apiScenarioUnExecuteCount", v); result.put("apiScenarioUnExecuteCount", v);
break; break;
case "errorreportresult": case "errorreportresult":
case "fakeerror": case "fakeerror":
case "fake_error":
result.put("apiScenarioErrorReportCount", v); result.put("apiScenarioErrorReportCount", v);
break; break;
default: default: