(back)          (Home)

 <<CARPARK MONITOR MODULE TESTING >>

   Flow chart of car monitor module

 

Test cases for the below module
Car in  Car out Close
Back  to Top 

 

 

 

 

 

 

 

 

 

Test case for CarPark Security System( Car In)

 Cyclomatic Complexity: V(G S) = Predicate Nodes + 1 = 6 

S/NO

Test cases/Data

Expected results

Actual result

1.1

Path 1 : 1,4,9,10, 11

 

From frmCarIn.form, on Menu Bar

 

Click : Car In

Card no = “2000009”

Click : Gate In

 

Error message:

“Invalid Card no!”

 

 

Returns to 9

OK

 

1.2

Path 2 : 9,10,13,18,21

From frmCarIn.form, on Menu Bar

 

Enter NRIC= “20001234”

Enter Slot no= “1”

Enter Level no = “1”

Click : Gate In

 

Car is parked to the available slot. 

 

 

 

Display :

The particular slot no is decreased on the screen.

OK

 

1.3

Path 3 : 1,4,9,10,13,14,17 

From frmCarIn.form, on Menu Bar

  

Enter NRIC= “20001234”

Click : OK

 

 

Message: “Car on Parking mode”

  

 

 

returns to 9

OK

 

1.4

Path 4 : 1,4,9,10,13,14,17 

From frmCarIn.form, on Menu Bar

  

Enter NRIC= “20001234”

Click : Exit

 

 

Message: “Car on Parking mode”

  

 

 

returns to main

OK

 

1.5

Path 5 : 1,4,9,10,13,18,19,20

 

From frmCarIn.form, on Menu Bar

  

Enter NRIC= “20000231”

Enter Slot no= “1”

Enter Level no = “1”

Click : ok

 

 

Error message:

“Slot 1 in level 1 is parked!”

  

returns to 18

OK

 

1.6

Path 6 : 1,4,9,10,13,18,19,20

 

From frmCarIn.form, on Menu Bar

 

Enter NRIC= “20000231”

Enter Slot no= “1”

Enter Level no = “a”

Click : ok

 

 

Error message:

“a is not a number!”

  

returns to 18

OK

 

1.7

Path 7 : 1,4,9,10,13,18,19,20

 

From frmCarIn.form, on Menu Bar

 

Enter NRIC= “20000231”

Enter Slot no= “1”

Enter Level no = “5”

Click : ok

 

 

Error message:

“invalid level!”

 

returns to 18

OK

Back  to Top 

 

 

 

 

 

 

 

 

 

Test case for CarPark Security System( Car Out) 

Cyclomatic Complexity: V(G S) = Predicate Nodes + 1 = 3 

S/NO

Test cases/Data

Expected results`

Actual result

2.1

Path 1 : 2,7,12,15 

From frmCarIn.form, on Menu Bar

 Click : Car Out

Card no = “20000231”

Click : ok

 

Car out of carpark. 

Returns to main

OK

 

2.2

Path 2 : 2,7,12,16

From frmCarIn.form, on Menu Bar

 Click : Car Out

Card no = “20000012”

Click : ok

 

Error Message:

“No record found!”

 Returns to main

OK

 

2.3

Path 3 : 2,7,8

 From frmCarIn.form, on Menu Bar

Click : Car Out

Click : ok

 

Error Message:

“Carpark empty”

 Returns to main

OK

Back  to Top 

 

 

 

 

 

 


Test case for CarPark Security System( Close)

Cyclomatic Complexity: V(G S) = Predicate Nodes + 1 = 1 

S/NO

Test cases/Data

Expected results`

Actual result

3.1

Path 1 : 1,3,6

From frmCarIn.form, on Menu Bar

Click: System User

Click : Exit

 

 

Returns to menu

 

OK

 

3.2

Path 2 : 1,3,6

Click: System User

From frmCarIn.form, on Menu Bar

Click : Edit

 

 

Returns to menu

 

OK

Back  to Top 

 

 

Hosted by www.Geocities.ws

1