Skip to content

paul-chiggy/demo-api-testing-with-java-rest-assured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-api-testing-with-java-rest-assured

Demo project for API testing with Java, Maven and REST-Assured

Intro

This small Java project show-cases a test automation implementation for testing of REST API's based on REST-Assured testing library and Maven.

Description

This implementation encompases several basic test-cases testing the weather forecast functionalities of a small open online API's at https://api.openweathermap.org/.

Among the assertions you can see various types to API testing, like:

  • smoke - checking response codes;
  • performance - checking response times;
  • contract - verifying correct API schema and data types
  • data - testing if data in the response is as expected.

How to run

Pre-requisites

  • Java (I used Java 24.0.2)
  • Maven (I used 3.9.11)
  • Git
  • Docker - if you would like to run it in Docker

Steps

  1. Checkout this project from Git
  2. Install dependencies by running mvn install -DskipTests.
  3. You can run tests in the CLI mode with mvn test
  4. Or run it in Docker with docker-compose up api-tests

About

Demo project for API testing with Java and REST-Assured

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors