pytest
summeryan2011
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
requests
data = {}json=data)原创 2022-11-08 20:21:34 · 681 阅读 · 1 评论 -
PyCharm ModuleNotFoundError: No module named ‘pytest‘
PyCharm中import pytest,运行提示:ModuleNotFoundError: No module named 'pytest'进入 File->Setting->项目名称->Python Interpreter,解释器列表没有pytest。在终端输入 pip install pytest 进行安装,安装成功,列表中显示pytest,能正常run。Pycharm里用的解释器可能有多个,当前使用的可能没有按照pytest模块。在Terminal中输入pytest能正常运行用例。原创 2022-09-21 23:18:32 · 2617 阅读 · 0 评论 -
pytest常用参数
-k 运行匹配给定子字符串表达式的类、方法、functionE:\bopytest 的目录2022/02/18 10:31 <DIR> .2022/02/18 10:31 <DIR> ..2022/02/18 10:31 <DIR> .pytest_cache2022/02/17 18:54 <DIR> ch1>pytest -k ...原创 2022-02-18 11:44:24 · 1603 阅读 · 1 评论 -
allure 安装
pip install allure-pytest原创 2021-12-03 15:03:41 · 8263 阅读 · 0 评论 -
pytest安装
1.安装python,添加环境变量:高级系统设置-环境变量-系统变量,path添加安装目录2. python自带pip,添加环境变量,path添加pip.exe所在目录3.pip install -U pytest 安装pytest4.验证是否安装成功pytest -V5.测试文件以test_开头,进入到测试文件所在目录,运行py.test...原创 2021-07-22 11:48:47 · 410 阅读 · 1 评论
分享