摘要: pytest框架默认的测试用例识别规则,参考https://www.cnblogs.com/Xiaojiangzi/p/13497432.html 如果想要改变默认的识别规则,可以通过pytest.ini文件来定义: 目录结构: #pytest.ini [pytest] python_files = 阅读全文
posted @ 2020-08-25 21:30 沧海1024 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 一、不同文件的执行顺序 按照目录文件名顺序执行,目录结构如下: 用例执行顺序: 二、同一文件下的执行顺序 按照用例顺序从上到下执行,示例代码: import pytest class TestF(): def testz(self): print('testz') def test3(self): 阅读全文
posted @ 2020-08-25 15:55 沧海1024 阅读(3406) 评论(0) 推荐(0) 编辑
摘要: 环境:wind7 64位,python3.8 在执行pip install lxml的时候,报错Could not find function xmlCheckVersion in library libxml2 解决方法: 在https://www.lfd.uci.edu/~gohlke/pyth 阅读全文
posted @ 2020-08-25 15:42 沧海1024 阅读(2079) 评论(0) 推荐(0) 编辑