use cases - felixalbrigtsen/asura-tmdb GitHub Wiki
| 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 doesn’t fill in admin name |
| 3.2 Manager doesn’t fill in initial password | |
| 3.3 Manager doesn’t submit | |
| Additional information | The following must be entered to create an admin: |
| - Admin username | |
| - Initial password |
| 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 doesn’t fill in “Tournament name” field |
| 2.2 Admin doesn’t fill in start and end time | |
| 3.1 Admin doesn’t submit the form | |
| Additional information | The following must be entered to create a tournament: |
| - Tournament name | |
| - Tournament start and end time |
| 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 doesn’t fill in “Team name” field |
| 4.2 Admin doesn’t fill in any team members | |
| 5.1 Admin doesn’t submit the form | |
| Additional information | The following must be entered to create a team: |
| - Team name | |
| - Team members |
| 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 can’t remove another manager |
| 3.2 Admin no longer exists, already deleted from database | |
| 5.1 Manager doesn’t 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 |
| 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 doesn’t submit |
| Additional information | To save the edited information at least one field must be filled out |
| 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 |
| 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 doesn’t submit | |
| Additional information | To save the edited information at least one field must be filled out |
| 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 |