在pytest-html页面,显示测试用例日志

安装pytest、pytest-html

配置日志目录:log_file=./logs/pytest.log

配置pytest-html命令和目录:-vs --html=./report/report.html

控制台运行pytest test_allure.py

相关推荐
小二·21 小时前
Python Web 开发进阶实战:全链路测试体系 —— Pytest + Playwright + Vitest 构建高可靠交付流水线
前端·python·pytest
云半S一2 天前
pytest的学习过程
经验分享·笔记·学习·pytest
0和1的舞者2 天前
GUI自动化测试详解(三):测试框架pytest完全指南
自动化测试·python·测试开发·自动化·pytest·测试
我的xiaodoujiao2 天前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 39--生成 Allure测试报告
python·学习·测试工具·pytest
我的xiaodoujiao2 天前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 38--Allure 测试报告
python·学习·测试工具·pytest
旦莫4 天前
Pytest教程:Pytest与主流测试框架对比
人工智能·python·pytest
X1A0RAN4 天前
解决docker容器执行pytest命令报socket.gaierror: [Errno -2] Name or service not known 错误问题
docker·容器·pytest
程序员三藏5 天前
接口自动化测试之 pytest 接口关联框架封装
自动化测试·软件测试·python·测试工具·测试用例·pytest·接口测试
旦莫6 天前
怎么才能算对自动化测试框架二次开发(以Pytest为例)
python·测试开发·pytest·ai测试