fix(UI 自动化): 测试计划报告成功率显示不对

--bug=1015582 --user=张大海 【测试跟踪】github#16534,测试计划-关联UI自动化-点执行-报告成功率显示不对 https://www.tapd.cn/55049933/s/1217248
This commit is contained in:
zhangdahai112 2022-08-02 11:53:27 +08:00 committed by zhangdahai112
parent dbc6c24a0b
commit 18538169e4
1 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,12 @@ public class TestPlanReportService {
planReportCaseDTOS = extApiScenarioReportMapper.selectForPlanReport(reportIds); planReportCaseDTOS = extApiScenarioReportMapper.selectForPlanReport(reportIds);
TestPlanUtils.buildStatusResultMap(planReportCaseDTOS, statusResultMap, report, "Success"); TestPlanUtils.buildStatusResultMap(planReportCaseDTOS, statusResultMap, report, "Success");
} }
if (MapUtils.isNotEmpty(testPlanExecuteReportDTO.getTestPlanUiScenarioIdAndReportIdMap())) {
// 场景用例
reportIds = new ArrayList<>(testPlanExecuteReportDTO.getTestPlanUiScenarioIdAndReportIdMap().values());
planReportCaseDTOS = extApiScenarioReportMapper.selectForPlanReport(reportIds);
TestPlanUtils.buildStatusResultMap(planReportCaseDTOS, statusResultMap, report, "Success");
}
if (MapUtils.isNotEmpty(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap())) { if (MapUtils.isNotEmpty(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap())) {
// 性能用例 // 性能用例
reportIds = new ArrayList<>(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap().values()); reportIds = new ArrayList<>(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap().values());