In most of the cases interviewer ask to write test cases. Today I am helping myself in writing test cases for elevator (lift).But before start writing test case I would like to cast our attention on one of the best thing that is ensured by Software Testing and This is nothing but the Software Quality.
So here I am taking the reference of one of the article “What does product quality really mean” written by Dr. David A Gravin, Ph.D professor of Business Administration Harvard Business School.
Through this article Dr Gravin has defined 5 approaches of defining the Quality of a product from 4 disciplines i.e. Philosophy, economics, Marketing and Operational management and these are as follows taken from onquality.blogspot.com
So I am using the same 4 disciplines that helps in defining the quality of a product for writing my test cases for elevator.
I am going to divide my test cases in these 4 disciplines
4- Operation Management
Test case for elevator
1- Verify the height and width and volume of life as per the requirement.
2- Verify that button for closing lift, opening lift, fan, emergency and all floor numbers should be there on button panel
3- Verify the presence of display where floor number appears
4- Verify floor number is being announced on each floor
5- Verify the light and aroma along with some instrumental music
6- Verify that maximum number of people and weight is written on wall and also verify all emergency instructions.
7- Verify up and down button outside the life
8- Verify the presence of sensor
1- Verify power used in operation since this is not the main concern here so I am just leaving this part.
1- Verify that lift is able to move up and down
2- Verify that lift is capable to stop on floors which are pressed in button panel
3- Verify that lift close when close button is placed or should close once after few time as per manual time
4- Verify that fan is working on pressing respective button
5- Verify the sensor
When lift is going to close and if someone has just put any object or body parts in between the lift’s doors
6- Verify the maximum weighing capacity of life by putting weight
7- Verify that when weight exceed from standard than it should give some alert message or some alert sound should ring
8- Verify that light and fan is running at power failure
9- Verify the jerk on power failure
10- Verify the speed of lift , it shouldn’t be fast
11- Verify that lift stops at right floor i.e. if user click on 2nd floor then lift should stop on 2nd floor not on 4th floor.
12- Verify the landing speed of lift
13- Verify the time between two successive floors.
14- Verify that lift doors can’t be open when lift is moving down or upward
15- Verify that lift doors are closed when no one is using it
16- Verify that once lift has crossed certain floor and some person has click to open lift then lift should open when lift comes down at that floor.
17- Some test cases that is basically based on Reliability
- Verify working of lift on power failure
- Verify working of lift once power comes
- Verify the working of lift once weight exceeds the standard weight.
1- Since this is mainly done if we are testing lift for sell purpose.
Friends I have tried and now it’s your turn to add value to these test cases.