Skip to content

tiagocbarbosa/lojinhaApi-restAssured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lojinhaApi-restAssured

My application tests the RESTful APIs created by Júlio de Lima using REST Assured.

I'm using the framework to learn it, and a challenge I faced was a interesting way to pass the body request with REST Assured without writing the JSON in the code. Jackson Databind helped me with that.

In the future I hope to add more testing scenarios to the application.

Prerequisites

  • IntelliJ IDEA
  • Maven 3+
  • JDK 17+

Installation

  1. Clone the repository in your machine.
  2. Open it in IntelliJ.
  3. Install JDK through IntelliJ in case you don't have it.

Usage

For instance, open the ProdutoTest file in IntelliJ and run the tests. The IDEA's console output should look like this:

Process finished with exit code 0

References

URL of the Lojinha API V2 REST APIs: http://165.227.93.41/lojinha/v2/

URL of the buggy Lojinha API V2 REST APIs: http://165.227.93.41/lojinha-bugada/v2/

Swagger Editor

Swagger documentation of the RESTful APIs

Getting started with REST Assured

Jackson Databind: it enables us to pass a POJO in the "body" method of the REST Assured library, for example.

How to write a good README file

About

Testing RESTful APIs using REST Assured.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages