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