fix:修改缺陷处理人
This commit is contained in:
parent
16a4bd9cb5
commit
c045db32a5
|
@ -28,5 +28,7 @@ public class Issues implements Serializable {
|
|||
|
||||
private String projectName;
|
||||
|
||||
private String currentOwner;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -76,7 +76,7 @@ public class MailService {
|
|||
"<body style=\"text-align: left\">\n" +
|
||||
" <div>\n" +
|
||||
" <h3>" + type + "定时任务结果通知</h3>\n" +
|
||||
" <p> 尊敬的用户:您好,您所执行的" + testName + "运行失败,请点击报告链接查看</p>\n" +
|
||||
" <p> 尊敬的用户:您好,您所执行的" + testName + "运行失败</p>\n" +
|
||||
" </div>\n" +
|
||||
"</body>\n" +
|
||||
"</html>";
|
||||
|
@ -89,7 +89,7 @@ public class MailService {
|
|||
"<body style=\"text-align: left\">\n" +
|
||||
" <div>\n" +
|
||||
" <h3>" + type + "定时任务结果通知</h3>\n" +
|
||||
" <p> 尊敬的用户:您好," + testName + "运行成功,请点击报告链接查看</p>\n" +
|
||||
" <p> 尊敬的用户:您好," + testName + "运行成功</p>\n" +
|
||||
" </div>\n" +
|
||||
"</body>\n" +
|
||||
"</html>";
|
||||
|
|
|
@ -238,8 +238,17 @@ public class PerformanceTestService {
|
|||
|
||||
startEngine(loadTest, engine, request.getTriggerMode());
|
||||
if (request.getTriggerMode().equals("SCHEDULE")) {
|
||||
List<Notice> notice = noticeService.queryNotice(request.getId());
|
||||
List<Notice> notice = null;
|
||||
try {
|
||||
notice = noticeService.queryNotice(request.getId());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
mailService.sendHtml(engine.getReportId(), notice, "status", "performance");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return engine.getReportId();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue