当前位置:网站首页>[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 )
边栏推荐
- Wow, it's so rich.
- MySQL (12) -- Notes on changing tables
- 【批处理DOS-CMD命令-汇总和小结】-外部命令-cmd下载命令、抓包命令(wget)
- 【UVM入門 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常規方法、寄存器模型的應用場景
- Keepalived monitors the process and automatically restarts the service process
- Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
- How do I get red green blue (RGB) and alpha back from a UIColor object?
- Google extender address
- Hanxin's trick: consistent hashing
- Tempest HDMI leak receive 1
猜你喜欢

活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中

We are different

Cocos learning diary 3 - API acquisition nodes and components

The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse

Event registration Apache pulsar x kubesphere online meetup hot registration

Genuine photoshop2022 purchase experience sharing
![[Introduction aux uvm== > Episode 9] ~ modèle de registre, intégration du modèle de registre, méthode conventionnelle du modèle de registre, scénario d'application du modèle de registre](/img/c0/b373a3f0e0c7b35f42c8a28b4d4f74.png)
[Introduction aux uvm== > Episode 9] ~ modèle de registre, intégration du modèle de registre, méthode conventionnelle du modèle de registre, scénario d'application du modèle de registre

Escape analysis of 982 golang

正版photoshop2022购买体验经历分享

终于等到你,小程序开源啦~
随机推荐
Several good weather plug-ins
Cocos learning diary 3 - API acquisition nodes and components
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
【他字字不提爱,却句句都是爱】
We are different
MySQL(十二)——更改表的备注
Advanced mathematics foundation_ Parity of functions
How to store the directory / hierarchy / tree structure in the database- How to store directory / hierarchy / tree structure in the database?
shell 上下两行合并成一行
有了 MySQL 为什么要用 NoSQL?
Shell命令学习
Love Terminator
深入解析 Apache BookKeeper 系列:第三篇——读取原理
Which securities company do you want to buy stocks to open an account faster and safer
用动图讲解分布式 Raft
14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
lotus v1.16.0-rc3 calibnet
诸葛亮 VS 庞统,拿下分布式 Paxos
College entrance examination voluntary filling, why is the major the last consideration?
网络是怎样连接的?