测试老宅男扶摇

导航

2024年1月5日 #

Pytest07-pytest.ini配置文件

摘要: 1.pytest配置文件 固定名称:pytest.ini 作用域:当前目录及子目录 具体配置功能见下: [pytest] # 01 把命令行参数自动添加到这里 addopts = -s -v --html=./report/report2023.html # 02 指定执行的用例的目录 testpa 阅读全文

posted @ 2024-01-05 16:30 测试老宅男扶摇 阅读(88) 评论(0) 推荐(0) 编辑

Pytest06-pytest的setup和teardown函数

摘要: 高清B站视频链接 pytest的setup和teardown函数 用例前置和后置 # 类外面 setup_module/teardown_module:在当前文件中,所有的用例执行之前以及之后执行 setup_function/teardown_function: 在每个测试函数之前以及之后执行 s 阅读全文

posted @ 2024-01-05 15:22 测试老宅男扶摇 阅读(17) 评论(0) 推荐(0) 编辑