Write test case for 2 way switch

Questions by nishaarun   answers by nishaarun

Showing Answers 1 - 12 of 12 Answers

lavanya03

  • Jan 6th, 2008
 

1. Check whether two switches are present.
2. Check whether both switches are connected properly.
3. Check power supplies for both switches.
4. Check on/off conditions are working properly.
5. Check whether any electornic applicace connected to the 2-way switches should not get power supply when both switches are either in on state or off state.
6. Check whether any electornic applicace connected to the 2-way switches should get power supply when one switch is in on state and other is in off state or vice versa.

  Was this answer useful?  Yes

paulyog

  • Jan 18th, 2008
 

We have missed the important point. Apart from the test cases mentioned in the previous answer we ned to verify whether a bulb attached across the circuit glows when both the switches are turnd on , independently. Also what will happen after one switch is turned on and other turned off.

  Was this answer useful?  Yes

1.Check whether 2 switches are present 

2.Check it can be accessible from both swithces
3.Check whether the switches are present on 2 ends are working
4.Check whether the switch present in the front end is switched on the light isglowing if the other end of the switch is pressed the light should be off
5.Check whether the switch present in the back end is switched on the light is glowing if the front end of the switch is pressed the light should be off

  Was this answer useful?  Yes

The functional specification should tell us how we know whether the 2-way switch is turned off or turned on.  We can't assume the switch is attached to a circuit that illuminates a bulb.  All we know is that we have a 2-way switch.  Given this much information, and assuming there is some real-world applicaton that occurs when the switch is turned on, I would create the following test cases:

1) Title:  Turn switch on
       Precondition:  Switch is off and thing isn't happening
       Step: Turn switch on
       Expected Result:  Proper thing happens

2) Title:  Turn switch off
       Precondition: Switch is on and thing is happening
       Step: Turn switch off
       Expected Result:  Thing no longer happens

That's it!  I would write no more test cases until I get some answers about the functionality of the product.  Why waste my time?



  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