REST API testing with Rest-Assured and Serenity-BDD – a primer

John Ferguson Smart | Mentor | Author | Speaker - Author of 'BDD in Action'.
Helping teams deliver more valuable software sooner30th October 2018

serenity-bdd |

REST API testing an increasingly important part of modern software architectures. And in a world where speedy delivery is of the essence, comprehensive automated tests are not an option.

From a testing perspective, understanding REST APIs and how to use them is vital, even if you aren't writing tests for an API directly. Testers can reduce the need for slow and expensive automated web tests by using REST APIs to bypass the web UI layer for test preparation or for verifying test results, or in cases where repeatedly exercising the UI would not be justified.

Fortunately, writing acceptance tests for REST APIs is not a difficult task. And when you combine the power of RestAssured and Serenity BDD, it becomes even easier.

This free 30 minute video tutorial will get you started in the right direction with REST API testing, and write your first REST API executable specification with Serenity BDD.

The video is the first part of the latest addition to our popular Serenity Dojo online training curriculum: Testing REST APIs with Serenity BDD and RestAssured.

In this course, you learn not only what a REST API is, and how REST APIs work, but you will also learn how to write high quality, expressive REST API tests using Rest Assured and Serenity BDD. You will see how RestAssured provides a clean, fluent API that makes reading and maintaining your REST API test code much easier. And you will learn how Serenity BDD integrates with RestAssured to provide powerful test reporting for REST API tests.

You will also learn how to write BDD executable specifications for REST APIs using Cucumber, and how this can provide rich living documentation for your web services, that can be used by teams using a web service to better understand what theaweb service does in business terms.

© 2019 John Ferguson Smart