|
| |
(back)
(Home)
|
|
|
Flow
chart for main flow for system user module
Back to Top
|
|
Cyclomatic
Complexity : V(G) = Predicate Nodes + 1 = 2
|
|
S/No.
|
Test
Cases/Data
|
Expected
Result
|
Actual
Result
|
|
1.1
|
Path 1 : 1,2
Form frmMain.frm, menu bar
Click : System User à
Add
|
Go to system user - add module
|
OK
|
|
|
|
|
|
|
1.2
|
Path 2 : 1,3
Form frmMain.frm,
Click : System User à
Search
|
Go to system user - search module
|
OK
|
|
Back to Top
|
|
|
|
Flow
chart for Add system user module
Back to Top
|
|
Cyclomatic
Complexity : V(G) = Predicate Nodes + 1 = 4
|
|
S/No.
|
Test
Cases/Data
|
Expected
Result
|
Actual
Result
|
|
1.1
|
Path 1 : 1,2,3,8
Form frmNewUser.frm,
Status = Normal
Name = “Fred”
Password = “dd”
Confirm password = “dd”
Click : Exit
|
No new system user is added into the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.2
|
Path 2 : 1,2,3,4,5,2,3,8
Form frmNewUser.frm,
(a)
Status = Normal
Leave User name and password blank
Confirm password = ‘q’
Click : Add
Click : Ok (when
prompted error message)
Click : Exit
|
Error message :
“All fields must be entered” after
Click : Add
No new system user is added into the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
|
(b)
Status = Normal
User name = “Fred”
Password = ‘f’
Confirm password = “ff”
Click : Add
Click : Ok (when prompted error
message)
Click : Exit
|
Error message
: “Passwords are different. Please re-enter” after Click :
Add
No new system user is added into the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.3
|
Path 3 : 1,2,3,4,6,2,3,8
Form frmNewUser.frm,
Status = Normal
User name = “Fred”
Password = ‘f’
Confirm password = ‘f’
Click : Add
Click : No (when prompt
“Confirm add record?”)
Click : Exit
|
No new system user is added into the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.4
|
Path 4 : 1,2,3,4,6,7,8
Form frmNewUser.frm,
Status = Normal
User name = “Fred”
Password = ‘f’
Confirm password = ‘f’
Click : Add
Click : Yes (when prompt
“Confirm add record?”)
|
New system user is updated into the
database
Return to main screen (supervisor)
module
|
OK
|
Back to Top
|
|
|
|
Flow
chart for Search system user module
Back to Top |
|
Cyclomatic
Complexity : V(G) = Predicate Nodes + 1 = 9
|
|
S/No.
|
Test
Cases/Data
|
Expected
Result
|
Actual
Result
|
|
1.1
|
Path 1 : 1,2,14
Form frmSearch.frm,
User = 1
Option = System User ID
Click : Cancel
|
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.2
|
Path 2 : 1,2,3,4,1,2,14
Form frmSearch.frm,
Leave User field blank
Option = System User Name
Click : Search Now
Click : Ok (when prompted error
message)
Click : Cancel
|
Error message :
“Please enter User Name or ID” after
Click : Search Now
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.3
|
Path 3 : 1,2,3,5,6,1,2,14
Form frmSearch.frm,
User = “annie”
Option = System User Name
Click : Search Now
Click : Ok (when prompted error
message)
Click : Cancel
|
Error message :
“No User found. Please enter User Name or ID” after Click :
Search Now
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.4
|
Path 4 : 1,2,3,5,7,8,14
Form frmSearch.frm,
User = 1
Option = System User ID
Click : Search Now
Form frmFound.frm,
Click : Ok
|
Display the record :
User ID = 1
Name = “Andy”
Status = Supervisor
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.5
|
Path 5 : 1,2,3,5,7,8,9,11,10,7,8,14
Form frmSearch.frm,
User = “Betty”
Option = System User Name
Click : Search Now
Form frmFound.frm,
Edit Name = “Pat”
Click : Edit
Click : No (when prompt “Confirm
edit?”)
Click : Ok
|
Display the record :
User ID = 2
Name = “Betty”
Status = Normal
Record remains the same in the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.6
|
Path 6 : 1,2,3,5,7,8,9,11,10,15,14
Form frmSearch.frm,
User = “Betty Boo”
Option = System User Name
Click : Search Now
Form frmFound.frm,
Edit Name = “Betsy Boo”
Click : Edit
Click : Yes (when prompt “Confirm
edit?”)
|
Display the record :
User ID = 5
Name = “Betty
Boo”
Status = Normal
Edited record is updated into the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.7
|
Path 7 :
1,2,3,5,7,8,9,11,12,13,7,8,14
Form frmSearch.frm,
User = 1
Option = System User ID
Click : Search Now
Form frmFound.frm,
Click : Delete
Click : Ok (when prompted error
message)
Click : Ok
|
Display the record :
User ID = 1
Name = “Andy”
Status = Supervisor
Error message :
“Can’t delete last Supervisor Record” after Click : Delete
Record remains the same in the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.8
|
Path 8 :
1,2,3,5,7,8,9,11,12,16,7,8,14
Form frmSearch.frm,
User = 3
Option = System User ID
Click : Search Now
Form frmFound.frm,
Click : Delete
Click : No (when prompt “Confirm
delete?”)
Click : Ok
|
Display the record :
User ID = 3
Name = “Carol”
Status = Normal
Record remains the same in the
database
Return to main screen (supervisor)
module
|
OK
|
|
|
|
|
|
|
1.9
|
Path 9 :
1,2,3,5,7,8,9,11,12,16,15,14
Form frmSearch.frm,
User = “Dennis”
Option = System User Name
Click : Search Now
Form frmFound.frm,
Click : Delete
Click : Yes (when prompt “Confirm
delete?”)
|
Display the record :
User ID = 4
Name = “Dennis”
Status = Normal
Record is deleted from the database
Return to main screen (supervisor)
module
|
OK
|
|
Back to Top
|
|