Project Coordinator Question:

Download Job Interview Questions and Answers PDF

Write test cases for a vending machine?

Project Coordinator Interview Question
Project Coordinator Interview Question

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 Interview Questions And Answers PDF

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?