February 2015
Intermediate to advanced
338 pages
8h 16m
English
In the previous chapter, we started working through an example of how to use Cucumber to build a real application, outside-in. The system we’re building is an automated teller machine (ATM) for a bank, and we used Cucumber to help us design a simple domain model that satisfied this scenario:
| support_code/01/src/test/resources/cash_withdrawal.feature | |
| | Feature: Cash Withdrawal |
| | Scenario: Successful withdrawal from an account in credit |
| | Given I have deposited $100.00 in my account |
| | When I withdraw $20 |
| | Then $20 should be dispensed |
The code we’ve written makes the scenario pass, but the system isn’t really of any use yet: there’s no external interface for a user to interact with, just a handful of Java ...
Read now
Unlock full access