Rest-assured是一套由Java实现的rest API框架,是GitHub上的一个开源项目
基本使用方法:
1、导入maven依赖坐标
maven网址:https://mvnrepository.com/
打开以上网址进行添加rest-assured依赖坐标,点击search
点击rest-assured
选择任意版本号,此处我选择4.2.0
选择版本号如下:
<!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>4.2.0</version>
<scope>test</scope>
</dependency>
打开idea,创建maven工程,把以上坐标配置复制到pom.xml文件中
<dependencies>
<!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>4.2.0</version>
<scope>test</scope>
</dependency>
</dependencies>
后续持续更新中,,,,