fix:测试执行状态修改
This commit is contained in:
parent
b1d95c8d55
commit
86c84855b8
|
@ -21,7 +21,6 @@ import org.apache.jmeter.protocol.http.sampler.HTTPSampleResult;
|
|||
import org.apache.jmeter.samplers.SampleResult;
|
||||
import org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient;
|
||||
import org.apache.jmeter.visualizers.backend.BackendListenerContext;
|
||||
import org.python.antlr.ast.Str;
|
||||
import org.springframework.http.HttpMethod;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
@ -270,6 +269,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
|
|||
paramMap.put("id", report.getId());
|
||||
paramMap.put("type", "performance");
|
||||
paramMap.put("url", baseSystemConfigDTO.getUrl());
|
||||
paramMap.put("status", report.getStatus());
|
||||
NoticeModel noticeModel = NoticeModel.builder()
|
||||
.successContext(successContext)
|
||||
.successMailTemplate("ApiSuccessfulNotification")
|
||||
|
|
|
@ -16,7 +16,6 @@ public class NoticeModel {
|
|||
/**
|
||||
* 保存状态
|
||||
*/
|
||||
private String state;
|
||||
private String status;
|
||||
/**
|
||||
* Event
|
||||
|
|
|
@ -87,7 +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("status", loadTestReport.getStatus());
|
||||
paramMap.put("url", baseSystemConfigDTO.getUrl());
|
||||
NoticeModel noticeModel = NoticeModel.builder()
|
||||
.successContext(successContext)
|
||||
|
|
Loading…
Reference in New Issue