fix(测试计划): 性能测试批量执行执行状态未更新

This commit is contained in:
shiziyuan9527 2021-12-08 11:41:40 +08:00 committed by shiziyuan9527
parent 97ea6bae07
commit ad7c1e40c8
2 changed files with 3 additions and 1 deletions

View File

@ -10,5 +10,6 @@ public enum ReportTriggerMode {
CASE, CASE,
TEST_PLAN_SCHEDULE, TEST_PLAN_SCHEDULE,
TEST_PLAN_API, TEST_PLAN_API,
API_PLAN API_PLAN,
BATCH
} }

View File

@ -36,6 +36,7 @@ public class LoadReportStatusEvent implements LoadTestFinishEvent {
@Override @Override
public void execute(LoadTestReport loadTestReport) { public void execute(LoadTestReport loadTestReport) {
if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), loadTestReport.getTriggerMode()) if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), loadTestReport.getTriggerMode())
|| StringUtils.equals(ReportTriggerMode.BATCH.name(), loadTestReport.getTriggerMode())
|| StringUtils.equals(ReportTriggerMode.TEST_PLAN_SCHEDULE.name(), loadTestReport.getTriggerMode()) || StringUtils.equals(ReportTriggerMode.TEST_PLAN_SCHEDULE.name(), loadTestReport.getTriggerMode())
|| StringUtils.equals(ReportTriggerMode.TEST_PLAN_API.name(), loadTestReport.getTriggerMode())) { || StringUtils.equals(ReportTriggerMode.TEST_PLAN_API.name(), loadTestReport.getTriggerMode())) {
if (StringUtils.equalsAny(loadTestReport.getStatus(), if (StringUtils.equalsAny(loadTestReport.getStatus(),