Purchase Solution

Testcase Creation (Example: Vending Machine)

Not what you're looking for?

Ask Custom Question

Derive test cases from the following informal specifications for a simple vending machine:

Program CoinBox accepts quarters and distributes coffee.

Users may:
- insert a quarter
- ask for a cup of coffee
- ask for quarters to be returned
Coffee costs 2 quarters.

The test cases should cover each transition of the finite state machine at least once.

Purchase this Solution

Solution Summary

Solution explains the test case creation process taking Vending Machine as an example.

Solution Preview

The vending machine problem is a simple case of an ordinary vending machine.

Assumptions on working of vending machine:
To keep the working simple let us have a following assumptions.
1. If user inserts only 1 quarter and asks for a cup of coffee, the machine returns the quarter.
2. If the user inserts more quarters and orders for coffee any extra quarter(s) should be returned.

The important tests to be performed are:

1. Test the inserted coin is Quarter or not.
2. Test order coffee functionality.
3. Test return 1 quarter functionality
4. Test return 2 quarters functionality
5. Return quarter when user gives only 1 quarter and order for coffee.
6. Return extra quarters.
7. Order for coffee without inserting quarter
8. Request refund without inserting quarter

Test Case: A test ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.