fix(UI 自动化) ui测试报告漏掉计算错误的步骤

--bug=1016623 --user=张大海 【UI测试】当成功的步骤为0时-通过率计算错误 https://www.tapd.cn/55049933/s/1240131
--bug=1016626 --user=张大海 【UI测试】生成报告-步骤统计-未执行统计错误 https://www.tapd.cn/55049933/s/1240133
This commit is contained in:
zhangdahai112 2022-09-07 20:13:26 +08:00 committed by zhangdahai112
parent 4314bcf78f
commit 8e851aac3a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class PassRateUtil {
getUIFailStepCount(resultIdMap, Optional.ofNullable(step.getChildren()).orElse(new ArrayList<>()), count);
} else {
if (resultIdMap.containsKey(step.getResourceId()) && CollectionUtils.isNotEmpty(resultIdMap.get(step.getResourceId()))) {
calculateCount(resultIdMap, count, step, ScenarioStatus.Fail.name());
calculateCount(resultIdMap, count, step, ScenarioStatus.Error.name());
}
}
});