allure报告--定制logo
1.allure安装目录下找到config文件,修改allure.yml,增加 - custom-logo-plugin
2.将logo图片放到allure-2.14.0\plugins\custom-logo-plugin\static目录下,修改styles.css,将url修改为自己logo文件名
3.运行测试脚本生成报告,可看到allure报告已经更换为定制的logo
4.修改styles.css文件,调整图片样式
.side-nav__brand { background:url('logo.png') no-repeat left center !important; margin-left: 15px; height: 55px; width: 150px; background-size: contain !important; } .side-nav__brand-text { display: none; }