fix(接口测试): 修复场景报告场景成功数统计错误问题

--bug=1010408 --user=赵勇 【接口测试】场景执行报告没显示成功或失败 的场景数量 https://www.tapd.cn/55049933/s/1105982
This commit is contained in:
fit2-zhao 2022-02-18 18:14:51 +08:00 committed by fit2-zhao
parent 9fb0b3f91d
commit 25cadc9115
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ public class ApiScenarioReportStructureService {
reportDTO.setScenarioTotal(totalScenario.longValue());
reportDTO.setScenarioError(scenarioError.longValue());
reportDTO.setScenarioErrorReport(errorReport.longValue());
reportDTO.setScenarioSuccess((totalScenario.longValue() - scenarioError.longValue()));
//统计步骤数据
AtomicLong stepErrorCode = new AtomicLong();
calculateStep(stepList, stepError, stepTotal, stepErrorCode, false);