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

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

View File

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