可通过电子邮件发送的报告未在Gmail中显示背景颜色(emailable report not showing background

编程入门 行业动态 更新时间:2024-10-23 07:31:33
可通过电子邮件发送的报告未在Gmail中显示背景颜色(emailable report not showing background-color in gmail)

我使用可编辑的电子邮件通知插件在Jenkins的每次构建之后创建了发送电子邮件。 在邮件正文中,我添加了maven surefire报告生成的emailable-report.html。 我在gmail中发现了这个报告的外观问题 - 尽管有前景,但它根本没有显示背景颜色。

展望中的外观报告:

gmail中的外观报告:

所以问题是如何在emailable-report.html中修改CSS样式以获得正确的视图? 我应该使用TestNG Listener和IReporter自定义报告吗?

I have created sending email after each build in Jenkins using editable email notification plugin. In body of mail I have added emailable-report.html generated by maven surefire report. I have discovered problem with appearance of this report in gmail - it not showing background-color at all in spite of outlook.

Appearance report in outlook:

Appearance report in gmail:

So the question is how can I modify CSS styles in emailable-report.html for correct view? Should I customize my report using TestNG Listener and IReporter?

最满意答案

我想有人会对此感兴趣。 Gmail客户端不接受嵌入式样式。 我发现决定使用IReporter和ItestNGListener实时生成html报告。 这是一个很好的工作示例https://github.com/djangofan/testng-custom-report-example感谢djangofun

I think someone would be interested in that. Gmail client does not accept embedded styles. I have found decision move forward with generation html report in real time with IReporter and ItestNGListener. Here is nice work example https://github.com/djangofan/testng-custom-report-example thanks to djangofun

更多推荐

本文发布于:2023-08-07 12:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464233.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可通过   邮件发送   颜色   背景   报告

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!