How would you test an elevator when the requirements are incomplete?
Answer
Clarify the building, users, capacity, accessibility and safety constraints, then model floors, doors, motion and service states. Cover normal trips, call ordering, capacity and boundaries, obstruction, emergency controls, power or sensor failures and recovery. Prioritize safety invariants first and state which specialist certification evidence is outside the interview exercise.
Strong answer includes
- asks clarifying questions before listing cases
- models states and safety invariants
- covers failure and recovery
Practical example
Asked to test an elevator, a candidate first clarifies: how many floors, what's the max capacity, is there a freight mode, does it need wheelchair accessibility? They then sketch states — doors open/closed/obstructed, idle/moving/emergency-stop — and walk through cases like two people calling the elevator from opposite directions on the same floor, a weight sensor detecting overload, and a power failure mid-transit triggering backup power and a phone line to the fire department, explicitly noting that full compliance certification testing is out of scope for this exercise.