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

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

View File

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

View File

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