diff --git a/backend/src/main/java/io/metersphere/performance/notice/PerformanceNoticeEvent.java b/backend/src/main/java/io/metersphere/performance/notice/PerformanceNoticeEvent.java index ecb122c8e0..398f8e18ff 100644 --- a/backend/src/main/java/io/metersphere/performance/notice/PerformanceNoticeEvent.java +++ b/backend/src/main/java/io/metersphere/performance/notice/PerformanceNoticeEvent.java @@ -76,7 +76,7 @@ public class PerformanceNoticeEvent implements LoadTestFinishEvent { NoticeModel noticeModel = NoticeModel.builder() .operator(loadTestReport.getUserId()) .successContext(successContext) - .successMailTemplate("PerformanceApiSuccessNotification") + .successMailTemplate("PerformanceSuccessNotification") .failedContext(failedContext) .failedMailTemplate("PerformanceFailedNotification") .testId(loadTestReport.getTestId()) diff --git a/backend/src/main/resources/mail/PerformanceApiSuccessNotification.html b/backend/src/main/resources/mail/PerformanceApiSuccessNotification.html deleted file mode 100644 index 04bca545f6..0000000000 --- a/backend/src/main/resources/mail/PerformanceApiSuccessNotification.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - MeterSphere - - -
-

尊敬的用户:

-

您好: -

-
-

您所执行的 ${name} 性能测试已完成
- 请点击下面链接进入测试报告页面

- ${url}/#/${type}/report/view/${id} -
- - \ No newline at end of file diff --git a/backend/src/main/resources/mail/PerformanceSuccessNotification.html b/backend/src/main/resources/mail/PerformanceSuccessNotification.html new file mode 100644 index 0000000000..0293d6e241 --- /dev/null +++ b/backend/src/main/resources/mail/PerformanceSuccessNotification.html @@ -0,0 +1,12 @@ + + + + + MeterSphere + + +
+ ${operator}执行性能测试成功: ${name}, 报告: ${reportUrl} +
+ + \ No newline at end of file diff --git a/frontend/src/business/components/settings/workspace/components/jenkins/JenkinsNotification.vue b/frontend/src/business/components/settings/workspace/components/jenkins/JenkinsNotification.vue index 0756eb1660..9f51d8e16b 100644 --- a/frontend/src/business/components/settings/workspace/components/jenkins/JenkinsNotification.vue +++ b/frontend/src/business/components/settings/workspace/components/jenkins/JenkinsNotification.vue @@ -157,11 +157,11 @@ export default { '\n' + '\n' + '
\n' + - '${operator}所执行的 ${name} ${type}测试运行成功' + + '${operator}执行 Jenkins 成功: ${name}' + '
\n' + '\n' + '', - robotTitle: "${operator}所执行的 ${name} ${type}测试运行成功", + robotTitle: "${operator}执行 Jenkins 成功: ${name}", jenkinsTask: [{ taskType: "jenkinsTask", event: "",