Per Åkerberg's (@perakerberg) presentation from MeetUI 2013, SoapUI's first user conference, in Stockholm, Sweden. Per is a .Net developer at Centiro Solutions.
8. Gherkin – the BDD language
Feature: Cash withdrawal
In order to get some spending money
As a bank customer
I want to withdraw cash from my account
Scenario: Sufficent funds in account
Given I have $100 in my account
When I withdraw $50
Then $50 is dispensed
And my account balance is $50
Feature
Scenario
Steps
Gherkin
9. Feature
Scenario
Steps
Gherkin
Feature: Cash withdrawal
In order to get some spending money
As a bank customer
I want to withdraw cash from my account
Scenario: Insufficent funds in account
Given I have $100 in my account
When I withdraw $500
Then I am greeted with a ”sorry, no cash for you” message
Gherkin – the BDD language