# InterAutoTest **Repository Path**: NotNoneX/inter-auto-test ## Basic Information - **Project Name**: InterAutoTest - **Description**: 接口自动化小型demo,還不夠完善 项目核心utils工具类中的方法 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-18 - **Last Updated**: 2023-05-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # inter-auto-demo #### 介绍 自动化接口测试,小型demo,還不夠完善 ## 简介 ### 项目目录 - `common`: 公共工具类 - `config`: 配置文件 - `conf.yml`:存放全局toker - `data`: 数据存放文件 - `temporary_value.py`:反射类,用于存放临时变量 - `logs`: 日志存放文件 - `report`:aluer报告存放的位置 - `testkeem`: pytest用例目录 - `utils`: 工具类 - `AssertUtil.py`:断言判断(接口返回相应是否是成功) - `ExcelUtil.py`:读取excel文件 - `LogUtil.py`:封装的log日志的方法 - `MysqlUtil.py`:封装连接数据库的方法 - `RequestsUtil.py`:封装request请求的方法 - `TemporaryUtil.py`:封装反射类参数的存储和取出的方法 - `YamlUtil.py`:封装yaml文件读取的方法 - `pytest.ini`: 环境变量配置 - `run.py`: 運行文件 #### 安装教程 1. 安装依赖包 requirements.txt 2. 使用命令`pip install -r requirements.txt`安装第三方库(`requirements.txt`文件在项目目录下) 3. 下载对应浏览器的 Drivers 放置在python的环境变量中 4. 下载地址: http://chromedriver.storage.googleapis.com/index.html #### 接口参数关联 1. 1. 运行run文件 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request