执行SoapUI的task,里面包含多个Project,发出的报告也要求包含多个Project,设置邮件内容为HTML+CSS
如何保证样式在邮件内容中不丢失
<link title="Style" type="text/css" rel="stylesheet" href="stylesheet.css"> <span style="font-family:verdana;color:black;font-weight:bold;">Project : </span> <span style="font-family:verdana;color:black;">DO_IT Maitenance</span> <BR> <BR> <span style="font-family:verdana;color:black;font-weight:bold;">Build Status : </span> <span style="font-family:verdana;color:red;">${BUILD_STATUS}</span> <BR> <BR> <span style="font-family:verdana;color:black;font-weight:bold;">Automation Tool : </span> <span style="font-family:verdana;color:black;">SoapUI</span> <BR> <BR> <span style="font-family:verdana;color:black;font-weight:bold;">SoapUI Test Results : </span> <span style="font-family:verdana;color:black;"><a href=https://jenkins.morningstar.com/job/DO/view/DO%20Automation/job/Automation_SoapUI_ITMaintenance_All/ws/result-output/index.html>SoapUI Test Results</a></span> <BR> <BR> <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 /> ${FILE,path="result-output/AA_ITMaintenance/package-summary.html"} <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 /> ${FILE,path="result-output/PA_ITMaintenance/package-summary.html"} <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 /> ${FILE,path="result-output/alltests-fails.html"}
时间: 2024-10-10 13:31:15