这一篇 我主要是对接口自动化进行的一个学习
1、前置的环境
①、有maven
②、有jdk的环境
③、eclipse
④、能上网
2、通过maven安装httpclient 以及把自身所带的junit删除
安装JSON的jar包
安装TestNG的插件
安装TestNG的jar包
安装httpClient的jar包
下面是maven需要依赖的jar包的关系
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180130</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>