SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Calculator Stories
  dhaval.dalal@software-artisan.com

          @softwareartisan
Story #1
  As an Accountant

  I want to add two numbers

  so that I can see what the total is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I add them

  Then I should see the sum as 5
Story #2
  As an Accountant

  I want to subtract two numbers

  so that I can see what the difference between them is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I subtract them

  Then I should see the difference as -1
Story #3
  As an Accountant
  I want to divide two numbers
  so that I can know the quotient

Acceptance Criteria #1
  Given I have two numbers 2 and 3
  When I divide them
  Then I should see the quotient as 0.666666


Acceptance Criteria #2
  Given I have two numbers 2 and 0
  When I divide them
  Then I should see the quotient as ‘Infinity’
Story #4
  As an Accountant

  I want to multiply two numbers

  so that I can see what their product is


Acceptance Criteria
  Given I have two numbers 2 and 3

  When I multiply them

  Then I should see the product as 6
Story #5
  As an Accountant
  I want to toggle the sign of numbers
  so that I can reverse them at will

Acceptance Criteria #1
  Given I have number 2
  When I press the toggle key (‘+/-’)
  Then I should see -2 on the display

Acceptance Criteria #2
  Given I have number -2
  When I press the toggle key (‘+/-’)
  Then I should see 2 on the display
Story #6
  As an Accountant
  I want to delete a wrongly entered digit
  so that I can correct the number to input.

Acceptance Criteria #1
  Given I have pressed keys 2, 3, 4
  When I press the backspace key
  Then I should see 23 on the display

Acceptance Criteria #2
  Given I have pressed a key 2
  When I press the backspace key
  Then I should see ‘0’ on the display
Story #7
  As an Accountant

  I want to store number in memory

  so that I can use it later

Acceptance Criteria #1
  Given I press ‘2’ on the keypad

  When I press ‘M in’ key

  Then the number 2 should be stored in memory

  and the status bar on the display should show ‘M’

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation
Acceptance Criteria #2
  Given that the status bar on the display shows ‘M’

  When I recall the number by pressing the ‘R-CM’ key

  Then I should see the originally stored number on the
  display

  and be able to use that number for any operation.
Story #8
  As an Accountant

  I want to reset the calculator

  so that I can start afresh


Acceptance Criteria #1
  Given I am in middle of an operation

  When I press ‘CE’ (Clear Everything) key

  Then the operation should be cancelled

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation.
Acceptance Criteria #2
  Given that the display status bar on the display shows
  ‘M’

  When I press ‘CE’ (Clear Everything) key

  Then I memory should be cleared

  and the display status bar should not show ‘M’

  and the display should show ‘0’ to indicate that the
  calculator is ready for next operation
Story #9
  As an Accountant

  I want to store operations in memory

  so that I can recall them to see the steps that resulted in
  the final answer

Acceptance Criteria
  Given I have performed two operations
     2 * 3 = 6 and 6 + 3 = 9

  When I replay the operations by pressing the step key

  Then I should see the following on the display in order
     Upon pressing the ‘Step’ key once I should see 2 * 3 = 6

     Upon pressing the ‘Step’ key again, I should see 6 + 3 = 9

Más contenido relacionado

Similar a Calculator stories

Cornus Technology User Manual
Cornus Technology User ManualCornus Technology User Manual
Cornus Technology User Manual
Lynette Ho
 
C:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\InstructionsC:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\Instructions
Louis Jimenez
 
910m30manenglish
910m30manenglish910m30manenglish
910m30manenglish
yunusd1
 
Calculator 4
Calculator 4Calculator 4
Calculator 4
livecode
 
April's Garden Procedures and policies manual
April's Garden Procedures and policies manualApril's Garden Procedures and policies manual
April's Garden Procedures and policies manual
Linnea Barnett
 

Similar a Calculator stories (17)

Assignment 1 Visual Basic Calculator
Assignment 1 Visual Basic CalculatorAssignment 1 Visual Basic Calculator
Assignment 1 Visual Basic Calculator
 
Cornus Technology User Manual
Cornus Technology User ManualCornus Technology User Manual
Cornus Technology User Manual
 
OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5OfficeCentral manual-en-PointofSales-v3 r5
OfficeCentral manual-en-PointofSales-v3 r5
 
TimmyMe TestCase
TimmyMe TestCaseTimmyMe TestCase
TimmyMe TestCase
 
Instructions
InstructionsInstructions
Instructions
 
C:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\InstructionsC:\Users\Degree\Desktop\Instructions
C:\Users\Degree\Desktop\Instructions
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
 
Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9Advanced accounting in Tally ERP 9
Advanced accounting in Tally ERP 9
 
OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1OfficeCentral User Manual for Point of Scale (English) V1R1
OfficeCentral User Manual for Point of Scale (English) V1R1
 
910m30manenglish
910m30manenglish910m30manenglish
910m30manenglish
 
6 advanced accounting
6 advanced accounting6 advanced accounting
6 advanced accounting
 
Calculator 4
Calculator 4Calculator 4
Calculator 4
 
April's Garden Procedures and policies manual
April's Garden Procedures and policies manualApril's Garden Procedures and policies manual
April's Garden Procedures and policies manual
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
 
Peachtree complete instructions
Peachtree complete instructionsPeachtree complete instructions
Peachtree complete instructions
 
Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)Computerised Accounting(Chart of Accounts)
Computerised Accounting(Chart of Accounts)
 
Elosimple manual
Elosimple manualElosimple manual
Elosimple manual
 

Más de Dhaval Dalal

Más de Dhaval Dalal (20)

Test Pyramid in Microservices Context
Test Pyramid in Microservices ContextTest Pyramid in Microservices Context
Test Pyramid in Microservices Context
 
Code Retreat
Code RetreatCode Retreat
Code Retreat
 
Booting into functional programming
Booting into functional programmingBooting into functional programming
Booting into functional programming
 
Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)Currying and Partial Function Application (PFA)
Currying and Partial Function Application (PFA)
 
Creating Lazy stream in CSharp
Creating Lazy stream in CSharpCreating Lazy stream in CSharp
Creating Lazy stream in CSharp
 
Json Viewer Stories
Json Viewer StoriesJson Viewer Stories
Json Viewer Stories
 
Value Objects
Value ObjectsValue Objects
Value Objects
 
Mars rover-extension
Mars rover-extensionMars rover-extension
Mars rover-extension
 
How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?How Is Homeopathy Near To Yoga?
How Is Homeopathy Near To Yoga?
 
Approaching ATDD/BDD
Approaching ATDD/BDDApproaching ATDD/BDD
Approaching ATDD/BDD
 
Paradigms Code jugalbandi
Paradigms Code jugalbandiParadigms Code jugalbandi
Paradigms Code jugalbandi
 
Data Reconciliation
Data ReconciliationData Reconciliation
Data Reconciliation
 
DRYing to Monad in Java8
DRYing to Monad in Java8DRYing to Monad in Java8
DRYing to Monad in Java8
 
CodeRetreat
CodeRetreatCodeRetreat
CodeRetreat
 
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr20154-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
4-Code-Jugalbandi-destructuring-patternmatching-healthycode#apr2015
 
Jumping-with-java8
Jumping-with-java8Jumping-with-java8
Jumping-with-java8
 
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar20153-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
3-CodeJugalbandi-currying-pfa-healthycodemagazine#mar2015
 
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
CodeJugalbandi-Sequencing-HealthyCode-Magazine-Feb-2015
 
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueCodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
 
The tao-of-transformation-workshop
The tao-of-transformation-workshopThe tao-of-transformation-workshop
The tao-of-transformation-workshop
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Calculator stories

  • 1. Calculator Stories dhaval.dalal@software-artisan.com @softwareartisan
  • 2. Story #1 As an Accountant I want to add two numbers so that I can see what the total is Acceptance Criteria Given I have two numbers 2 and 3 When I add them Then I should see the sum as 5
  • 3. Story #2 As an Accountant I want to subtract two numbers so that I can see what the difference between them is Acceptance Criteria Given I have two numbers 2 and 3 When I subtract them Then I should see the difference as -1
  • 4. Story #3 As an Accountant I want to divide two numbers so that I can know the quotient Acceptance Criteria #1 Given I have two numbers 2 and 3 When I divide them Then I should see the quotient as 0.666666 Acceptance Criteria #2 Given I have two numbers 2 and 0 When I divide them Then I should see the quotient as ‘Infinity’
  • 5. Story #4 As an Accountant I want to multiply two numbers so that I can see what their product is Acceptance Criteria Given I have two numbers 2 and 3 When I multiply them Then I should see the product as 6
  • 6. Story #5 As an Accountant I want to toggle the sign of numbers so that I can reverse them at will Acceptance Criteria #1 Given I have number 2 When I press the toggle key (‘+/-’) Then I should see -2 on the display Acceptance Criteria #2 Given I have number -2 When I press the toggle key (‘+/-’) Then I should see 2 on the display
  • 7. Story #6 As an Accountant I want to delete a wrongly entered digit so that I can correct the number to input. Acceptance Criteria #1 Given I have pressed keys 2, 3, 4 When I press the backspace key Then I should see 23 on the display Acceptance Criteria #2 Given I have pressed a key 2 When I press the backspace key Then I should see ‘0’ on the display
  • 8. Story #7 As an Accountant I want to store number in memory so that I can use it later Acceptance Criteria #1 Given I press ‘2’ on the keypad When I press ‘M in’ key Then the number 2 should be stored in memory and the status bar on the display should show ‘M’ and the display should show ‘0’ to indicate that the calculator is ready for next operation
  • 9. Acceptance Criteria #2 Given that the status bar on the display shows ‘M’ When I recall the number by pressing the ‘R-CM’ key Then I should see the originally stored number on the display and be able to use that number for any operation.
  • 10. Story #8 As an Accountant I want to reset the calculator so that I can start afresh Acceptance Criteria #1 Given I am in middle of an operation When I press ‘CE’ (Clear Everything) key Then the operation should be cancelled and the display should show ‘0’ to indicate that the calculator is ready for next operation.
  • 11. Acceptance Criteria #2 Given that the display status bar on the display shows ‘M’ When I press ‘CE’ (Clear Everything) key Then I memory should be cleared and the display status bar should not show ‘M’ and the display should show ‘0’ to indicate that the calculator is ready for next operation
  • 12. Story #9 As an Accountant I want to store operations in memory so that I can recall them to see the steps that resulted in the final answer Acceptance Criteria Given I have performed two operations 2 * 3 = 6 and 6 + 3 = 9 When I replay the operations by pressing the step key Then I should see the following on the display in order Upon pressing the ‘Step’ key once I should see 2 * 3 = 6 Upon pressing the ‘Step’ key again, I should see 6 + 3 = 9