提交 7b0045d1 编写于 作者: C chenjianxing

refactor: 解决冲突

......@@ -120,9 +120,18 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
queue.clear();
super.teardownTest(context);
NoticeService noticeService = CommonBeanFactory.getBean(NoticeService.class);
List<Notice> notice = noticeService.queryNotice(testResult.getTestId());
List<Notice> notice = null;
try {
notice = noticeService.queryNotice(testResult.getTestId());
} catch (Exception e) {
e.printStackTrace();
}
MailService mailService = CommonBeanFactory.getBean(MailService.class);
mailService.sendHtml(report.getId(), notice, report.getStatus(), "api");
try {
mailService.sendHtml(report.getId(), notice, report.getStatus(), "api");
} catch (Exception e) {
e.printStackTrace();
}
}
private RequestResult getRequestResult(SampleResult result) {
......
......@@ -65,6 +65,7 @@ public class MailService {
} else if (type.equals("performance")) {
LoadTestDTO performanceResult = apiAndPerformanceHelper.getPerformance(id);
testName = performanceResult.getName();
status = performanceResult.getStatus();
}
String html1 = "<!DOCTYPE html>\n" +
"<html lang=\"en\">\n" +
......
......@@ -239,7 +239,7 @@ public class PerformanceTestService {
startEngine(loadTest, engine, request.getTriggerMode());
if (request.getTriggerMode().equals("SCHEDULE")) {
List<Notice> notice = noticeService.queryNotice(request.getId());
mailService.sendHtml(engine.getReportId(), notice, "success", "performance");
mailService.sendHtml(engine.getReportId(), notice, "status", "performance");
}
return engine.getReportId();
}
......
......@@ -292,8 +292,7 @@ export default {
});
},
cancel() {
console.log(this.test.toJMX().xml)
// this.$router.push('/api/test/list/all');
this.$router.push('/api/test/list/all');
},
handleCommand(command) {
switch (command) {
......
......@@ -107,7 +107,8 @@ export const STATUS = {
options: [
{label: "Saved", value: "Saved"}, {label: "Starting", value: "Starting"},
{label: "Running", value: "Running"}, {label: "Reporting", value: "Reporting"},
{label: "Completed", value: "Completed"}, {label: "Error", value: "Error"}
{label: "Completed", value: "Completed"}, {label: "Error", value: "Error"},
{label: "Success", value: "Success"}
],
props: { // 尾部控件的props,一般为element ui控件的props
multiple: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册