Chapter 12Working with Web Applications

Our ATM example is a simple web application that has a single feature—withdrawing cash—but even that isn’t fully implemented. In this chapter we’re going to extend this feature to handle some simple error situations that our stakeholders are concerned about. Along the way we’ll learn some techniques for injecting errors into our system and a lot more about how to use Selenium to exercise web applications.

It doesn’t take very long to run the single scenario we’ve written for our ATM example, but as we add more scenarios the time it takes to run Cucumber will get longer. We’ve already talked about some of the ways to handle slow features in Chapter 6, Keeping Your Cucumbers Sweet, but in this chapter, ...

Get The Cucumber for Java Book 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.