Skip to content

Advanced API testing using REST Assured 5.4.0 with JSON Schema validation and dynamic payloads. Includes Java Faker for test data, schema-based assertions, and console logs for traceability.

License

Notifications You must be signed in to change notification settings

im-ahmed-hasan/restassured-contract-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 REST Assured API Contract Testing (2025)

This project demonstrates modern API testing techniques using REST Assured, JSON Schema Validation, and Java Faker.

✅ What’s Included

  • Contract testing with JSON Schema
  • Dynamic test data using Java Faker
  • Mock/stub-compatible structure
  • Clean and scalable JUnit 5 test format

📦 Tech Stack

  • Java 22
  • REST Assured 5.4.0
  • JSON Schema Validator
  • JUnit 5
  • Java Faker

🧪 How to Run

  1. Clone this repo
  2. Replace your GoREST token in the test file
  3. Go to https://gorest.co.in/my-account/access-tokens
  4. Generate a new token.
  5. Copy it and paste it in the test file where the token variable is set.
  6. Run the test via IntelliJ or Maven:
git clone https://github.com/im-ahmed-hasan/restassured-contract-testing
cd restassured-contract-testing

About

Advanced API testing using REST Assured 5.4.0 with JSON Schema validation and dynamic payloads. Includes Java Faker for test data, schema-based assertions, and console logs for traceability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages