fix(测试跟踪): 测试计划报告获取环境信息异常处理

This commit is contained in:
chenjianxing 2022-11-24 13:22:31 +08:00 committed by jianxing
parent f9f4c68eac
commit 604a5d68c4
2 changed files with 10 additions and 2 deletions

View File

@ -44,7 +44,11 @@ public class PlanTestPlanApiCaseService extends ApiTestService {
calculatePlanReport(report, planReportCaseDTOS); calculatePlanReport(report, planReportCaseDTOS);
//记录接口用例的运行环境信息 //记录接口用例的运行环境信息
List<String> idList = planReportCaseDTOS.stream().map(PlanReportCaseDTO::getId).collect(Collectors.toList()); List<String> idList = planReportCaseDTOS.stream().map(PlanReportCaseDTO::getId).collect(Collectors.toList());
try {
report.setProjectEnvMap(getPlanProjectEnvMap(idList)); report.setProjectEnvMap(getPlanProjectEnvMap(idList));
} catch (Exception e) {
LogUtil.error(e);
}
} }
} }

View File

@ -38,7 +38,11 @@ public class PlanTestPlanScenarioCaseService extends ApiTestService {
calculatePlanReport(report, planReportCaseDTOS); calculatePlanReport(report, planReportCaseDTOS);
//记录接口用例的运行环境信息 //记录接口用例的运行环境信息
List<String> idList = planReportCaseDTOS.stream().map(PlanReportCaseDTO::getId).collect(Collectors.toList()); List<String> idList = planReportCaseDTOS.stream().map(PlanReportCaseDTO::getId).collect(Collectors.toList());
try {
report.setProjectEnvMap(getPlanProjectEnvMap(idList)); report.setProjectEnvMap(getPlanProjectEnvMap(idList));
} catch (Exception e) {
LogUtil.error(e);
}
} }
} }