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

--bug=1016931 --user=陈建星 【测试跟踪】报告列表查看测试报告,执行率计算错误 https://www.tapd.cn/55049933/s/1246742
This commit is contained in:
chenjianxing 2022-09-22 15:51:58 +08:00 committed by jianxing
parent e2b84cab3a
commit 7bd9392b8c
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class TestPlanUtils {
String status = item.getStatus();
if (StringUtils.isNotBlank(status)
&& !StringUtils.equalsAnyIgnoreCase(status, TestPlanTestCaseStatus.Underway.name(), TestPlanTestCaseStatus.Prepare.name(),
ExecuteResult.UN_EXECUTE.getValue(), ExecuteResult.STOP.getValue())) {
ExecuteResult.UN_EXECUTE.toString(), ExecuteResult.STOP.toString())) {
// 计算执行过的数量
report.setExecuteCount(report.getExecuteCount() + 1);
if (StringUtils.equals(successStatus, status)) {