fix(测试计划): 修复测试计划执行时未执行ui用例的bug

--bug=1024331 --user=宋天阳 【测试跟踪】列表点击执行按钮,没有运行UI的用例,报告内没有UI的结果
https://www.tapd.cn/55049933/s/1348989
This commit is contained in:
song-tianyang 2023-03-13 17:38:17 +08:00 committed by 建国
parent ca541bd8af
commit dcc0370685
1 changed files with 2 additions and 3 deletions

View File

@ -911,14 +911,13 @@ public class TestPlanService {
LogUtil.error("测试计划执行查询场景用例失败!", e);
}
}
if (MapUtils.isNotEmpty(reportInfoDTO.getPlanScenarioIdMap())) {
if (MapUtils.isNotEmpty(reportInfoDTO.getUiScenarioIdMap())) {
try {
uiScenarios = planTestPlanUiScenarioCaseService.getFailureListByIds(reportInfoDTO.getPlanScenarioIdMap().keySet());
uiScenarios = planTestPlanUiScenarioCaseService.getFailureListByIds(reportInfoDTO.getUiScenarioIdMap().keySet());
} catch (Exception e) {
LogUtil.error("测试计划执行查询UI用例失败!", e);
}
}
if (CollectionUtils.isNotEmpty(apiTestCases)) {
//执行接口案例任务
LoggerUtil.info("开始执行测试计划接口用例 " + planReportId);