Best Sample Test Cases For Coffee Vending Machine
In this article, we will walk through how to write test cases for Coffee Vending Machine. It is one of the common manual testing interview questions that usually catches the candidate off guard.
But this question is more common than you think, which is to write test cases for a common everyday object.
The candidate might be well versed in their domain in their previous work or have good knowledge about testing through their understanding but the interviewer wants to check whether the candidate is flexible and creative.
The software application that you are going to test in the new organisation might be from a different domain than your experience and knowledge.
These questions will help the interviewer to evaluate the candidate’s thought process.
Earlier we have discussed some of the related posts and here are those for your reference.
- Test Case Template with Detailed Explanation
- Test Cases for Registration Page
- Test Cases for Login Page
- Test Cases for Gmail
- Test Cases for ATM Machine
- Test Scenario vs Test Case
- Test Strategy vs Test Plan
- 8 Types of Test Cases To Be Automated
- 8 Types of Test Cases Not To Be Automated
Related Posts – Test Cases
Requirements
When asked the question ” Write some test scenarios for testing a coffee vending machine”, always ask for the requirements. The interviewer expects you to ask it as gathering requirements is the most important step in any software testing life cycle.
- Does the vending machine provide only coffee or other beverages such as tea or soda?
- Should the customer pay money to get the coffee?
- Who are the target customers for the product?
- What is the type of coffee vending machine?
Thought Process
When you answer the questions in the context of testing concepts, the interviewer would get to know the thought process in your head. Think loudly in the interview by explaining the concepts below :
Core Functionality: The coffee vending machine should provide coffee to the customer.
Boundary conditions: The amount of time the vending machine takes to provide coffee.
Stress Condition: Pressing all the buttons in the coffee vending machine at the same time.
Usability Condition: The button in the coffee vending machine should have clear labels on what that button does.
Security/Safety Condition: The machine should not give an electric shock to the customer when touched with bare hands.
Functional Test Cases For A Coffee Vending Machine
- Verify whether the power button of the coffee vending machine is working correctly after pressing the power button.
- Verify whether the coffee vending machine is activated when the user presses the Power ON button.
- Verify whether the coffee vending machine is turned off when the user presses the power OFF button.
- Verify whether the indicator lights display correctly when the coffee vending machine is going to switch off or on.
- Verify whether all the buttons of the coffee vending machine have an image text on them, which indicates what task will be performed if you press the button.
- Verify whether the foamer in the coffee vending machine is working as expected.
- Verify whether the auto cleaner facility is working properly or not.
- Verify whether the half-cup feature works properly or not.
- Verify whether the cup quantity counter should work properly.
- Verify whether the temperature of the coffee served should be the same temperature or not.
- Verify whether the input mechanism for coffee ingredients-milk, water, coffee beans/powder, etc works as expected.
- Verify whether the quantity of hot water, milk, and coffee powder per serving are correct.
- Verify the effect of suddenly switching off the machine or cutting the power, the machine should stop in that situation and power resumption, the remaining coffee should not come out of the nozzle.
- Verify whether the functioning of all the buttons work properly when pressed
- Verify whether the coffee beans are grinding evenly, check it by picking a test bean and testing how evenly it has been ground.
Usability Test Cases For Coffee Vending Machine
- Verify whether the indicator lights are displaying correctly when the coffee vending machine is going to switch off or on.
- Check whether a complete quantity of coffee is poured in a single operation and whether no coffee is stored in the nozzle area.
- Verify whether the coffee leaks when not in operation
- Verify whether the digital display displays correct information or not.
- Verify whether the user gets the coffee served at the same and correct temperature each time it is served by the machine.
- Verify whether the system displays any error when it runs out of ingredients.
- Verify whether there is a passage for residual/extra coffee in the machine
- Verify whether all the buttons present on the coffee vending machine are working correctly as mentioned in the labels on the button.
- Verify whether the safety lock system works as expected or not.
- Verify whether the coffee vending machine makes any noise
- Verify whether the user can cancel after selection.
- Verify whether the machine has a dedicated space where the user can place the cup in the correct place where coffee appears.
- Verify whether the coffee machine is at a comfortable height for an average user.
User Interface Test Cases For Coffee Machine
- Verify whether the coffee vending machine is built as per the specification document.
- Verify whether the dimension of the coffee machine is as per the requirement.
- Verify whether the company name of the coffee vending machine is seen or not.
- Verify whether the weight of the coffee vending machine is as per the requirement.
- Verify whether all the buttons should be displayed properly.
- Verify whether all the buttons are self-explanatory.
- Verify whether the coffee vending machine is built with all the materials which are described in the specification document.
- Verify whether the outer body is designed as well as the inner part’s material, as per the specification.
- Verify whether the machine’s body colour, as well as brand, is correctly visible and as per requirement.
- Verify whether the power/voltage requirements of the machine are working as expected.
- Verify whether the indicator lights when the machine is switched on-off.
- Verify whether there is a button for passes for extra coffee in the machine.
- Verify whether the brand logo is visible in the specification document.
- Verify whether the coffee has the expected quantity of water and coffee beans and the milk mix.
- Verify whether the cup holder dimension is as per specification/ market standard.
- Verify whether the machine is FIS and ISI-approved or not.
- Verify whether coffee vending machine parts are damaged from anywhere on the machine.
- Verify the additional hardware such as power cables, plugs etc works as expected.
Boundary Conditions Test Cases For Vending Machine
- Verify whether the amount of coffee served in single-serving is as per specification.
- Verify whether pressing the coffee button multiple times leads to multiple servings of coffee.
- Verify the performance of the machine when used continuously until the ingredients run out of the requirements
- Verify at which point the LED screen displays an error message when the quantity of the ingredients is low.
- Verify how much power the coffee vending machine consumes if the consumable power is equal to the authority mentioned in the requirements.
- Verify whether the coffee machine leaks when keeping it in stand-by mode for a long time.
- Verify whether the machine works when the user enters a higher-value coin.
- Verify whether the machine works when the user enters a lower-value coin.
- Verify whether the machine accepts if the user enters a foreign currency coin.
- Verify whether the cup gets filled when the user presses the half-cup button twice.
Negative Test Cases For A Coffee Vending Machine
- Check how the coffee vending machine acts when two/multiple buttons are pressed simultaneously.
- Check how the coffee machine functions when the ingredient container’s capacity is exceeded.
- Verify how the coffee machine functions when the power gets cut off.
- Check how the machine works when the user enters a fake coin.
- Check how the machine acts when the user presses both the half-cup button and the full-cup button at once.
- Check how the machine works when the user presses all buttons at once.
- Check how the machine works when the user places the machine upside down.
- Check how the machine works when the user places it horizontally.
- Check how the machine acts when the user tries to open the cover while pouring coffee.
- Check how the machine acts when the user pulls out the cord after pushing a button and then plugs it again.
- Check how the machine acts when the user can open the compartment with a fake key.
- Check how the machine acts when the user inserts ingredients from another brand different from the coffee machine’s brand.
- Check whether the machine can give an electric shock to the user if touched with bare hands and feet on the floor.
Test Data
Test data is the most important part of testing any product, when we discuss the coffee vending machine there are several types of machines in the market. These are
variables that would require a different set of input. Let’s look at some different types of coffee vending machines to get a better idea.
- Espresso Machine
- Pod/Capsule Machine
- Milk Frother Machine
- Nespresso Machine
- Barista style machines
- Filter (drip) coffee machines
- Drip coffee machine.
Conclusion
In a nutshell, when writing test cases for random objects try to relate each scenario to a test concept. The interviewer would be impressed with your knowledge and skills. Hope this article covered the test cases for coffee vending machine which you can use in your interviews.
Related Posts – Test Cases
Related posts:
- How To Write a Good Defect Report
- Why Did You Choose Software Testing As A Career
- Test Plan Template Detailed Explanation
- Web Cookie Testing – Test Cases of Cookie Testing