What We Just Learned
When developing a REST web service with Cucumber, we need to keep in mind that the service is running in a different process than Cucumber. This means that we need to remember to start the service before we can run our features.
Although our example used the Jersey JAX-RS library, the techniques used in this chapter can be applied to any other web services technology. And because we’re accessing the service’s functionality through its web interface, the service can be written in any language—Cucumber doesn’t care what language the application you’re developing is written in, as long as there’s an API that it can talk to.
Often our services will “talk” in JSON, and this may surface in our features. You can make this easier ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access