当前位置:网站首页>【pytest】修改allure报告中的logo及参数化
【pytest】修改allure报告中的logo及参数化
2022-06-25 06:39:00 【勒布朗-孟】
文章目录
一、Pytest生成Allure报告-改变报告logo
1、找到Allure安装static目录文件:
D:\python自动化相关资料\pytest\allure-2.13.6\plugins\custom-logo-plugin\static
2、将需要替换的logo文件保存在该目录下:【并命名为allure_logo.png】
3、同时打开目录下styles.css文件:
替换为以下内容:
.side-nav__brand {
background: url(‘allure_logo.png’) no-repeat left center !important;
url(‘allure_logo.png’),就是表示allure报告中所要加载显示的logo
margin-left: 10px;
height: 40px;
background-size: contain !important;
}
.side-nav__brand span{
display: none;
}
.side-nav__brand:after{
content: “8线Test”; #这是的内容对应的是我logo后面的内容,在接下来的截图中可以看到,如果不写这个样式,默认的就是allure
margin-left: 10px;
}
4、在D:\python自动化相关资料\pytest\allure-2.13.6\config目录下的allure.yaml文件下添加
- coustom-logo-plugin
添加完成后保存并再次运行
5、替换成功:
二、如何修改allure报告中用例参数化:
2.1、正常情况下:Allure报告中的参数化:(一长串)
2.2、修改方法:
找到python安装目录下D:\Python\Lib\site-packages\allure_pytest
listener.py文件第95行进行修改:(修改成下图样子)
边栏推荐
- Why is true == "true" true in R- Why TRUE == “TRUE” is TRUE in R?
- 【他字字不提爱,却句句都是爱】
- Want to self-study SCM, do you have any books and boards worth recommending?
- 14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
- How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
- Icon already includes gloss effects
- 终于等到你,小程序开源啦~
- alphassl通配符证书送一个月
- Orcad Schematic常用功能
- 破万,我用了六年!
猜你喜欢
【他字字不提爱,却句句都是爱】
Esp8266 & sg90 steering gear & Lighting Technology & Arduino
[tool sharing] a software that pays equal attention to appearance and skills
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
Design of PWM breathing lamp based on FPGA
LabVIEW jump to web page
48 张图 | 手摸手教你微服务的性能监控、压测和调优
Capable people never complain about the environment!
Expression of fatherly love
Weimeisi new energy rushes to the scientific innovation board: the annual revenue is 1.7 billion, and the book value of accounts receivable is nearly 400million
随机推荐
Jameswebb Space Telescope goes into operation to help study interstellar objects
赚够钱回老家吗
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
Cocos学习日记3——api获取节点、组件
From perceptron to transformer, a brief history of deep learning
TEMPEST HDMI泄漏接收 1
48 张图 | 手摸手教你微服务的性能监控、压测和调优
太上老君的炼丹炉之分布式 Quorum NWR
网络是怎样连接的?
高效探索|ES地理位置查询的一次应用实践
lotus v1.16.0-rc3 calibnet
How to store the directory / hierarchy / tree structure in the database- How to store directory / hierarchy / tree structure in the database?
5g private network market is in full swing, and it is crucial to solve deployment difficulties in 2022
Astronomers may use pulsars to detect merged supermassive black holes
正版photoshop2022购买体验经历分享
线程状态变化涉及哪些常用 API
MySQL(十二)——更改表的备注
Finally, when you open source the applet ~
How to get the difference between two dates rounded to hours
lotus windowPoSt 手动触发时空证明计算