Skip to content

samwarwick/serenity-rest-books

Repository files navigation

Serenity-BDD REST Demo using Google Books API

Sample project demonstrating the use of Serenity-BDD and REST Assured to test the Google Books API. Also includes a Jenkinsfile to enable execution in a Jenkins pipeline.

Requires Java 21 or later.

Serenity-BDD version 4.2.34 (11-Jun-2025) with REST Assured 5.5.5.

Run all tests:

mvn clean verify

Run a single smoke test:

mvn clean verify -Dcucumber.filter.tags="@smoke"

To view the test report open target/site/serenity/index.html.

There are four tests, one of which ('Book title includes a subtitle') deliberately fails in order to demonstrate how failures are reported by Serenity.

NOTE: As of 28-Aug-2025 the 'Search returns volume information' scenario was failing due to pageCount being 0. This is likely due to a change in the underlying Books API data.

About

Serenity-BDD REST Demo using Google Books API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •