How to write API Automated tests — RestAssured (4/7)

Photo by Pavan Trikutam — Unsplash

Add Rest Assured dependencies

As an API client, we will use a java library called RestAssured.

Add feature file

Add api package to the features package and create api_requests.feature file:

Add glue code

We start from the adding target system URL above to the test configuration.

host=https://jsonplaceholder.typicode.com/

Execute the tests

The final version of a code is placed here.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store