fix:测试执行状态修改
This commit is contained in:
parent
0b68685e0d
commit
e2f272f601
|
@ -196,9 +196,11 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
|
|||
}
|
||||
}
|
||||
try {
|
||||
sendTask(report, testResult);
|
||||
if (StringUtils.equals(NoticeConstants.Mode.API, report.getTriggerMode()) || StringUtils.equals(NoticeConstants.Mode.SCHEDULE, report.getTriggerMode())) {
|
||||
sendTask(report, testResult);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
LogUtil.error("发送通知" + e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -237,6 +239,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
|
|||
paramMap.put("id", report.getId());
|
||||
paramMap.put("type", "performance");
|
||||
paramMap.put("url", baseSystemConfigDTO.getUrl());
|
||||
paramMap.put("state", report.getStatus());
|
||||
NoticeModel noticeModel = NoticeModel.builder()
|
||||
.successContext(successContext)
|
||||
.successMailTemplate("ApiSuccessfulNotification")
|
||||
|
|
|
@ -16,6 +16,7 @@ public class NoticeModel {
|
|||
/**
|
||||
* 保存状态
|
||||
*/
|
||||
private String state;
|
||||
private String status;
|
||||
/**
|
||||
* Event
|
||||
|
|
|
@ -87,6 +87,7 @@ public class PerformanceNoticeTask {
|
|||
paramMap.put("testName", loadTestReport.getName());
|
||||
paramMap.put("id", loadTestReport.getId());
|
||||
paramMap.put("type", "performance");
|
||||
paramMap.put("state", loadTestReport.getStatus());
|
||||
paramMap.put("url", baseSystemConfigDTO.getUrl());
|
||||
NoticeModel noticeModel = NoticeModel.builder()
|
||||
.successContext(successContext)
|
||||
|
|
Loading…
Reference in New Issue