Acceptance_Tests - Team-Confused/Group_Project GitHub Wiki
Acceptance Tests
List management
Given: A list exists
And: The user has requested to manage or edit the list
When: User selects a catagory to manage
Then: The user inputs the relavent data and the list is updated with the new information
Given: A list exists
And: The user has requested to manage or edit the list
But: the user selects multiple catagories
Then:ask the user to specifiy a single input to manage and return to selection menu
close program
Given: The program is running and the user is at the "home" menu
When: User selects "Close Program"
Then: Logout active users and close the program
Given: The program is running and the user is at the "home" menu
And: the user selects "Close Program"
But: a process is running (sort/filtering, reading data, etc.)
Then: inform the user that a process is running,the name of the process, and wait until the process has finished before completing the close program"
logout user
Given: The current user is logged in
When: The user logs out or is logged out
Then: save data of the user, empty list manager, set user status to ""logged out""
go to login/register screen"
Given: The current user is logged in
And: the user logs out or is logged out
But: there is a process running for that specific user
Then: have the process run in the background and continue to log out the user when it is finished: save data of the user, empty list manager, set user status to "logged out" and go to login/register screen
sort
Given: data is available to be sorted
And: the user is at window with the sort/filter button available
When: the user clicks sort/filter
And: the user selects which sort/filter options to follow
Then: the program returns to the main screen, displaying only the filtered events in the specified sort order
Given: data is available to be sorted
And: the user is at window with the sort/filter button available
And: the user clicks "sort/filter"
And: the user selects which sort/filter options to follow
But: there are one or more data points or elements with the same data value
Then: The element that occurs first (in order read) is listed first, and the process continues the program returns to the main screen, displaying only the filtered events in the specified sort order
Admin password reset
Given: A user account and a logged in admin
When: The admin resets the password.
Then: The user's password is reset to whatever the admin input.
Given: A user account and a logged in admin
When: The admin resets the password.
But: The password is blank
Then: The program asks for a new password.
User password reset
Given: A logged in user
When: the user resets the password
Then: the password is reset to the user's input
Given: A logged in user
When: the user resets the password
But: the password is blank
Then: the system asks for a new password
Given: A logged in user
When: the user resets the password
But: the current password is wrong
Then: the system asks for the correct password
Search
Given: a list of tasks
When: the user searches for a string
Then: the system displays tasks ordered based on how close they are to the string.
Given: a list of tasks
When: the user searches for a string
But: the string is empty
Then: The system asks for a search term
Given: a list of tasks
When: the user searches for a string
But: the list is empty
Then: The system outputs that the list is empty.
User Login
Given: A login page(username and password)
When: User attempts to login typing in his/her username or password
Then: Then the user is logged in and taken to the homescreen"
Given: A login page(username and password)
When: User attempts to login typing in his/her username or password
But: The system informs the user the information used is incorrect
Then:: The user types in the correct information and is taken to the home screen
Create Task
Given: A user is creating a task
When: The user inputs relevant data for that task.
Then : The task is created
Given: A task exits and user assigns label
When: User assigns a label to a task
Then: The label is assigned to the task
Given: A task exists then user adds a sub-task
When: User assigns a sub-task to a task
Then: The task has a sub-task
Given: A list and task exist
When : User assigns a created task to a list
Then: The task is added to a list
Register
Given: A new user tries to start the program
When: The new user enters in his/her information
Then: A user account is generated for the new user.
Given: A new user tries to start the program
When: The new user enters in his/her information
But: The system informs user that the inputed data doesn't meet the criteria
Then: User re-enters data meeting syste criteria and a user account is generated for the new user.