当前位置:网站首页>6.pytest生成allure报告
6.pytest生成allure报告
2022-07-29 04:18:00 【八千流。】
pytest生成allure报告
1.下载allure
- mac下载方式:
brew install allure
2.python环境安装allure-pytest
pip install allure-pytest安装allure-pytest包pip list查看当前环境安装的哪些包,可查看到刚刚安装的allure-pytest包
3.执行命令,将用例执行结果生成allure的json数据集
pytest --alluredir ./reports/result --clean-alluredir--alluredir ./reports/result指定报告的目录路径--clean-alluredir如果已经存在报告,就先清空它
4.终端执行命令,生成指定html报告
allure generate reports/result -o reports/html --clean- allure generate 使用生成测试结果数据 -o 生成报告的路径 --clean
--clean表示:如果已经存在生成报告路径文件夹时,再次使用会提示添加–clean参数来重写
5.使用浏览器打开allure报告


边栏推荐
- Pat a1069/b1019 the black hole of numbers
- Don't the JDBC SQL connector of the big guys Flink now support all databases, such as vertica?
- Sequence list and linked list
- [kvm] install KVM
- 不会就坚持66天吧 权重生成随机数
- C语言:枚举知识点总结
- 开课!看smardaten如何分解复杂业务场景
- Methods of using multiple deformations on an element
- Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
- [material delivery UAV] record (ROS + Px4 + yolov5 + esp8266 + steering gear)
猜你喜欢

No, just stick to it for 64 days. Find the insertion location

MySQL gets the maximum value record by field grouping

Design of environment detection system based on STM32 and Alibaba cloud

Common components of solder pad (2021.4.6)

不会就坚持69天吧 合并区间

Applet: Area scrolling, pull-down refresh, pull-up load more

通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值

信号处理中的反傅里叶变换(IFFT)原理

Won't you just stick to 62 days? Sum of words

Copy products with one click from Taobao, tmall, 1688, wechat, jd.com, Suning, taote and other platforms to pinduoduo platform (batch upload baby details Interface tutorial)
随机推荐
Applet: Area scrolling, pull-down refresh, pull-up load more
不会就坚持66天吧 权重生成随机数
Introduction and examples of parameters in Jenkins parametric construction
[kvm] create virtual machine from kickstart file
Not for 63 days. The biggest XOR
14.haproxy+keepalived负载均衡和高可用
Implementation of jump connection of RESNET (pytorch)
"Weilai Cup" 2022 Niuke summer multi school training camp 1 J serval and essay (heuristic merger)
Value transmission and address transmission of C language, pointer of pointer
Differences and principles of bio, NiO and AIO
安装postgis时报找不到“POSTGIS_VERSION”这个函数
通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
The return value of the function is the attention of the pointer, the local variables inside the static limit sub function, and how the pointer to the array represents the array elements
如何查询版本的提交号
Pat a1069/b1019 the black hole of numbers
优炫数据库有办法查到主集群每天传给备集群的日志量吗?
15.federation
Leftmost prefix principle of index
rman不标记过期备份
Machine vision Series 1: Visual Studio 2019 dynamic link library DLL establishment