fix(测试跟踪): 测试计划报告执行率计算有误
--bug=1016931 --user=陈建星 【测试跟踪】报告列表查看测试报告,执行率计算错误 https://www.tapd.cn/55049933/s/1246742
This commit is contained in:
parent
8e20d1a107
commit
71b97dcbac
|
@ -66,7 +66,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)) {
|
||||
|
|
Loading…
Reference in New Issue