New tutorial about testing Spring Boot microservices with CWB
28th December, 2015
  • Arne Vandamme

  • CTO

In this tutorial I will show you how to use Cucumber and CWB REST to test a Spring Boot microservice.  Starting from a Spring Boot application using an embedded Tomcat, we will first setup the CWB integration and write a simple feature.  The feature will connect to the actual running webserver and execute its scenario's. As a next step we will configure the embedded Tomcat to use a dynamic server port and see a simple code based approach for starting the webserver en running the Cucumber features on any port.

This is really a step-by-step tutorial.  It helps if you already know some Spring Boot and Cucumber, but it is not strictly required.  In the first part of this tutorial we'll create the microservice using Spring Boot, in the second part we'll test it with CWB REST.

You will need Java 8, Maven and your favourite IDE... and 15 to 30 minutes of time.

The complete tutorial can be found on our Cucumber Web Bridge site.