Aptitude Knowledge Question:
Write a set of test cases to adequately test this telephone system?
Answer:
A hotel telephone system can perform 3 functions:
• Call another hotel room by entering a room number (201 to 500)
• Call an external line by entering a 9, followed by the number
• Call various hotel services
• 0 = Operator
• 7 = Room Service
• 8 = Reception
Write a set of test cases to adequately test this telephone system
Positive/Valid Tests
<pre>Input Expected Result
----------------------
0 Operator
201 Room 201 (valid boundary)
405 Room 405 (valid partition)
500 Room 500 (valid boundary)
7 Room Service
8 Reception
9 Outside line</pre>
Negative/In-valid Tests
<pre>Input Expected Result
--------------------------
1 Error
6 Error
200 Error (invalid boundary)
501 Error (invalid boundary)
550 Error (invalid partition)</pre>
Any other button Error
Destructive Tests
What if I accidentally hit multiple buttons?
What if I entered an 0800 number without first
getting an outside line (operator should answer)
• Call another hotel room by entering a room number (201 to 500)
• Call an external line by entering a 9, followed by the number
• Call various hotel services
• 0 = Operator
• 7 = Room Service
• 8 = Reception
Write a set of test cases to adequately test this telephone system
Positive/Valid Tests
<pre>Input Expected Result
----------------------
0 Operator
201 Room 201 (valid boundary)
405 Room 405 (valid partition)
500 Room 500 (valid boundary)
7 Room Service
8 Reception
9 Outside line</pre>
Negative/In-valid Tests
<pre>Input Expected Result
--------------------------
1 Error
6 Error
200 Error (invalid boundary)
501 Error (invalid boundary)
550 Error (invalid partition)</pre>
Any other button Error
Destructive Tests
What if I accidentally hit multiple buttons?
What if I entered an 0800 number without first
getting an outside line (operator should answer)
Previous Question | Next Question |
Why do you consider testing to be necessary? | Describe what you understand about the term “Static Testing” and list 3 static testing techniques? |