Logo: Relish

  1. Sign in

Project: Coffeemachine2

Making a cup of coffee

As a coffee drinker
I want to be able to obtain coffee from the coffee machine

Scenarios
Making a cup of coffee
Given
coffee machine is switched on
When
water is added
And
coffee is added
And
cup is put in the machine
And
make coffee button is pressed
Then
coffee should be put in cup
Making a cup of coffee and putting cup in machine first
Given
coffee machine is switched on
When
cup is put in the machine
And
water is added
And
coffee is added
And
make coffee button is pressed
Then
coffee should be put in cup
Forgetting to put a cup in the machine
Given
coffee machine is switched on
When
water is added
And
coffee is added
And
make coffee button is pressed
Then
no coffee is put in cup
And
error message is "no cup in the machine"
Forgetting to add water
Given
coffee machine is switched on
When
coffee is added
And
cup is put in the machine
And
make coffee button is pressed
Then
no coffee is put in cup
And
error message is "no water in the machine"
Forgetting to add coffee
Given
coffee machine is switched on
When
water is added
And
cup is put in the machine
And
make coffee button is pressed
Then
no coffee is put in cup
And
error message is "no coffee in the machine"

Last published almost 5 years ago by edwardb.