This question is asked in many interviews regardless of years of experience. I have noticed that the more experience you have the more basic questions like these appear. So here are some of my test scenarios and negative test cases for Elevator aka Lift.
Test Scenarios for Lift
You can come up with plenty of test scenarios but for the easy to remember way, I suggest following test scenarios.
Assum lift takes max. 300KG weight. So by applying the booundary value analysis we can decide on more test cases.
- How much weight lift can take to go up?
- How much weight lift can take down w.r.t to specified weight?
LIft has a number pad and few controls to operate itself.
- Are the controls self explanatory?
- Are the controls usable by blind person?
- Are the controls guided by voice message?
- Is the functionality of the lift as per specification?
- Is the control functioning as it is supposed?
- What happens when the lift is overweight, does it still work?
- What happens if the auto-close functionality is not working?
- Is the control pad comfortable to use?
- Is the experience inside lift makes the person uncomfortable due to gravity pull?
- Is the lift making noise while going up or down?
Height, Weight & Volume
The test cases on the height, weight and volume can be made based on the specifications. Few more test cases that can be added into this are as follows:
- How much time it takes to reach every floor?
- How much time it takes from the top of the building to the ground floor?
- How many people the lift can take regardless of their weight?
- What happens when the lift takes more people than the capacity?
- What happens to the people inside lift when the power failure happens?
- How many runs lift can make on power backup?
- Does the lift shows right number on the floor?
- Does the lift gets blocked when more than 1 floor makes request?
Negative Test Cases for Lift
- Add one more person than the specified weight and check the response of lift.
- Add more number of people regardless of weight and check the volume limitations of lift.
- Create smoke or fire inside lift and check the response.
- Try pressing the open button while the lift is moving.
- Press the stop button before reaching the specific floor.
- Put small obstacles near the sensors that detect auto-close functionality.
You can ofcourse come up with many more test cases based on the available data. I hope the test cases here have helped you during your interviews or for your own personal use. Let me know your suggestions in commments 🙂