当前位置:网站首页>[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 )
边栏推荐
- 全局变量&局部变量
- Practice of hierarchical management based on kubesphere
- Sqlmap advanced use – cookies
- From perceptron to transformer, a brief history of deep learning
- [XXL job] the pond is green and the wind is warm. I remember that Yu Zhen first met
- 从感知机到Transformer,一文概述深度学习简史
- [Shangshui Shuo series] day 4
- The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
- Jameswebb Space Telescope goes into operation to help study interstellar objects
- 诸葛亮 VS 庞统,拿下分布式 Paxos
猜你喜欢

Several schemes of traffic exposure in kubernetes cluster

How is the network connected?

Pratique de gestion hiérarchique basée sur kubesphere

From perceptron to transformer, a brief history of deep learning

Why use NoSQL with MySQL?

破万,我用了六年!
![[2022 dark horse programmer] SQL optimization](/img/68/92ee1ff47428e17aca0feb0e33382e.png)
[2022 dark horse programmer] SQL optimization

1W字|40 图|硬核 ES 实战

稳压二极管的原理,它有什么作用?

Sqlmap advanced use – cookies
随机推荐
基于 KubeSphere 的分级管理实践
How to get the difference between two dates rounded to hours
I have used it for six years!
有了 MySQL 为什么要用 NoSQL?
Loopholes in the missed scanning system of Lvmeng and its repair scheme
100 times larger than the Milky way, Dutch astronomers found mysterious objects in deep space
14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
[tool sharing] a software that pays equal attention to appearance and skills
Ppt template of small fresh open class education courseware
The upper and lower lines of the shell are merged into one line
【UVM入门 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常规方法、寄存器模型的应用场景
Kubernetes 集群中流量暴露的几种方案
分布式锁中的王者方案 - Redisson
Why use NoSQL with MySQL?
Alphassl wildcard certificate for one month
[C language] add separator to string
正版photoshop2022购买体验经历分享
Advanced mathematics foundation_ Parity of functions
网络是怎样连接的?