1、安装allure
2、进入
D:\allure-2.13.1\config(D:\allure-2.13.1是自己allure的安装路径)
3、在allure.yml添加
- custom-logo-plugin
如:
plugins:
- junit-xml-plugin
- xunit-xml-plugin
- trx-plugin
- behaviors-plugin
- packages-plugin
- screen-diff-plugin
- xctest-plugin
- jira-plugin
- xray-plugin
- custom-logo-plugin
4、进入
D:\allure-2.13.1\plugins\custom-logo-plugin\static(D:\allure-2.13.1是自己allure的安装路径)
5、将自己需要展示的logo图片放到这个目录,例如piaoliang.png
6、编辑styles.css
.side-nav__brand {
background: url(‘piaoliang.png’) no-repeat left center !important;
padding-left: 180px !important;
margin-left: 10px;
}
注:logo展示样式可自己调试
6.保存,运行测试脚本,查看报告