We have Coffee,Tea, and milk vending machine. If we put 5 Rupee coin milk should be the output. 2 Rupee- coffee should be the out put. 1 Rupee - Tea should be the out put.How many Testcases we can write? pls Specify them

Showing Answers 1 - 17 of 17 Answers

Ravikumar.S

  • Jul 3rd, 2006
 

Hi all

 we can use cause effort graph to derive test case. It is one type of test case design technique. Try it and send the reply.

  Was this answer useful?  Yes

raj

  • Jul 18th, 2006
 

totally we have to wright minimum 9 test cases. if u r going to check the mission with some other coins . u have to wright 3 cases for each coin. it mean if u wanna test with 50 np coin u have to wright test case for coffe milk and for tea

  Was this answer useful?  Yes

anirban

  • Feb 27th, 2007
 

There should be total 9 test cases,each of 3 for coffee,Tea and Milk.If you put one of the following coin in the vending machine,one test case rises as a pass and other two as fail.

  Was this answer useful?  Yes

Prasad

  • Apr 6th, 2007
 

I did not clearly understood why 9 test cases need to be written. If you want to test a coin other 5/2/1 let's say 50np, then

1) With 50np coin you should not get Milk
2) With 50np coin you should not get Coffee
3) With 50np coin you should not get Tea
4) With 5Re coin you should get Milk
5) With 2Re coin you should get Coffee
6) With 1Re coin you should get Tea

What are the other 3 test cases?

  Was this answer useful?  Yes

Guest

  • Apr 6th, 2007
 

And one more is that use 25np coin we can get 3 more cases for milk,tea,cofee.

i m not sure my ans is correct.please correct me...

  Was this answer useful?  Yes

hi
This is Mukti Nath

ur qestion was-
5 Rc=Milk
2 Rc=Coffee
1 Rc=Tea

Here total Test Cases should be 9.For ex

Input 5 Rc = Milk sould be output.
Input 5 Rc = Coffee should not be the output.
Input 5 Rc = Tea should not be the output.

Input 2 Rc = Coffee sould be output.
Input 2 Rc = Milk should not be the output.
Input 2 Rc = Tea should not be the output.

Input 1 Rc = Tea sould be output.
Input 1 Rc = Coffee should not be the output.
Input 1 Rc = Milk should not be the output.

  Was this answer useful?  Yes

sanjayvan

  • May 9th, 2008
 

1.validate the milkportion of the vender when the customer putting 5 repees?
2.validate coffee portion of the vender when the customer putting 2 repees?
3.validate tea portion of the vender when the customer putting 1 repees?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions