随笔分类 -  pytest

pytest自带测试报告汉化文件
pytest之fixture
摘要:pytest使用规则: 1.文件开头用test_开头 2.测试类用Test开头 3.测试函数以test_开头 4.断言用assert 固定装置:fixture(固定代码) 1.做测试前后的初始化设置,如测试数据准备,链接数据库,打开浏览器等 2.测试用例前置条件可以用fixture实现 3.像uni 阅读全文
posted @ 2022-04-08 17:18 zfj822 阅读(101) 评论(0) 推荐(0)
pytest测试报告allure
摘要:1.python安装allure插件,pip install allure-pytest(PS:安装完成之后,打开一个你之前写的pytest脚本,看能不正常使用,如果报错:AttributeError: module 'allure' has no attribute 'severity_level 阅读全文
posted @ 2020-10-10 11:29 zfj822 阅读(170) 评论(0) 推荐(0)
pytest-html汉化
摘要:汉化文件在,替换pytest-html即可,添加新随笔 阅读全文
posted @ 2020-05-25 15:16 zfj822 阅读(243) 评论(0) 推荐(0)