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. 提问技巧
相关推荐
IT求学人5 小时前
pytest运行用例的常见方式及参数
pytest
开源优测1 天前
什么是pytest.ini及如何在Pytest中应用以提升配置效率
pytest
摸鱼仙人~2 天前
ImportError: cannot import name ‘FixtureDef‘ from ‘pytest‘
conda·pytest·fastapi
唐古乌梁海2 天前
【pytest-jira】自动化用例结合jira初版集成思路
pytest·jira
小码哥说测试4 天前
高效执行自动化用例:分布式执行工具pytest-xdist实战!
自动化测试·软件测试·功能测试·jmeter·pytest·postman·测试工程师
予早4 天前
pytest asyncio 支持插件 pytest-asyncio
pytest
爱学测试的雨果6 天前
Pytest自动化测试框架关联/参数化实战
前端·pytest
测试杂货铺6 天前
Pytest快速入门
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·pytest