fix(测试计划): 修复测试计划生成报告时状态没更改的缺陷
This commit is contained in:
parent
66f4226f18
commit
27e442c6d4
|
@ -321,6 +321,10 @@ public class TestPlanReportService {
|
||||||
planReport.setPassRate(RateCalculateUtils.divWithPrecision((int) functionalCasePassCount, (int) caseTotal, 2));
|
planReport.setPassRate(RateCalculateUtils.divWithPrecision((int) functionalCasePassCount, (int) caseTotal, 2));
|
||||||
// 计划的(执行)结果状态: 通过率 >= 阈值 ? 成功 : 失败
|
// 计划的(执行)结果状态: 通过率 >= 阈值 ? 成功 : 失败
|
||||||
planReport.setResultStatus(planReport.getPassRate() >= planReport.getPassThreshold() ? ReportStatus.SUCCESS.name() : ReportStatus.ERROR.name());
|
planReport.setResultStatus(planReport.getPassRate() >= planReport.getPassThreshold() ? ReportStatus.SUCCESS.name() : ReportStatus.ERROR.name());
|
||||||
|
|
||||||
|
planReport.setEndTime(System.currentTimeMillis());
|
||||||
|
|
||||||
|
testPlanReportMapper.updateByPrimaryKeySelective(planReport);
|
||||||
return planReport;
|
return planReport;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue