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