conftest其实是一种补充测试框架的手段,一般来说,我们可以在这个文件里面做两种事情:1、使用pytest预设的一些钩子来补充你脚本的能力2、我们可以在这里边编写夹具(fixtrue)来实现case中变量复用的功能 未完待续本栏目推荐文章pytest框架中conftest.py的作用【pytest】基于钩子函数与conftest实现多套环境切换Conftest.py+fixture+yield 实现⽤例前置后置pytest框架-conftest文件conftest.py是什么?该怎么用?conftestPlayWright(二十)- Pytest之conftest文件QA|conftest使用了fixture但是没生效的原因|PytestPytest - Fixture(12) - 配置文件conftest.py入门8-Pytest部分测试用例的前后置(fixture)(2-conftest.py结合)conftest框架conftest作用pytest 框架conftest文件pytest conftest fixture文件pytest conftest fixture yield py 钩子 多套 函数conftest conftest py playwright conftest文件pytest 全局conftest pytest py conftest fixture部分pytest conftest原因fixture pytest