You are on page 1of 3

ONLINE VOTING SYSTEM

Use Case Specifications

Admin-System Interaction

Use Case: Login


ID: 1
Description: Allows users to log in to the system
Actors: Students, Admin
Preconditions: User must have valid credentials
Main flow:
1. User enters username and password.
2. System validates user credentials.
3. User is redirected to the dashboard.
Postconditions: User is authenticated and logged in

User-System Interaction

Use Case: View Elections


ID: 2
Description: Displays a list of available elections
Actors: Students, Admin
Preconditions: User is logged in
Main flow:
1. User selects the "View Elections"
2. System retrieves election data.
3. List of elections is presented.
Postconditions: List of elections is displayed

Use Case: Vote

ID: 3

Description: Allows students to cast their votes

Actors: Students

Preconditions: User is logged in


Main flow:
1. User selects an election to vote in.
2. User makes selections and submits the vote.

Postconditions: Vote is successfully submitted

Use Case: Manage Elections

ID: 4

Description: Create, edit, or delete elections

Actors: Admin

Preconditions: User is logged in and is an admin

Main flow:
1. Admin selects "Manage Elections."
2. System presents a list of elections.
3. Admin performs the desired action.

Postconditions: Election is created, edited, or deleted.

Use Case: View Results

ID: 5

Description: Display the results of an election

Actors: Students, Admin

Preconditions: Election is completed

Main flow:
1. User selects an election to view.
2. System retrieves and displays the election results.
Postconditions: Election results are displayed

Use Case: Logout

ID: 6

Description: Logs the user out of the system

Actors: Students, Admin

Preconditions: User is logged in

Main flow:
1. User selects "Logout."
2. System logs the user out.

Postconditions: User is logged out

You might also like