LRT Ticketing System - Software Testing
 

 
  The objective of software testing is to uncover as many errors as possible. There are 2 basic types of testing which we can make use of in our software testing. They are the white box testing, which examine the internal logic and black box testing, which focus on the program inputs and outputs.

In our project, we have decided to engage black box testing (unit testing) to test our system. This is becase we have only one module. We have developed a comprehensive set of test cases and procedures to test our system. The test cases are listed below :

Case 1: Source: Station 7, Destination: Station 5
Expected Result : Price: 90 cents, Distance Travelled: 7.7, Time taken: 17.0

Case 2: Source: Station 5, Destination: Station 7
Expected Result : Price: 60 cents, Distance Travelled: 2.8 , Time taken:3.5

Case 3: Source: Station 0, Destination: Station 0
Expected Result : Price: 60 cents, Distance Travelled: 0, Time taken: 0

Case 4: Source: Station 0, Destination: Station 1
Expected Result : Price: 60 cents, Distance Travelled: 1km , Time taken: 0.8min

Case 5: Source: Station 1, Destination: Station 2
Expected Result : Price: 60 cents, Distance Travelled: 1km , Time taken: 0.8min

Case 6: Source: Station 1, Destination: Station 4
Expected Result : Price: 70 cents, Distance Travelled: 5km , Time taken: 3.3min

Case 7: Source: Station 2, Destination: Station 9
Expected Result : Price: 80 cents, Distance Travelled: 11.5km , Time taken: 7.3min

Case 8: Source: Station 14, Destination: Station 1
Expected Result : Price: 60 cents, Distance Travelled: 17.5km , Time taken: 10.9min

 
     
1