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. 提问技巧
相关推荐
一个处女座的测试2 小时前
Python语言+pytest框架+allure报告+log日志+yaml文件+mysql断言实现接口自动化框架
python·mysql·pytest
思则变3 天前
[Pytest][Part 1]Pytest 自动化测试框架
pytest
思则变5 天前
[Pytest] [Part 2]增加 log功能
开发语言·python·pytest
思则变5 天前
[Pytest][Part 3]检测python package状态
pytest
cooldream200919 天前
pytest 框架详解与实战指南
pytest·测试
慕城南风19 天前
【pytest进阶】Pytest之conftest详解
pytest
编程小白gogogo20 天前
AI自动化测试速成(Pytest框架)
pytest
慕城南风20 天前
【pytest进阶】pytest详解及进阶使用
linux·服务器·pytest
Tom Boom1 个月前
Pytest断言全解析:掌握测试验证的核心艺术
自动化测试·python·测试开发·pytest