Skip to content

dhananjaylavate/RestAssuredAPIAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestAssuredAPIAutomation

A REST API automation framework built with Java and REST Assured for testing RESTful APIs.

Prerequisites

  • Java 17 or higher
  • Maven 3.6. 0 or higher

Setup

  1. Clone the repository:
git clone https://github.com/dhananjaylavate/RestAssuredAPIAutomation.git
cd RestAssuredAPIAutomation
  1. Install dependencies:
mvn clean install

Dependencies

The project uses the following dependencies:

  • REST Assured (5.3.0) - REST API testing library
  • TestNG (7.10.2) - Testing framework
  • Jackson Databind (2.18.2) - JSON processing
  • Jackson Core (2.18.2) - Core JSON processing
  • SLF4J (2.0.13) - Logging
  • Log4j2 (2.20.0) - Logging framework

Project Structure

RestAssuredAPIAutomation/
├── src/
│   └── test/
│       └── java/
│           └── com/api/tests/
│               ├── SignUpTest
│               ├── UpdateUserUpdateTest
│               ├── LoginTest4
│               ├── GetUserProfileTest
│               └── ForgotPasswordTest
├── pom.xml
├── testng.xml
└── README.md

Test Suites

The following test classes are configured in testng.xml:

  • SignUpTest - User registration tests
  • UpdateUserUpdateTest - User profile update tests
  • LoginTest4 - Login functionality tests
  • GetUserProfileTest - User profile retrieval tests
  • ForgotPasswordTest - Password recovery tests

Running Tests

Run all tests:

mvn test

Run with specific test suite:

mvn test -Dtest=SignUpTest

Run with custom suite file:

mvn test -Dsuite=testng. xml

Build Configuration

  • Source/Target Java Version: 17
  • Source Encoding: UTF-8
  • Test Runner: Maven Surefire Plugin (3.0.0-M5)
  • Test Configuration: testng.xml with 5 concurrent threads

API Documentation

Swagger UI: http://64.227.160.186:8080/swagger-ui/index.html#/Authentication/registerUser

Install Allure At local to see the allure reporting

image

Author

Dhananjay Lavate

About

RestAssuredAPIAutomation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages