$0.00

No products in the cart.

$0.00

No products in the cart.

Sale!

Dior Women's Pearl Earrings CD

Original price was: $159.00.Current price is: $89.00.
Sale!

Dior 2024 Women's Pearl Earrings

Original price was: $159.00.Current price is: $89.00.
Sale!

Dior Unique Fashionable Silver Bee-shaped Earrings Adorned with Pearls for Women

Original price was: $159.00.Current price is: $89.00.
Sale!

Dior CD Disc-shaped Earrings 2023 Vintage Style for Women

Original price was: $159.00.Current price is: $89.00.

How Will You Test A Vending Machine

How many times have you been sitting around for hours in a hospital waiting room and wished that you could grab a quick snack without missing your appointment?

Or maybe when you wanted to grab a quick snack late afternoon when you’re feeling your sugar levels dip?

Or how about THAT morning when you have a client meeting, missed breakfast and are more worried about your stomach grumbling and embarrassing yourself?

Thankfully there’s a saving grace.

The Vending Machine!!!

Modern vending machines have been around since the late 1880’s.

Invented by Percival Everitt in London, they dispensed postcards which later became incredibly popular around the world.

In the US, the first vending machine was used in 1888 and dispensed gum.

In this article, I will give you a list of test cases for a vending machine as also talk about considerations from a testing perspective.

Before We Begin – Context and Scope

Before we begin, I want to make it clear that the test cases discussed in this article primarily talk about a ‘generic’ vending machine.

The context of the test cases that are listed below are focussed on a machine that dispenses bars and bags. The Vendo Machine by Mars is a good example.

If you need to test anything specific, the concept is still the same, just ensure you add appropriate test cases.

Learn how to write test cases that even your Grandparent can write!

Before you start writing your test cases, you should take the following points into consideration.

Consult specific Documentation

In order to test the software correctly, you should ALWAYS consult any documentation for the specific model you have.

For example, requirements, user guides and operating manuals etc.

Innovations

Consider innovation and ever changing technology.

For example, contactless payment systems are now becoming the norm in Europe and in the Western world.

Digital currencies such as Bitcoin and Ethereum are also starting to take off so should be a consideration when testing vending machines.

In countries like the United Arab Emirates, vending machines are being used to vend gold bars and not just snacks and beverages.

As a result, you might also want to think about the capability of testing additional items your vending machines could dispense.

Funnily enough, I’ve even heard of vending machines that dispense cars. Yup, you heard that right.

Now just imagine if you made the wrong selection?

That would be one seriously annoyed customer.

It actually makes me laugh but also blows my mind.

Security Considerations

Whenever you have a product or service that involves money, it’s likely that it will be open to attack.

Therefore, security must be of high importance.

One of the things you need to look at is how someone can potentially get a product for free.

Being a skinny schoolkid and having the thinnest arms, I remember trying to put my hand in the bottom and trying to lift the flap to try and get a can of drink out.

It never worked.

Another trend in the early 1990’s was putting foil around two 5p coins in making the machine think it was a £1 coin.

That never worked either and often it got stuck in the machine.

You ended up losing your money.anyway.

You get my point.

People will always try to outsmart these machines, so you need to try and think with a similar mindset.

Uses for a vending Machine

The possibilities of what a Vending machine can be used for are endless.

I can’t list them all here or we’d be here all day.

However, I do want to add a few different types so that you can get a feel for what’s available, and to let your ‘testing’ brain get to work.

A coffee machine is one that instantly comes to mind.

I remember on a late evening in November 2019 when I had to visit Great Ormond Street Hospital in London and the canteen was shut.

I was starving and as I left the canteen, there standing in the corner was this bright shining vending machine where you could purchase ‘proper’ food.

I found it really intriguing.

I opted for the vegetarian curry.

So I put in the money in, out it came and then all you had to do was to warm it up in the microwave provided.

I’d never seen that before.

The curry tasted absolutely disgusting but thats beside the point.

It was very convenient and very user friendly.

No wonder these things are so popular.

Anyway.

Interesting Engineering wrote an article which is not only interesting (excuse the pun) but funny at the same time.

If you want to have a laugh, then watch the video below which also shows vending machines that you may not have known existed.

You should get some ideas on functionality and usability.

Functional test cases

So now that we’ve got an idea, let’s get down to the actual test case for your vending machine.

The purpose of the functional test cases is to ensure that you can run them during a System Test or System Integration Testing level and prove that each functional requirement has been validated.

You may need to break down each test case further into steps if you want to test to a granular condition level.

End User Selects a Product

We want to ensure that each functional area works individually before it can be tested end to end.

The test cases below consider an end user of the machine who wants to purchase a product.

TC IDTest Case DescriptionExpected Result

Back-End

Don’t forget that a Vending machine has a whole back-end system. In this section we’ll go through the more technical and admin features you need to look at testing.

Non Operational Mode

TC IDTest Case DescriptionExpected Result

Set Pricing

When setting pricing, ensure the vending machine is in a non-operational mode.

TC IDTest Case DescriptionExpected Result

Temperature Control

TC IDTest Case DescriptionExpected Result

To get some ideas watch this

Or watch this to get an idea of the User Interface

Money Stock and Sales Reporting

Your test plan should also include test where the system verifies the money in the vending machine.

TC IDTest Case DescriptionExpected Result

Replenishing / Stocking up

TC IDTest Case DescriptionExpected Result

Detect fake coins

Having fake money in vending machines it a loss for the business owner and encourages people to continue to commit fraud.

As a result, its important for machines to be able to reject fake money.

TC IDTest Case DescriptionExpected Result

Payment considerations

When it comes to making payments, you might want to also consider the following options.

– Coins

– Contactless

– Card

– Apple Pay

– Crypto currency payment

Maintenance and Erros

Every now and again your system may have some technical issues.

The model that you’ll be testing may have a number of error codes.

You should test each error code by trying to create the correct test conditions to generate the error.

TC IDTest Case DescriptionExpected Result

Notes / Observations

Check to make sure which products your vending machine can support. For example, can it only support, bars, bags and drinks?

Most vending machines will allow you to;

  • Select a product and then enter payment
  • Or enter payment (mostly cash) and then select product.

Just be mindful that you may have to tweak your test cases accordingly, especially when it comes to refunds.

Test Case Maintenance and Regression Test Pack Creation

We can’t talk about testing if we don’t mention a regression test pack.

Your Ultimate Guide to Regression Testing

As I mention quite a lot on this site, one of things I love about creating test cases is that you can use them over and over again.

Having a regression suite will allow you to spend less time developing test cases in the future and will also allow you to have a baseline of the system.

Please ensure that your post Test Execution housekeeping is done correctly to make your life easier for the future.

By that, I mean ensure you update the test cases before updating your regression test suite.

Summary

After writing this article, I have much more appreciation of vending machines and the technology that goes into them.

In fact, I’ll never look at them in the same way.

I thought that writing test cases for them would be quite straightforward but once I went down this rabbit hole, I realised how complex the subject can become.

Specialised vending machines that can dispense almost anything were particular interesting and this is exactly what will appeal to you as a Tester..

I hope you found this article as enjoyable as I did writing it.

The next time you ask yourself, “how would you test a vending machine?”…, hopefully you’ll remember this article.

Feel free to share with with other colleagues who you feel may benefit from this.

Our bestsellers

Sale!

Chanel earrings, CC earrings adorned with stones v42

Original price was: $159.00.Current price is: $89.00.
Sale!

Chanel earrings, CC earrings adorned with pearls v41

Original price was: $159.00.Current price is: $89.00.
Sale!

Chanel earrings, CC earrings adorned with pearls v40

Original price was: $159.00.Current price is: $89.00.
Sale!

Chanel earrings, CC dangle earrings in water drop shape adorned with stones and pearls v39

Original price was: $159.00.Current price is: $89.00.
Sale!

Rolex Sea-Dweller 126603 Bi Colour

Original price was: $900.00.Current price is: $279.00.
Sale!

Rolex Sea-Dweller 126600 Mk1

Original price was: $900.00.Current price is: $279.00.
Sale!

Rolex Milgauss 116400GV Green Dial

Original price was: $900.00.Current price is: $279.00.
Sale!

Rolex Milgauss 116400GV Blue Dial

Original price was: $900.00.Current price is: $279.00.

Related articles

No posts to display

Recent blog posts