fix(测试跟踪): 测试计划报告获取环境信息异常处理
This commit is contained in:
parent
f993f882bb
commit
0f1ff44c7c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue