Elevator Control Testing Challenge

Elevator controls are deceptively simple. Normally you just get in, poke a button, and off you go.

But, how often do you think about how they work? How are they tested? How would you test it?

There is a control both inside and outside an elevator.

The outside control calls an elevator depending on what direction a rider wants to go–if you want to go up for example, the elevator that’s already going up should be the one to stop.

The inside controller has more complexity. There are:

  • buttons for floors,
  • buttons to open and close the doors,
  • a phone to call for help if you get stuck,
  • a bell button that you can actually push whenever you want, even if you’re not stuck, which is fun,
  • a floor indicator
elevator buttons
“Ground floor: Perfumery, stationery, and leather goods, wigs and haberdashery, kitchenware and food. Going up…”

Using this information, and what you already know about elevators, what are the test cases you can think of? What edge cases might there be?

Here are a couple to get things started:

  • What happens if someone calls the elevator while it’s already moving?
  • What happens if someone summons the elevator to go UP, but they ask the elevator to go DOWN a floor instead?

Have fun!
– Fritz

Advertisements

4 thoughts on “Elevator Control Testing Challenge

  1. Don’t forget what it does during emergencies, or when the building shuts down for the night. Where does it park itself.? Doors opening only when the elevator is on the floor, etc…

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s