Test cases for login action
Once Brainiac is launched, the first screen that should appear is the log-in screen.
The user is then prompted to enter his/her username and password.
Note: To log in, a user must have an existing account. If not, then a new one must be created.
Possible Cases
- User enters a non-existing username, then clicks on "Login" button:
- Dialog box appears, showing error: "User Name does not exist"
- User clicks on 'OK' button
- dialog box closes
- user log-in screen is re-displayed
- User enters a valid user name (i.e. one that corresponds to an existing account), then presses the 'Login' button:
- If password field is left blank:
- A dialog box appears showing error: 'Invalid password'.
- User clicks on 'OK' button to close the dialog box
- Dialog box closes
- Log-in screen is redisplayed
- If user enters an incorrect password in the password field:
- A dialog box appears showing error: 'Invalid password'.
- User clicks on 'OK' button to close the dialog box
- Dialog box closes
- Log-in screen is redisplayed
- If user enters the correct password:
- Dialog box appears showing success message: 'You are now logged in'
- User clicks on the 'OK' button to close the dialog box
- Main Menu screen is displayed, where user may select a Study Buddy to play