Logo: Relish

  1. Sign in

Project: Calculator

ID:UR1 FunctionalArea:Addition Calculator must be able to add whole numbers (no decimal places)

Scenarios
ID:UR1.SR1 As a user of the calculator I need to be able to see the calculator to interact with so that I can add two number together through the browser.
Given
I am on the main page of the calculator
When
I don't do anything
Then
I should see the calculator main page
ID:UR1.SR2 As a user of the calculator I need to be able to add the number 1 and 1 together so that I can start to see how numbers will be added together.
Given
I am on the main page of the calculator
When
I enter 1 into the first addend and 1 into the second addend
Then
the result field should be 2
ID:UR1.SR3 The result should not be calculated when adding a alphabetic character to a number
Given
I am on the main page of the calculator
When
I enter AA into the first addend and 2 into the second addend
Then
there should be no result
And
an error message should be displayed
ID:UR1.SR4 The result should not be calculated when adding a number with a fractional part to a whole number
Given
I am on the main page of the calculator
When
I enter 1.2 into the first addend and 2 into the second addend
Then
there should be no result
And
an error message should be displayed

Last published over 3 years ago by Jeff Canna.