maximilianoalves / rest-assured-test-inside-project

Using the rest assured inside of spring boot project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the rest assured inside of spring boot project

Para acessar a versão em Português do Brasil, basta clicar aqui! 🇧🇷

This project was created for example of structure for api testing using Java and Rest-Assured inside a springboot project.

Technologies and tools used:

Run API.

mvn spring-boot:run This command will be created the database in memory, add data inside the database and able access to endpoint.

Test Scenarios

  • GET /tutorials:
    • should be return with success all tutorials
      • check 200 status code
      • check schema object
    • should be return NO CONTENT when the list is empty
      • dependencies: delete all tutorials before call GET /tutorials
      • check 204 status code
      • check empty body
  • GET /tutorials/{id}:
    • should be return with success a single tutorial
      • check 200 status code
      • check schema object for one tutorial
    • should be return a error when put a nonexistance id.
      • check 404 not found status
      • check schema object for the error
  • DELETE /tutorials:
    • should be deleted all tutorials with success
      • check 204 status code
      • check doesn't have body
    • should be return error when try delete all tutorials without tutorails registered
      • check 500 status code
      • check doesn't have body
  • DELETE /tutorials/{id}:
    • should be deleted with success
      • check 204 status code
      • check doesn't have body
    • should be return error when try to delete a tutorials with nonexistance id.
      • check 500 status code
      • schema error schema

About

Using the rest assured inside of spring boot project


Languages

Language:Java 92.9%Language:Groovy 7.1%