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. 提问技巧
相关推荐
2601_962387822 天前
web自动化测试实战教程【selenium/unittest/pytest】【共193课
selenium·pytest·devops·web自动化测试·unittest
weixin_440730502 天前
使用pytest中方法控制执行步骤(test_begin.py、test_end.py,@pytest.mark.run(order=1))
开发语言·python·pytest
2601_962297252 天前
Python、Pytest、Allure、Selenium和Jenkins实现自动化测试集成实例
python·selenium·jenkins·pytest·allure
2601_962077603 天前
从零搭建Python接口自动化测试框架:pytest+requests实战指南
python·pytest·接口自动化·requests·框架搭建
weixin_440730503 天前
pytest结合allure生成html测试报告(step、story、severity、screenshot)
前端·html·pytest·allure报告
拜托多多指教3 天前
【Pytest框架学习】分层架构
python·pytest
2601_962299883 天前
python脚本如何单元测试
python·单元测试·pytest·unittest·mock对象
Tizzy JJ4 天前
Python + pytest 接口自动化测试框架实战:从零搭建企业级项目骨架
开发语言·python·pytest
Tizzy JJ4 天前
接口自动化测试实战:如何围绕真实业务场景设计高质量用例
python·自动化·pytest
测试老哥5 天前
Pytest 之assert断言的使用
自动化测试·软件测试·python·测试工具·测试用例·pytest·接口测试