Skip to content
NagragginiPublic

About

API test automation framework using Java and REST Assured for Swagger Petstore.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

Run Rest Assured API Tests

Top Language Rest Assured License

REST API Tests: Swagger Petstore

This repository contains an automated REST API test suite for the Swagger Petstore API.

The project demonstrates API testing using REST Assured, JUnit 5, Maven, Allure Report, and GitHub Actions CI/CD.

Allure Test Report

The automated test results and execution reports are generated and published automatically via GitHub Actions:

Allure Report 📊 View the Allure Report

Toolbox

  • Programming language: Java 21
  • Test automation framework: JUnit 5
  • API testing framework: REST Assured
  • Reporting: Allure Report
  • Build tool: Maven
  • CI/CD: GitHub Actions

Requirements:

  • JDK 21+
  • Maven 3.x
  • Internet connection

To run the tests, execute:

On Linux: ./mvnw clean test

On Windows: mvnw clean test

To run a single test:

./mvnw -Dtest=PetIdPozitiveTest#checkOnePet test

Covered Test Scenarios

  • GET pet by ID
  • POST create new pet
  • PUT update existing pet
  • DELETE pet
  • HTTP status code validation
  • Response body validation
  • JSON schema/content validation
  • Positive and negative test cases

About

API test automation framework using Java and REST Assured for Swagger Petstore.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages