pytest 教程合集

pytest文档1-环境准备与入门

pytest文档2-用例运行规则

pytest文档3-pycharm运行pytest

pytest文档4-测试用例setup和teardown

pytest文档5-fixture之conftest.py

pytest文档6-fixture之yield实现teardown

pytest文档7-生成html报告

pytest文档8-html报告报错截图+失败重跑

pytest文档9-参数化parametrize

pytest文档10-命令行传参addoption

pytest文档11-assert断言

pytest文档12-skip跳过用例

pytest文档13-allure2生成html报告(史上最详细)

pytest文档14-函数传参和fixture传参数request

pytest文档15-使用自定义标记mark

pytest文档16-标记失败xfail

pytest文档17-fixture之autouse=True

pytest文档18-配置文件pytest.ini

pytest文档19-doctest测试框架

pytest文档20-pytest-html报告优化

pytest文档21-pytest-html报告优化

pytest文档22-pytest分布式执行(pytest-xdist)

python文档23-fixture作为参数传入,error和failed区别

python文档24-使用多个fixture和fixture互相调用

python文档25-fixture的作用范围(scope)

pytest文档26-conftest.py作用范围

pytest文档27-运行上次失败用例(--lf 和 --ff)

pytest文档28-重复执行用例(pytest-repeat)

pytest文档29-allure-pytest(最新最全,保证能搞成功!)

pytest文档30-功能用例与自动化用例完美对接(allure)

pytest文档31-allure标记用例级别severity

pytest文档32-allure描述用例详细讲解

pytest文档33-Hooks函数获取用例执行结果(pytest_runtest_makereport)

pytest文档34-Hooks函数改变用例执行顺序(pytest_collection_modifyitems)

pytest文档35-Hooks函数之统计测试结果(pytest_terminal_summary)

pytest文档36-断言失败后还能继续执行pytest-assume

pytest文档37-自定义用例顺序(pytest-ordering)

pytest文档38-allure.setp添加测试用例步骤

pytest文档39-参数化(parametrize)结合allure.title()生成不同标题报告

pytest文档40-pytest.ini配置用例查找规则(面试题)

pytest文档41-参数化 ids 用例描述为中文时控制台输出unicode

关注公众号:  从零开始学自动化测试, 即可学习。

猜你喜欢

转载自blog.csdn.net/zhusongziye/article/details/106858232