fix(测试跟踪): 测试计划报告通过率计算有误

--bug=1014857 --user=陈建星 [测试计划]github#15750一共8条用例,通过了4条,2条未执行,2条进行中,通过率这个100% https://www.tapd.cn/55049933/s/1201421
This commit is contained in:
chenjianxing 2022-07-14 11:03:09 +08:00 committed by f2c-ci-robot[bot]
parent b385953245
commit b9d0402806
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ public class TestPlanService {
report.setExecuteRate(0.0); report.setExecuteRate(0.0);
} }
if (report.getPassCount() != 0 && report.getCaseCount() != null) { if (report.getPassCount() != 0 && report.getCaseCount() != null) {
report.setPassRate(report.getPassCount() * 0.1 * 10 / report.getExecuteCount()); report.setPassRate(report.getPassCount() * 0.1 * 10 / report.getCaseCount());
} else { } else {
report.setPassRate(0.0); report.setPassRate(0.0);
} }