13 BDD and executable specifications for microservices and APIs

This chapter covers

  • API and Microservice-based architectures and how to test them
  • The difference between broader user journey requirements and more specific business rule requirements, and how user journey requirements can often be automated using API interactions
  • Using RESTAssured to interact with REST APIs
  • Using JSONPath to query the responses returned by REST API calls

Thus far we have focused on automating tests that exercise the user interface. But, as we discussed in chapter 10, user interface tests shouldn’t be the only tool in your automated acceptance testing toolbox. It’s important to know when to use them and when to look for alternative strategies. In this chapter, ...

Get BDD in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.