# Different Scenarios for two elevators programmed to different floors

Assume there are two elevators programmed for stopping in odd and even floors.

i) What kind of test we need to do to ensure that the elevators working fine without any hassle.

ii) What are the different scenarios to be considered while designing this model.

I covered few of the base cases like,

• Checking boundary value analysis ( with Minimum floors(Include number of basements) and maximum floors)
• Different floors serving request based on whether the input is odd/even which elevator to serve the request.
• Say if a odd elevator going down/up and getting another odd floor request which is greater/lesser than current floor respectively, then this request has to served only after all the buttons got reset inside the floor and same for even elevator .

Any other corner cases to be considered? or Am I missing any base conditions itself?

P.S: This question is not an homework or assignment. I was asked this question in an interview.

• Is it a kind of homework? Commented May 22, 2018 at 10:08
• We seem to be getting lots of homework questions on here lately - even more than usual. @irs102info, I'm not going to give any answers (that's not what we're here for, unfortunately) but will say that I think you mean Equivalence Partioning - not Boundary Value Analysis. There aren't any values beyond the minimum or maximum that can be tested.
– dvniel
Commented May 22, 2018 at 10:14
• @theonlydanever, It's not an homework or any assignment. I got this question in an interview, where I told all the above scenarios. But still the interviewer was not satisfied with my coverage. Just to update my skills further I posted here. Commented May 22, 2018 at 11:39
• @AlexeyR. Nope it's not homework or any assignment, I was asked this question in an interview. Just gathering different ways to think. Commented May 22, 2018 at 11:39
• It really doesn't make any difference whether it was homework or an interview - it's not a real-life question whose answer might actually matter. Presumably the interview is over, and you will get the job or not according to how you answered then Commented Oct 19, 2018 at 21:30