3 Use Cases
Jonas Jødestøl Haugland edited this page 2022-04-04 13:56:53 +02:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Use Case 1 Create admin

Action Create admin
Actor Manager
Pre-conditions Logged in as manager
Post-conditions A new admin is created
Basic path 1. Manager enters “View Admins” page
2. Manager enters “Create new admin” page
3. Manager fills inn necessary information and submits the form
Exception 3.1 Manager doesnt fill in admin name
3.2 Manager doesnt fill in initial password
3.3 Manager doesnt submit
Additional information The following must be entered to create an admin:
- Admin username
- Initial password

Use case 2 Create tournament

Action Create tournament
Actor Admin
Pre-conditions Logged in as admin or manager
Post-conditions A new tournament is created
Basic path 1. Admin enter “Create New Tournament” page
2. Admin fills inn necessary information
3. Admin submits form
Exception 2.1 Admin doesnt fill in “Tournament name” field
2.2 Admin doesnt fill in start and end time
3.1 Admin doesnt submit the form
Additional information The following must be entered to create a tournament:
- Tournament name
- Tournament start and end time

Use-case 3 Create team

Action Create team
Actor Admin
Pre-conditions Logged in as an administrator
Post-conditions A new team has been created
Basic path 1. Admin enters “View teams” page
2. Admin enters “Manage teams” page
3. Admin enters “Create new team” page
4. Admin fills inn necessary information
5. Admin submits form
Exception 4.1 Admin doesnt fill in “Team name” field
4.2 Admin doesnt fill in any team members
5.1 Admin doesnt submit the form
Additional information The following must be entered to create a team:
- Team name
- Team members

Use-case 4 Delete admin

Action Delete admin
Actor Manager
Pre-conditions Logged inn as manager
Post-conditions An admin is deleted
Basic path 1. Manager enters “View Admins” page
3. Manager enters “Remove Admin”
4. Manager selects the intended admin(s) to remove
5. Manager confirms choice
Exception 3.1 Manager cant remove another manager
3.2 Admin no longer exists, already deleted from database
5.1 Manager doesnt confirm choice
Additional information The following must be true to delete an admin
- Selected admin must still exist in the database
- Manager must confirm choice

Use-case 5 Manage tournament

Action Manage tournament
Actor Admin
Pre-conditions Logged in as an administrator
Post-conditions Selected tournament has been edited and saved
Basic path 1. Admin enters “Manage Tournament” page
2. Admin fills inn desired information
3. Admin submits changes
Exception 3.1 Admin doesnt submit
Additional information To save the edited information at least one field must be filled out

Use-case 6 Delete tournament

Action Delete tournament
Actor Admin
Pre-conditions Logged in as an administrator
Post-conditions The selected tournament is deleted
Basic path 1. Admin enters “Manage Tournament”
2. Admin deletes tournament
Exception There are no active tournaments
Additional information

Use-case 7 Manage team

Action Manage team
Actor Admin
Pre-conditions Logged in as an administrator
Post-conditions Selected team has been edited and saved
Basic path 1. Admin enters “View teams” page
2. Admin enters “Manage team” page
3. Admin fills inn desired information
4. Admin submits changes
Exception 3.1 There are no teams created
4.1 Admin doesnt submit
Additional information To save the edited information at least one field must be filled out

Use-case 8 Delete team

Action Delete team
Actor Admin
Pre-conditions Logged in as an administrator
Post-conditions Selected team has been deleted
Basic path 1. Admin enters “View teams” page
2. Admin enters “Manage team” page
3. Admin deletes team
Exception 2.1 There are no teams created
Additional information