This repository contains a sample project demonstrating how to test a REST API using REST Assured. The API being tested is the Petstore API, specifically the USER endpoint from the Swagger documentation: https://petstore.swagger.io/#/user/.
Before running the tests, make sure you have the following software installed on your machine:
- Java Development Kit (JDK) version 8 or higher
- Maven (for managing dependencies and building the project)
To get started, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/anoopezhap/Pet-Store-RestAssured-Project.git
- Navigate to the project directory:
cd rest-assured-petstore
- Build the project and download dependencies using Maven:
mvn clean install
After successfully installing the project, you can run the tests using the following command:
mvn test
This will execute all the test cases present in the project and generate test reports.
After running the tests, you will find the test reports generated by the Extent Reports in the reports directory. These reports provide detailed information about the test results.