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. 提问技巧
相关推荐
ThreeAu.9 小时前
pytest 实战:用例管理、插件技巧、断言详解
python·单元测试·pytest·测试开发工程师
我的xiaodoujiao17 小时前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 18--测试框架Pytest基础 2--插件和参数化
python·学习·测试工具·pytest
小小测试开发1 天前
pytest 库用法示例:Python 测试框架的高效实践
开发语言·python·pytest
know__ledge1 天前
Pytest+requests进行接口自动化测试8.0(Allure进阶 + 文件上传接口 + 单接口多用例)
pytest
川石课堂软件测试2 天前
CSS中常用的几种定位。
开发语言·css·python·网络协议·http·html·pytest
啊森要自信3 天前
【GUI自动化测试】Python 自动化测试框架 pytest 全面指南:基础语法、核心特性(参数化 / Fixture)及项目实操
开发语言·python·ui·单元测试·pytest
啊森要自信3 天前
【GUI自动化测试】YAML 配置文件应用:从语法解析到 Python 读写
android·python·缓存·pytest·pip·dash
我的xiaodoujiao4 天前
从 0 到 1 搭建完整 Python 语言 Web UI自动化测试学习系列 17--测试框架Pytest基础 1--介绍使用
python·学习·测试工具·pytest
程序员杰哥5 天前
Pytest与Unittest测试框架对比
自动化测试·软件测试·python·测试工具·测试用例·excel·pytest
软件测试小仙女5 天前
Pytest参数化实战:高效测试API接口
软件测试·测试开发·测试工具·pytest·接口测试·api·参数化