zoukankan      html  css  js  c++  java
  • [Jenkins] 执行SoapUI的task,设置邮件内容为HTML+CSS

    设置邮件内容:Default Content

    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Project : </span>
    <span style="font-family:verdana;font-size:16px;color:black;">PA_Regression_Accuracy_Static</span> <BR> <BR>
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Build Status : </span>
    <span style="font-family:verdana;font-size:16px;color:red;">${BUILD_STATUS}</span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Automation Tool : </span>
    <span style="font-family:verdana;font-size:16px;color:black;">SoapUI</span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">TP vs Live Test Results : </span>
    <span style="font-family:verdana;font-size:16px;color:black;"><a href=http://szotwin2k801/PA/>TP vs Live Test Results</a></span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Links in SoapUI Test Results : </span>
    <span style="font-family:verdana;font-size:16px;color:black;"><a href=https://jenkins.morningstar.com/job/DO/view/DO%20Automation/job/Automation_SoapUI_PA_Regression_Accuracy_Static/ws/result-output//overview-summary.html>SoapUI Test Results</a></span> <BR> <BR>
    
    <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
    ${FILE,path="result-output/overview-summary.html"}
    
    <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
    ${FILE,path="result-output/alltests-fails.html"}
    

    设置邮件格式:Content Type 为 HTML(text/html)

    将CSS作为附件 : Attachments 为 result-output/*.css

  • 相关阅读:
    使用Apache CXF开发WebServices服务端、客户端
    javascript 获取项目根路径
    js密码的校验(判断字符类型、统计字符类型个数)
    JS正则表达式基础总结
    mysql之视图
    mysql之触发器trigger(1)
    mysql之触发器before和after的区别(2)
    MySQL之左连接与右连接
    @Resource和@Autowired的区别
    java计时器
  • 原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/4682177.html
Copyright © 2011-2022 走看看