Use Case: Vote - bounswe/bounswe2023group4 GitHub Wiki

Primary Actor: User

Goal in context: User wants to place bets on available polls

Preconditions:

  • User has installed the Prediction Polls App on their device or can access the app via a web browser and has an account with sufficient points to place a bet
  • There are available polls for the user to choose from

Main Success Scenario:

  1. User opens the Prediction Polls app.
  2. The app displays a list of available polls.
  3. User selects a discrete or continuous poll from the list.
  4. The app displays the poll details including the question and the available options or input type required.
  5. User selects an option or enters an input and chooses how many points to bet on it.
  6. User confirms the bet by clicking the "Place Bet" button.
  7. The app verifies that the user has enough points to place the bet. If the user does not have enough points, the app displays an error message indicating that the user does not have enough points to place the bet and prompts the user to purchase more points or reduce the bet amount. The user must adjust their bet before proceeding.
  8. If the user has enough points, the app deducts the number of points from the user's account and records the user's bet.
  9. The app displays a confirmation message to the user and updates the poll details to reflect the user's bet.

Exceptions:

  • If the user has less points than specified on bet, the app displays an error message indicating that the user does not have enough points to place the bet and prompts the user to reduce the bet amount. The user must adjust their bet before proceeding. If the user reduces their bet amount, the app will allow them to confirm the new bet amount before proceeding.

Priority: High

When available: First Increment

Frequency of use: Very often.

Channels to actor: Via the Prediction Polls app on a mobile device or web browser.