Project Coordinator Question:
Write test cases for a vending machine?
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.
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.
Previous Question | Next 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? |