Write the test cases for a vending machine?



Write the test cases for a vending machine?..

Answer / ankit jain

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.

Is This Answer Correct ?    13 Yes 7 No

Post New Answer

More Project Planning Interview Questions

How would you deal with a bug that no one wants to fix? Both the SDE and his lead have said they won?t fix it?

0 Answers   Microsoft,


Scenario: -------- -- You are a project manager in a large software house of 375 staff in total. The company has been running for 5 years. The company has been CMM assessed at level 3. The company has many external clients for whom it develops a wide range of business applications. -- Most of the company‘s applications are developed in Java. The waterfall lifecycle development model is normally used in developments. -- The company has historically suffered from the type of problems that are common in the software industry. In particular systems have been delivered not always to user requirements and containing faults. The managing director of the company is very keen for improvements to be made in these areas. -- You are in charge of a project team of 8 developers, 2 requirements engineers and 3 testers. Your team is just about to start a new development. System to Develop :( Exact Question ) ------------------------------------- -- Your team is about to start to develop a novel vehicle navigation system for physically impaired drivers. The navigation system not only identifies the correct route for the driver in the normal way, but also controls the steering wheel to navigate the car to the destination identified by the driver. -- A basic statement of requirements has been received from the customer and budget and timescales have been formalised into a contract. Requires TASK to write : ------------------------ -- You must write a short report (maximum of 1 page) for the managing director of your company outlining how you propose to ensure that this project improves on previous projects in terms of delivering to user requirements and without faults. Your report must include how you propose to show improvement on these issues to your managing director. Also please tell me how should I choose the best software model when given scenarios like these ...?

1 Answers  


What are the documents that you will refer to create the plan?

1 Answers  


Where and how are the risks associated with your project identified and documented?

2 Answers  


What is the project management structure in your project? Is a PL assigned to the project?

0 Answers   ABC,






How did you choose the appropriate lifecycle for your project?

0 Answers   HCL,


What training have you undergone in project planning?

0 Answers   Microsoft,


How do you write unit test cases ?

6 Answers   College School Exams Tests, Microsoft,


What is the role of CLR in ASP.NET?

0 Answers  


Given a MAKEFILE (yeah a makefile), design the data structure that a parser would create and then write code that iterates over that data structure executing commands if needed.

0 Answers   Microsoft,


Write a function that inserts an integer into a linked list in ascending order. Write the test cases for this function.

0 Answers   Microsoft,


Write the InStr function. Write the test cases for this function?

2 Answers   Microsoft,


Categories