# 接口自动化项目模板 **Repository Path**: xinsiyanhuo/test-interface-auto ## Basic Information - **Project Name**: 接口自动化项目模板 - **Description**: 接口自动化项目学习模板 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2025-03-22 - **Last Updated**: 2025-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, pytest, Requests ## README # 接口自动化项目模板 #### 介绍 接口自动化项目学习模板,能学到: 1 包含pytest使用 2 如何请求接口(接口封装) 3 如何读取yaml数据文件(读取数据文件封装) 4 如何生成测试报告(封装) 5 如何指定要执行的模块运行 6 日志文件封装使用 7 config.py使用、conftest.py使用、python.ini使用 #### 软件架构 python3.10.11 #### 安装教程 1 pip install pytest :单元测试框架
2 pip install requests :接口请求插件
3 pip install allure-pytest :生成测试报告插件
4 用于生成html测试报告:安装allure并解压配置环境变量地址-https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.13.2/
5 pip install pyyaml :读取yaml文件数据插件
#### 使用说明 接口是本地项目运行,所以无法使用,只提供学习框架