当前位置:网站首页>[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-rc2 Calibration-net
- TEMPEST HDMI泄漏接收 1
- 深入解析 Apache BookKeeper 系列:第三篇——读取原理
- Alphassl wildcard certificate for one month
- Several good weather plug-ins
- [he doesn't mention love, but every word is love]
- Conditional grouping with $exists inside $cond
- Shell命令学习
- 1W字|40 图|硬核 ES 实战
- [C language] add separator to string
猜你喜欢
The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse
Hanxin's trick: consistent hashing
Several schemes of traffic exposure in kubernetes cluster
LabVIEW jump to web page
诸葛亮 VS 庞统,拿下分布式 Paxos
Selection of Hongmeng page menu
Event registration Apache pulsar x kubesphere online meetup hot registration
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
稳压二极管的原理,它有什么作用?
5g private network market is in full swing, and it is crucial to solve deployment difficulties in 2022
随机推荐
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
深入解析 Apache BookKeeper 系列:第三篇——读取原理
lotus v1.16.0-rc2 Calibration-net
太上老君的炼丹炉之分布式 Quorum NWR
3632. Binary sum
From perceptron to transformer, a brief history of deep learning
[introduction to UVM== > episode_9] ~ register model, integration of register model, general methods of register model, application scenarios of register model
lotus v1.16.0-rc3 calibnet
New research shows that human ability to make decisions and process information does not decline until the age of 60
Is it possible to use Jasmine's toHaveBeenCalledWith matcher with a regular expression?
alphassl通配符证书送一个月
[C language] add separator to string
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
Ltpowercad II and ltpowerplanner III
The upper and lower lines of the shell are merged into one line
用动图讲解分布式 Raft
[2022 dark horse programmer] SQL optimization
全局变量&局部变量
分布式锁中的王者方案 - Redisson
[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