This question is asked in many interviews. This is the fundamental question, so many companies opt for this question. If you apply for the software testing position, you should know how to write good test cases. In this post, we will discuss how to write test cases for lift. You can also read our post on how to write test cases for banking application.
Let us understand how we can write test cases for lift.
Functional Test Cases for Lift
- You need to check that the lift is made with which material(Like iron or steel).
- Check the type of doors.
- Check that there is any switchboard present or not.
- How many buttons are there in that switchboard.
- When you press the open button, does the lift open or not.
- What will happen when you press the open button twice.
- Check the lift’s response when you press the open button, and the lift is moving between two floors.
- What happens when you hold the open button for some time.
- Check the sound when the lift is opening.
- Check the sound when the lift is closing.
- When you enter into the lift, you can press the up button and then check in which direction you are moving.
- When you enter into the lift, you can press the down button and then check in which direction you are moving.
- Check that is there any light available in the lift.
- Is there any fan available in the lift.
- What if the lift is overloaded? Does any alarming sound occur?
- What happens when the lift is moving, and a power failure occurs. Does the alarm blow in the control room?
- When you enter the lift and assume two persons are there in the lift(4 floors available). The lift is on the 2nd floor. The first person presses the 3rd-floor button, and 2nd person presses the 1st-floor button and then checks the lift’s response.
Negative test case’s
- Add persons more than the specified weight, and then you can check the response of the lift.
- Create fire or smoke in the lift and then check that is there any alarming sound in the lift.
- When you press the open button, and the lift is moving, check the lift’s response.
- When you press the stop button, and the lift is moving, check the lift’s response.
- What will happen when you try to open the doors when the lift is moving forcefully.
- You can observe the working of the lift when the power is on low voltage.
- When the lift is operating, and suddenly the power failure occurs, check the lift’s response.
- When you enter into the lift and suppose there are Six floors available, you press the 1st-floor button, then the 3rd-floor button, then the 2nd-floor button, and then the 4th-floor button. Now check the response of the lift.
- What will happen when you try to close the door of the lift forcefully.
Performance Test cases of lift
- Check the speed of the lift. In how many times the lift moves from one floor to another and from the ground floor to the top floor.
- Check the performance of the lift if it crosses the specified capacity.
- How the lift operates when a sudden power failure occurs.
We have discussed some of the possible test cases of lift. In this case, we have assumed that passengers use this lift. You can write more test cases on the lift. If you have more test cases in mind, do let us know in the comments. In case of any doubt or query, you can let us know in the comments. We will try to resolve your question as soon as possible.