Bug 281 - Delayed error message for invalid station name input
Summary: Delayed error message for invalid station name input
Status: RESOLVED FIXED
Alias: None
Product: Group 9: Route Planning
Classification: Unclassified
Component: Interface (show other bugs)
Version: 1.0
Hardware: PC Mac OS
: Normal normal
Assignee: qiyuliang2-c
URL:
Depends on:
Blocks:
 
Reported: 2018-12-09 12:13 HKT by Henry
Modified: 2018-12-09 13:31 HKT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry 2018-12-09 12:13:01 HKT
Step to reproduce:
1. Run the program. In the "Route Planning System" menu, input 1 to choose "GetRoute". Then in the "GetRoute" menu, input 2 to choose "SearchByLeastTrans".
2. For "Please enter start station:", input Kowlooon Tong. Note that this input is invalid.
3. For "Please enter end station:", input Airport. Note that this input is valid.

Actual result:
After step 3, system prints "Invalid input!".

Expected result:
After step 2, system prints "Invalid input!" and restarts the input.

This problem is important as the actual message cannot specify which input is incorrect. If the first output is wrong, user should not waste the time to input the second station.

Please add a exception catcher right after the first input.
Comment 1 Henry 2018-12-09 12:18:41 HKT
And I just tested this in the SearchByTime option. It has the same problem.

Step to reproduce:
1. Run the program. In the "Route Planning System" menu, input 1 to choose "GetRoute". Then in the "GetRoute" menu, input 1 to choose "SearchByTime".
2. For "Please enter start station:", input Kowlooon Tong. Note that this input is invalid.
3. For "Please enter end station:", input Airport. Note that this input is valid.

Actual result:
After step 3, system prints "Invalid input!".

Expected result:
After step 2, system prints "Invalid input!" and restarts the input.

Please fix this while you are at it.
Comment 2 qiyuliang2-c 2018-12-09 12:34:10 HKT
Fixed.