fix(测试跟踪): 测试计划报告里增加未执行步骤统计

测试计划报告里增加未执行步骤统计
This commit is contained in:
song-tianyang 2022-03-17 13:32:52 +08:00 committed by 刘瑞斌
parent 8912eb4809
commit d49cfaa559
3 changed files with 3 additions and 1 deletions

View File

@ -395,7 +395,7 @@ public class ApiScenarioReportStructureService {
AtomicLong stepErrorCode = new AtomicLong();
AtomicLong stepUnExecute = new AtomicLong();
calculateStep(stepList, stepError, stepTotal, stepErrorCode, stepUnExecute, false);
reportDTO.setScenarioStepSuccess((stepTotal.longValue() - stepError.longValue() - stepErrorCode.longValue()));
reportDTO.setScenarioStepSuccess((stepTotal.longValue() - stepError.longValue() - stepErrorCode.longValue() -stepUnExecute.longValue()));
reportDTO.setScenarioStepTotal(stepTotal.longValue());
reportDTO.setScenarioStepError(stepError.longValue());
reportDTO.setScenarioStepErrorReport(stepErrorCode.longValue());

View File

@ -15,5 +15,6 @@ public class TestPlanScenarioStepCountDTO {
private int scenarioStepErrorReport;
private List<String> underwayIds = new ArrayList<>();
private int scenarioStepUnderway;
private int scenarioStepUnExecute;
}

View File

@ -495,6 +495,7 @@ public class TestPlanScenarioCaseService {
stepCount.setScenarioStepSuccess(stepCount.getScenarioStepSuccess() + jsonObject.getIntValue("scenarioStepSuccess"));
stepCount.setScenarioStepError(stepCount.getScenarioStepError() + jsonObject.getIntValue("scenarioStepError"));
stepCount.setScenarioStepErrorReport(stepCount.getScenarioStepErrorReport() + jsonObject.getIntValue("scenarioStepErrorReport"));
stepCount.setScenarioStepUnExecute(stepCount.getScenarioStepUnExecute() + jsonObject.getIntValue("scenarioStepUnExecuteReport"));
}
}
} else {