refactor(工作台): 测试计划用例未执行不是空
This commit is contained in:
parent
cf0f556f70
commit
3883d6ba18
|
@ -791,19 +791,19 @@ public class DashboardService {
|
||||||
List<TestPlanFunctionalCase> testPlanFunctionalCases = caseUserMap.get(userId);
|
List<TestPlanFunctionalCase> testPlanFunctionalCases = caseUserMap.get(userId);
|
||||||
if (CollectionUtils.isNotEmpty(testPlanFunctionalCases)) {
|
if (CollectionUtils.isNotEmpty(testPlanFunctionalCases)) {
|
||||||
count += testPlanFunctionalCases.size();
|
count += testPlanFunctionalCases.size();
|
||||||
List<TestPlanFunctionalCase> list = testPlanFunctionalCases.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList();
|
List<TestPlanFunctionalCase> list = testPlanFunctionalCases.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList();
|
||||||
finishCount += list.size();
|
finishCount += list.size();
|
||||||
}
|
}
|
||||||
List<TestPlanApiCase> testPlanApiCases = apiCaseUserMap.get(userId);
|
List<TestPlanApiCase> testPlanApiCases = apiCaseUserMap.get(userId);
|
||||||
if (CollectionUtils.isNotEmpty(testPlanApiCases)) {
|
if (CollectionUtils.isNotEmpty(testPlanApiCases)) {
|
||||||
count += testPlanApiCases.size();
|
count += testPlanApiCases.size();
|
||||||
List<TestPlanApiCase> list = testPlanApiCases.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList();
|
List<TestPlanApiCase> list = testPlanApiCases.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList();
|
||||||
finishCount += list.size();
|
finishCount += list.size();
|
||||||
}
|
}
|
||||||
List<TestPlanApiScenario> testPlanApiScenarios = apiScenarioUserMap.get(userId);
|
List<TestPlanApiScenario> testPlanApiScenarios = apiScenarioUserMap.get(userId);
|
||||||
if (CollectionUtils.isNotEmpty(testPlanApiScenarios)) {
|
if (CollectionUtils.isNotEmpty(testPlanApiScenarios)) {
|
||||||
count += testPlanApiScenarios.size();
|
count += testPlanApiScenarios.size();
|
||||||
List<TestPlanApiScenario> list = testPlanApiScenarios.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList();
|
List<TestPlanApiScenario> list = testPlanApiScenarios.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList();
|
||||||
finishCount += list.size();
|
finishCount += list.size();
|
||||||
}
|
}
|
||||||
List<TestPlanBugPageResponse> testPlanBugPageResponses = bugUserMap.get(userId);
|
List<TestPlanBugPageResponse> testPlanBugPageResponses = bugUserMap.get(userId);
|
||||||
|
|
Loading…
Reference in New Issue