当前位置:网站首页>Allure use
Allure use
2022-07-28 08:24:00 【qq_ thirty-three million eight hundred and eight thousand four 】
One Configuration and use allure

Two Generate html The report
Report successfully generated to allure-report
(venv) D:\pyscript\tangseng\Interface_AutoTest\report>
3、 ... and Code
import requests
import yaml
import pytest
import allure
# @allure.step(" Class level test steps ")
@allure.feature(" I am a first-class demand ")
class Testclass():
@allure.story(" Secondary requirements 1")
@allure.severity(allure.severity_level.CRITICAL)
def test01(self):
allure.attach(" This is a plain text 1",name=" Text information 1",attachment_type=allure.attachment_type.TEXT)
print("in test01-1")
allure.attach(" This is a plain text 2", name=" Text information 2", attachment_type=allure.attachment_type.TEXT)
print("in test01-2")
assert 1
@allure.story(" Secondary requirements 2")
@allure.severity(allure.severity_level.CRITICAL)
def test02(self,f_module):
with allure.step(" First step "):
print("in test1")
allure.attach.file("./1.jpeg",name=" picture ",attachment_type=allure.attachment_type.JPG)
with allure.step(" The second step "):
print("in test2")
with allure.step(" The first 3 Step "):
print("in test3")
assert 1
@allure.story(" Secondary requirements 1")
@allure.issue('https://www.sohu.com','bug name ')
@allure.testcase('www.baidu.com',' Test case name ')
@allure.link("www.qq.com",name=" Tencent homepage ")
@allure.severity(allure.severity_level.CRITICAL)
@allure.title(' new title ')
@allure.description("<font color='red'> Describe the first line </font><Br/> Describe the second line <Br/> Describe the third line ")
def test03(self):
allure.attach("<body> This is a web page </body>", name="HTML Test module ", attachment_type=allure.attachment_type.HTML)
print("in test03")
assert 1
if __name__ == "__main__":
pytest.main()

边栏推荐
- DNA deoxyribonucleic acid modified platinum nanoparticles ptnps DNA | scientific research reagent
- QT uses semaphores to control threads (qsemaphore)
- Pytorch的冻结以及解冻
- 2022年湖南工学院ACM集训第五次周测AD题题解
- PCB design skills of EMC
- Copper indium sulfide CuInSe2 quantum dots modified DNA (deoxyribonucleic acid) DNA cuinse2qds (Qiyue)
- CarSim simulation quick start (XI) - Driver Model (1)
- GD32使用ST的HAL库和GD官方库的一些体会
- 【活动报名】云原生技术交流 Meetup,8 月 6 日广州见
- Information system project manager must recite the core examination site (41) risk management plan
猜你喜欢

Qt使用信号量控制线程(QSemaphore)
![Redis of non relational database [detailed setup of redis cluster]](/img/0b/bd05fb91d17f6e0dc9f657a4047ccb.png)
Redis of non relational database [detailed setup of redis cluster]

非关系型数据库之Redis【redis集群详细搭建】

【花书笔记】 之 Chapter01 引言

Chairman tree review

Melt cloud x chat, create a "stress free social" habitat with sound
![[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial](/img/67/5373c45716ade5fbd1d3a980d8e5da.png)
[chart component kit] Shanghai daoning provides developers with steema download, trial and tutorial

记录一次mycat连接Communications link failure问题解决

Huawei Senior Engineer -- BGP routing filtering and community attributes

Near infrared two region agzs quantum dots wrapped deoxyribonucleic acid dna|dna agzsqds (Qiyue)
随机推荐
Google and Stanford jointly issued a document: why do we have to use large models?
Will ordinary browsers disclose information? How to protect privacy by using a secure browser?
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)
@The role of documented
EMC EMI磁珠的特性
Copper indium sulfide CuInSe2 quantum dots modified DNA (deoxyribonucleic acid) DNA cuinse2qds (Qiyue)
Rk3568 development board installation system startup
2022/7/27 examination summary
Tensorflow uses deep learning (II)
Talk about synchronous, asynchronous, blocking and non blocking
Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots
GD32使用ST的HAL库和GD官方库的一些体会
快速搭建DMHS DM之间双向同步
任务管理器中,显示的CPU速度大于它的最大速度【主频】
记录一次mycat连接Communications link failure问题解决
In QT multithreading, in which thread does the slot function perform analysis
Can the variable modified by final be modified
使用FFmpeg来批量生成单图+单音频的一图流视频
DNA modified osmium OS nanoparticles osnps DNA modified iridium nanoparticles irnps DNA
Chairman tree review