Jars or Maven Dependencies required for REST Assured Project

Profile picture for user devraj

Its good idea to use Maven dependencies instead of adding jars to your project directly. Maven automatically download jars using dependencies management. If you still want to download the jar:

Jars/Maven Dependencies

Below are required and useful jars for project:

Required Jars/Dependencies

  • Rest Assured
  • JSON Path*
  • XML Path*
  • JSON Schema Validator*
  • JUNIT/TestNG
  • Jackson Databind, Jackson Annotation and Jackson Core
  • Gson

Note: You need to choose either of JSON or XML depending on your requirement. 

Other Jars/Dependencies

  • Extent Report
  • Spring Mock MVC
  • Spring Web Test Client
  • Scala Support
  • Kotlin Extensions

Note: JUNIT or TestNG is required depending on type of framework you are using.

How to Download Jars/Dependencies 

There are 2 ways to download it:

Download REST Assured Jars from Rest Assured GitHub

Step 1: Navigate to this link

Step 2: Download .zip files from Current Direct Downloads by clicking on links

Download REST Assured Jars from Maven Website

Step 1: Navigate to this link

Step 2: Select the Jar you want to download

Step 3: Click on Latest Version

Step 4: Click on View All

Step 5: Download the Jar

Repeat it for all required jars.

Add Maven dependencies to your pom.xml

Step 1: Navigate to this link

Step 2: Click on Latest Version

Step 3: Copy Maven dependency and paste it to your pom.xml

POM.XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.pb</groupId>
  <artifactId>restassuredtest</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>restassuredtest</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  

  <dependencies>

<!-- https://mvnrepository.com/artifact/io.rest-assured/json-schema-validator -->
<dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>json-schema-validator</artifactId>
    <version>4.3.2</version>
</dependency>

    
    <!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured -->
<dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>rest-assured</artifactId>
    <version>4.3.0</version>
</dependency>
<dependency>
            <groupId>com.github.scribejava</groupId>
            <artifactId>scribejava-apis</artifactId>
            <version>2.5.3</version>
            <scope>test</scope>
</dependency>

    <!-- https://mvnrepository.com/artifact/io.rest-assured/json-path -->
<dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>json-path</artifactId>
    <version>4.3.0</version>
</dependency>
    

    
    <!-- https://mvnrepository.com/artifact/io.rest-assured/xml-path -->
<dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>xml-path</artifactId>
    <version>4.3.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured -->
<dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>rest-assured</artifactId>
    <version>4.3.3</version>
    
</dependency>

<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>7.1.0</version>

</dependency>

<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.11.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-testng -->
<dependency>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-testng</artifactId>
    <version>2.13.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.32</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.32</version>
    <scope>test</scope>
</dependency>


<dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility</artifactId>
      <version>4.1.0</version>
      <scope>test</scope>
</dependency>
    
  </dependencies>
</project>