refactor(性能测试): 测试计划性能测试用例增加状态更改日志

This commit is contained in:
shiziyuan9527 2022-08-23 10:46:52 +08:00 committed by f2c-ci-robot[bot]
parent 8808b2ce41
commit 103163c85f
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import io.metersphere.commons.constants.PerformanceTestStatus;
import io.metersphere.commons.constants.ReportTriggerMode; import io.metersphere.commons.constants.ReportTriggerMode;
import io.metersphere.commons.constants.TestPlanLoadCaseStatus; import io.metersphere.commons.constants.TestPlanLoadCaseStatus;
import io.metersphere.commons.consumer.LoadTestFinishEvent; import io.metersphere.commons.consumer.LoadTestFinishEvent;
import io.metersphere.commons.utils.LogUtil;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -30,6 +31,7 @@ public class LoadReportStatusEvent implements LoadTestFinishEvent {
if (StringUtils.equals(PerformanceTestStatus.Completed.name(), status)) { if (StringUtils.equals(PerformanceTestStatus.Completed.name(), status)) {
result = TestPlanLoadCaseStatus.success.name(); result = TestPlanLoadCaseStatus.success.name();
} }
LogUtil.info("update plan load case status: " + result);
extTestPlanLoadCaseMapper.updateCaseStatus(reportId, result); extTestPlanLoadCaseMapper.updateCaseStatus(reportId, result);
} }
} }