当前位置:网站首页>[pytest] modify the logo and parameterization in the allure Report
[pytest] modify the logo and parameterization in the allure Report
2022-06-25 07:27:00 【LeBron Meng】
List of articles
One 、Pytest Generate Allure The report - Change the report logo
1、 find Allure install static Directory file :
D:\python Automation related materials \pytest\allure-2.13.6\plugins\custom-logo-plugin\static
2、 Will need to be replaced logo The files are saved in this directory :【 And named it allure_logo.png】

3、 At the same time, open the directory styles.css file :
Replace with the following :
.side-nav__brand {
background: url(‘allure_logo.png’) no-repeat left center !important;
url(‘allure_logo.png’), That is to say allure To load the display in the report logo
margin-left: 10px;
height: 40px;
background-size: contain !important;
}
.side-nav__brand span{
display: none;
}
.side-nav__brand:after{
content: “8 Line Test”; # This is the content corresponding to me logo Later , You can see in the following screenshot , If you don't write this style , The default is allure
margin-left: 10px;
}
4、 stay D:\python Automation related materials \pytest\allure-2.13.6\config In the catalog allure.yaml Add... Under the file
- coustom-logo-plugin
Save and run again after adding
5、 Replacement successful :

Two 、 How to modify allure Parameterization of use cases in reports :
2.1、 Under normal circumstances :Allure Parameterization in reports :( A long list of )

2.2、 Modification method :
find python Installation directory D:\Python\Lib\site-packages\allure_pytest
listener.py Document No 95 Line to modify :( Change to the following figure )
边栏推荐
- lotus v1.16.0-rc3 calibnet
- LabVIEW generate application (exe) and installer
- Shell命令学习
- Conditional grouping with $exists inside $cond
- Genuine photoshop2022 purchase experience sharing
- 关于硬件问题造成的MCU死机,过来人简单的谈一谈
- How do I get red green blue (RGB) and alpha back from a UIColor object?
- Flexbox on ie11: stretching images for no reason- Flexbox on IE11: image stretched for no reason?
- N – simple encoding
- Event registration | Apache pulsar x kubesphere online meetup is coming
猜你喜欢

LabVIEW jump to web page

赚够钱回老家吗

What is the new business model of Taishan crowdfunding in 2022?

用太极拳讲分布式理论,真舒服!

正版photoshop2022购买体验经历分享

从感知机到Transformer,一文概述深度学习简史

Escape analysis of 982 golang

One year's time and University experience sharing with CSDN

Authentique Photoshop 2022 expérience d'achat partage
![[introduction to UVM== > episode_9] ~ register model, integration of register model, general methods of register model, application scenarios of register model](/img/c0/b373a3f0e0c7b35f42c8a28b4d4f74.png)
[introduction to UVM== > episode_9] ~ register model, integration of register model, general methods of register model, application scenarios of register model
随机推荐
The principle of Zener diode, what is its function?
Harmony food menu interface
lotus windowPoSt 手动触发时空证明计算
【C语言】给字符串增加分隔符
太上老君的炼丹炉之分布式 Quorum NWR
N – simple encoding
Pratique de gestion hiérarchique basée sur kubesphere
【批处理DOS-CMD命令-汇总和小结】-外部命令-cmd下载命令、抓包命令(wget)
Efficient exploration | an application practice of ES geographical location query
How to recover redis data from snapshot(rdb file) copied from another machine?
哇哦,好丰富呀。
MySQL (12) -- Notes on changing tables
lotus v1.16.0-rc2 Calibration-net
威迈斯新能源冲刺科创板:年营收17亿 应收账款账面价值近4亿
Shandong finds clean energy that can be used by China for 3800 years? You should know the truth first
[Yu Yue education] engineering testing technology reference of Wenhua University
1W字|40 图|硬核 ES 实战
有了 MySQL 为什么要用 NoSQL?
How to get the difference between two dates rounded to hours
[Shangshui Shuo series] day 5