TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

TestCases

Simple Coffee Vending Machine Test Cases

Overview

This tutorial outlines sample test cases for a simple coffee vending machine. Coffee machine can provide many features for the customer. We will stick to a basic machine in this example.

Machine Components

Let’s look into some of the important Coffee machine components to understand the system better. A better understanding of the system under test yields effective test cases.

  • Machine Body
  • Smart card reader
  • Motor
  • Microcontroller
  • Water heating Unit 
  • Container , etc

The Coffee Vending Machine controller is a Finite State Machine(FSM). Let’s assume the machine is capable of making two coffee recipes by default:

  • Cappuccino( Strong /Regular)
  • Espresso (Strong /Regular)

However, the machine operator can add new coffee recipes to the machine. A coffee recipe consists of recipe name, coffee powder units in table spoons, milk in ml, super in table spoons, and recipe price in dollars.

Use cases

The main actors of the system:

  • Customer
  • Machine operator

 

Coffee Vending Machine

 

Test cases

The main intended purpose of the coffee machine for the customer is to make coffee.

Functional Test Cases

Verify that when user deposits money and select the coffee recipe in the menu, the machine should dispense the selected coffee drink to the customer.

Verify that coffee is not dispensed, when the customer does not enter enough money. The money should be returned to the customer.

Verify that upon insufficient inventory, the machine should display an error message to the customer.

Verify that invalid coins are ejected out to the customer.

GUI Test Cases

Verify the Display Menu options for Cappuccino and Espresso.

Verify that the buttons are working properly.

Related Links

ATM Test cases

https://www.testingdocs.com/atm-test-cases-automated-teller-machine/

Related Posts

Login Page Actors

TestCases /

Test cases for a Login Page

ATM Sample Test Case

TestCases /

ATM Test cases

Windows Calculator GUI Screen

TestCases /

Manual Test Cases for Calculator Application

TestCases /

Test cases Template

‹ Test cases Template› Manual Test Cases for Calculator Application

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version