fix: 修复邮件模版不一致的问题
--bug=1009015 --user=刘瑞斌 【jenkins】邮件默认通知显示不一致 https://www.tapd.cn/55049933/s/1084854
This commit is contained in:
parent
3c4058042f
commit
ad5307defd
|
@ -116,8 +116,8 @@ public class ApiDefinitionExecResultService {
|
||||||
.operator(SessionUtils.getUserId())
|
.operator(SessionUtils.getUserId())
|
||||||
.context(context)
|
.context(context)
|
||||||
.subject("接口用例通知")
|
.subject("接口用例通知")
|
||||||
.successMailTemplate("api/CaseResult")
|
.successMailTemplate("api/CaseResultSuccess")
|
||||||
.failedMailTemplate("api/CaseResult")
|
.failedMailTemplate("api/CaseResultFailed")
|
||||||
.paramMap(paramMap)
|
.paramMap(paramMap)
|
||||||
.event(event)
|
.event(event)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -437,8 +437,8 @@ public class ApiScenarioReportService {
|
||||||
.operator(userId)
|
.operator(userId)
|
||||||
.context(context)
|
.context(context)
|
||||||
.subject("接口自动化通知")
|
.subject("接口自动化通知")
|
||||||
.successMailTemplate("api/ScenarioResult")
|
.successMailTemplate("api/ScenarioResultSuccess")
|
||||||
.failedMailTemplate("api/ScenarioResult")
|
.failedMailTemplate("api/ScenarioResultFailed")
|
||||||
.paramMap(paramMap)
|
.paramMap(paramMap)
|
||||||
.event(event)
|
.event(event)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<p>${operator}执行接口用例: ${name}, 结果: ${status}</p>
|
<p>${operator}执行接口用例失败: ${name}</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -6,7 +6,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<p>${operator}执行接口自动化: ${name}, 结果: ${status}</p>
|
<p>${operator}执行接口用例成功: ${name}</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>MeterSphere</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<p>${operator}执行接口自动化失败: ${name}</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>MeterSphere</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<p>${operator}执行接口自动化成功: ${name}</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue