02、pytest环境准备

工具准备

  1. 下载Python------python官网下载:https://www.python.org/
  2. 下载PyCharm------pycharm官网下载:https://www.jetbrains.com.cn/en-us/pycharm/
  3. 参考文档------pytest官方文档:https://docs.pytest.org/en/7.4.x/
  4. 一个方便好用的office库------python-office官网文档:http://www.python-office.com/

参考视频

安装与验证

  1. python一键安装到底
shell 复制代码
# 验证安装完成
python
  1. pycharm一键安装到底
shell 复制代码
# 验证安装完成
打开并新建工程
  1. 安装pytest
shell 复制代码
# 安装命令
pip install -U pytest
shell 复制代码
# 验证安装
pip show pytest
  1. 安装python-office
shell 复制代码
# 安装python-office
pip install -U python-office
shell 复制代码
# 验证安装
pip show python-office

注意事项

  1. 注意版本
  2. 注重实操
  3. 提问技巧
相关推荐
XYiFfang6 天前
【Pytest】解决Pytest中Teardown钩子的TypeError:实例方法与类方法的调用差异
python·pytest
Kingairy8 天前
Pytest 插件:pytest_runtest_protocol
python·pytest
AIZHINAN8 天前
Pytest 插件介绍和开发
测试工具·pytest·插件开发
灰阳阳10 天前
替身演员的艺术:pytest-mock 从入门到飙戏
自动化测试·python·pytest·unit testing·pytest-mock
年年测试14 天前
Playwright与PyTest结合指南
pytest
focksorCr14 天前
pytest 并发执行用例(基于受限的测试资源)
python·pytest
律品19 天前
pytest的前置与后置
开发语言·python·pytest
测试老哥20 天前
pytest+requests+allure自动化测试接入Jenkins学习
自动化测试·软件测试·学习·测试工具·职场和发展·jenkins·pytest
丿罗小黑20 天前
Pytest项目_day20(log日志)
pytest