随笔分类 - pytest
摘要:写脚本过程中发现,需要设置pytest的日志输出级别,在pytest-html测试报告上才会显示铺捉到并显示相应的日志内容,具体方法如下 参考地址:https://docs.pytest.org/en/stable/logging.html pytest --log-format="%(asctim
阅读全文
摘要:from datetime import datetime from py.xml import html import pytest import time import pytest from py.xml import html def pytest_html_report_title(rep
阅读全文
摘要:第一、pytest-html执行命令总结: pytest test_case.py --html=report.html --self-contained-html 直接html独立显示pytest test_case.py --html=report.html 包含assets样式文件,htmL显
阅读全文