Project Coordinator Question:

Write test cases for a vending machine?

Tweet Share WhatsApp

Answer:

Assume tha tvending machine can provide tea, coffee and
milk, without taking any money or coin.

Firast we have to create finite state diagram for the test
case solution.

initial state ---->> coffee ------>> tea--------->> milk

this is the one test case where user can first ask for
coffee from initial state and then ask for tea and milk.

Now we have to take all the +ve test cases where user can
move from one state to another state.

Download Project Coordinator PDF Read All 40 Project Coordinator Questions
Previous QuestionNext Question
Write InStr function. Write the test cases for this function?Write function that counts the number of primes in the range [1-N]. Write the test cases for this function?