# API-FrameTest **Repository Path**: ruby520/api-frame-test ## Basic Information - **Project Name**: API-FrameTest - **Description**: java+testng+httpclient 接口测试框架 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-02 - **Last Updated**: 2023-03-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, TestNG, HttpClient ## README # API-FrameTest #### 介绍 java+testng+httpclient 接口测试框架 #### 软件架构 - Interface 1. InterfaceConfig-存放协议,服务器地址 1. InterfaceInfo-存放接口名字,接口路径,接口描述 1. MyURI-存放创建请求需要的字段 - Request 1. HttpDriver-存放get,post请求 - Test 1. ApiTest-存放接口测试用例 - Utils 1. Contants-存放配置文件,数据文件地址 1. ExcelUtils-存放操作excel方法 1. Log-存放日志记录方法 1. StringUtils-存放字符串操作方法 #### 安装教程 1. git clone https://gitee.com/ruby520/api-frame-test.git 2. Eclipse 打开这个项目 3. 修改src->Utils->Contants.java 一些地址的信息 4. Excel的数据表列段名字关于method,expectResult,actualResult,isPass不能改 5.Excel的风格不能改 6.可以增加删除接口参数列字段 7.Test->ApiTest执行测试用例 #### 使用说明 1. 可以测试任意接口,只要在excel里面增加字段,不要用的字段不设置值