# 接口自动化测试框架 **Repository Path**: tangjian219/ApiAutoTest ## Basic Information - **Project Name**: 接口自动化测试框架 - **Description**: 基于requests的http协议自动化测试框架 - **Primary Language**: Python - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-20 - **Last Updated**: 2021-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 接口自动化测试 #### 介绍 基于requests的http协议自动化测试框架 #### 软件架构 软件架构说明 #### 安装教程 1. https://gitee.com/mikb/ApiAutoTest.git 下载代码 2. pip install -r requirements.txt 安装依赖库 3. 修改config.ini配置文件 4. 部署接口环境 5. 执行run.py #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 目录结构 ```shell |-- 接口自动化测试框架 # 主目录 ├─config │ └─config.ini # 配置文件 ├─testdata │ └─test_data.xlsx # 测试数据 ├─log │ └─...x.log # 日志文件 ├─report │ ├─tempdata # 临时报告数据 │ └─html # allure报告 ├─testcase # web测试用例 │ ├─conftest.py # pytest依赖对象初始化 │ ├─associated # 关联接口用例 │ └─individual # 独立接口用例 ├─common # 工具包 │ ├─__init__.py │ ├─base_path.py #获取根目录 │ ├─clear_file.py #清除log文件 │ ├─create_test_data.py #创建测试数据 │ ├─http_client.py #http请求 │ ├─logger.py #日志模块 │ ├─mysql_operate.py #数据库操作模块 │ ├─read_config.py #读取配置文件 │ ├─rw_properties.py #读取配置文件 │ └─rw_xlsx/py #读写excel文件 ├─globalvar.py # 项目全局变量管理 ├─pytest.ini # pytest配置文件 ├─requirements.txt # 项目依赖库文件 ├─README.md #自述文件 └─run.py # 主启动文件 ``` #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)