Skip to main content

Cucumber lets you write
automated tests in plain language

Cucumber is a tool for running automated acceptance tests, written in plain language. Because they're written in plain language, they can be read by anyone on your team, improving communication, collaboration and trust.

+23 more platforms
features/withdrawing-cash.feature
Feature: Withdrawing cash

Rule: Customers cannot withdraw more than their balance

Scenario: Successful withdrawal within balance
Given Alice has $234.56 in their account
When Alice tries to withdraw $200.00
Then the withdrawal is successful

Scenario: Declined withdrawal in excess of balance
Given Hamza has $198.76 in their account
When Hamza tries to withdraw $200.00
Then the withdrawal is declined

Got 10 minutes?

Take the Tutorial