Manual Test Cases - nikibrodin/1DV610_L2 GitHub Wiki
- Test case 1, Login
- Test case 2, Logout
- Test case 3, Cookies
- Test case 4, Register
- Test case 5, Reminders
- Test case 6, Create reminder
- Test case 7, Delete reminder
Normal navigation to page, page is shown.
Todays date is shown as: [Day of week], the [day of month numeric]th of [Month as text] [year 4 digits]. The time is [Hour]:[minutes]:[Seconds]. Example: "Monday, the 8th of July 2015, The time is 10:59:21".
- Clear existing cookies
- Navigate to site.
- The text "Not logged in", is shown.
- A form for login is shown
- Todays date and time is shown in correct format.
Make sure login cannot happen without entering any fields
- Testcase 1.1
- Make sure both username and password is empty
- Press "login" button
- The text "Not logged in", is shown.
- Feedback: “Username is missing” is shown
- A form for login is shown
Make sure login cannot happen without entering both fields
- Testcase 1.1
- Enter a username "Admin" and let password be empty
- Press "login" button
- The text "Not logged in", is shown.
- Feedback: “Password is missing” is shown
- A form for login is shown.
- "Admin" is filled in as username
Make sure login cannot happen without entering both fields
- Testcase 1.1
- Enter a password "Password" and let UserName be empty
- Press "login" button
- The text "Not logged in", is shown.
- Feedback: “Username is missing” is shown
- A form for login is shown.
- Password is empty
Make sure login cannot happen without correct password
- Testcase 1.1
- Enter a password "password" <-(NOTE THE LITTLE 'p') and let UserName be "Admin"
- Press "login" button
- The text "Not logged in", is shown.
- Feedback: "Wrong name or password" is shown
- A form for login is shown.
- Password is empty
- "Admin" is filled in as username
Make sure login cannot happen without correct username even if some user has that password
- Testcase 1.1
- Enter a password "Password" and let UserName be "admin" <-[Note the little 'a']
- Press "login" button
- The text "Not logged in", is shown.
- Feedback: "Wrong name or password" is shown
- A form for login is shown.
- Password is empty
- "admin" is filled in as username
Make sure login will happen if correct username and password is used
- Testcase 1.1
- Enter a password "Password" and let UserName be "Admin"
- Press "login" button
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- Feedback: "Welcome" is shown
- A button for logout and create reminder is shown.
- (No login form)
Make sure we are kept logged in after a reload of the page
- Testcase 1.7
- Reload the page without entering any information. (Select URL and press enter)
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- No feedback is shown
- A button for logout and create reminder is shown.
Make sure we are kept logged in after a reload of the page
- Testcase 1.7
- Reload the page without entering any information. (Resend POST information with f5)
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- No feedback is shown
- A button for logout and create reminder is shown.
Make sure we are logged in all windows and tabs of the same browser
- Testcase 1.7
- Open another browser window or tab and enter the same adress as in Test case 1.1
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- No feedback is shown
- A button for logout and create reminder is shown.
Make sure we are logged out after pressing logout
- Testcase 1.7
- Press "logout" button
- The text "Not logged in", is shown.
- The feedback "Bye bye!" is shown
- An empty form for login is shown.
Make sure we are logged out after closing the browser
- Testcase 1.7
- Close the browser (every tab)
- Restart the browser
- Navigate to the URL
- See testcase 1.1
Make sure that we are REALLY logged out...
- Testcase 1.9
- press logout in one window/tab
- go to the other window/tab and reload (by selecting URL and press enter)
- First tab: "Bye bye!"
- second tab: "No feedback"
- Both tabs: login form is shown
- Both tabs: "Not logged in"
Make sure we are logged out after closing the browser
- Testcase 1.7
- Press logout
- Resend the POST information by reloading with F5
- See testcase 1.1
- No message is shown
Normal navigation to page, page is shown.
- Clear existing cookies
- Navigate to site.
- Test case 1.1 Navigate to page
- Enter Username "Admin"
- Enter Password "Password"
- Select "Keep me logged in"
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- The feedback "Welcome and you will be remembered" is shown
- A logout button and create reminder button is shown
- Client has cookies for username and password, username is "Admin", password is a random string, unreadable
- Test case 3.1
- Reload page
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- No feedback is shown
- A logout button and create reminder button is shown
- Client has cookies for username and password, username is "Admin", password is a random string, unreadable
- Test case 3.1
- Stop the session by closing the browser window (or remove the session cookie called "PHPSESSID" )
- (Re)load the page before the cookies end date
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- Feedback "Welcome back with cookie" is shown
- A logout button and create reminder button is shown
- Client still has cookies for username and password, username is "Admin", password is a random string, unreadable
Make sure login attempts fail if cookies are manipulated.
- Test case 3.1
- Remove the PHPSESSID cookie
- Change the content of the password cookie (For example by FireBug plugin for Firefox)
- Reload the page by selecting URL and press Enter
- Feedback "Wrong information in cookies"
- The text "Not logged in" is shown
- Cookies for login is removed (only PHPSESSID cookie is left)
Make sure login attempts fail if cookies are manipulated to last longer.
- Test case 3.1
- Remove the PHPSESSID cookie
- Change the expiration-time of the username and password cookies (For example by FireBug plugin for Firefox)
- Wait until the original expiration time has gone out.
- Reload the page by selecting URL and press Enter
- Feedback "Wrong information in cookies"
- The text "Not logged in" is shown
- Cookies for login is removed (only PHPSESSID cookie is left)
Make sure a session cookie is not valid in another browser.
- Start two different browsers (B1 and B2), for example one FireFox and one Chrome browser.
- B1. Test case 1.7 (Login)
- B2. Test case 1.1 (Navigate to page)
- B1. Copy the PHPSESSID cookie values
- B2. Create a copy of the PHPSESSID cookie from B2 by changing its value to the same line
- B2. Reload the page in B2
- B2. No Feedback given
- B2. The text "Not logged in" is shown
- B1. Still logged in...
Make sure a cookie-password are not based on the true users password.
- Test case 3.1, Login with "Keep me logged in"
- Check the password cookie, it should look random and may not contain the true password
Make sure a cookie password are not the same every time...
- Test case 3.1, Login with "Keep me logged in"
- Make note of the first cookie password value
- Logout, remove all cookies
- Test case 3.1, Login with "Keep me logged in"
- Make note of the second cookie password value
- The two password cookie values should not be the same
When user wants to register a registration form should be shown.
- Test Case 1.1 Navigate to site.
- Press "Register a new user"
- The text "Not logged in", is shown.
- A form for Registration of a new user is shown
- A button/link with text "Back to login" is shown.
- Test case 4.1. Show Register Form
- Click "Back to login"
- No feedback message
- The text "Not logged in", is shown.
- Form for login is shown
- Test case 4.1. Show Register Form
- Click "Register" button without filling in any fields
- Message "Username has too few characters, at least 3 characters. Password has too few characters, at least 6 characters."
- The text "Not logged in", is shown.
- Still shows the register form
- Test case 4.1. Show Register Form
- Enter a valid name with at least 3 characters not entered before like "admina"
- Click "Register" button
- Message: "Password has too few characters, at least 6 characters."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in.
- Test case 4.1. Show Register Form
- Enter an invalid name with 2 characters like "ad"
- Enter a valid password like "Password"
- Enter the same repeat password like "Password"
- Click "Register" button
- Message: "Username has too few characters, at least 3 characters."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in, like "ad".
- Test case 4.1. Show Register Form
- Enter a valid name with at least 3 characters not entered before like "admina"
- Enter a invalid password like "Passw"
- Enter the same repeat password like "Passw"
- Click "Register" button
- Message: "Password has too few characters, at least 6 characters."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in, like "admina".
- Test case 4.1. Show Register Form
- Enter a valid name with at least 3 characters not entered before like "admina"
- Enter a valid password like "Password"
- Enter another valid repeat password like "Losenord"
- Click "Register" button
- Message: "Passwords do not match."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in, like "admina".
- Test case 4.1. Show Register Form
- Enter a valid name with at least 3 characters that is already registered like "Admin"
- Enter a valid password like "Password"
- Enter the same valid repeat password like "Password"
- Click "Register" button
- Message: "User exists, pick another username."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in, like "Admin".
- Test case 4.1. Show Register Form
- Enter a username with at least 3 characters and add a html tag around it like, abc
- Enter a valid password like "Password"
- Enter the same valid repeat password like "Password"
- Click "Register" button
- Message: "Username contains invalid characters."
- The text "Not logged in", is shown.
- Shows the register form with the name filled in but without the tag, like "abc".
- Test case 4.1. Show Register Form
- Enter a username with at least 3 characters not registered before like, abc
- Enter a valid password like "Password"
- Enter the same valid repeat password like "Password"
- Click "Register" button
- Message: "Registered new user."
- The text "Not logged in", is shown.
- Shows the login form with the name filled in.
- Test case 4.10
- Test case 1.7, but with registered user credentials
- See TC1.7
- Testcase 1.7
- Navigate to site.
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a list of reminders if not empty.
- Feedback: "Welcome" is shown
- A button for logout and create reminder is shown.
- (No login form)
- Testcase 1.7
- Navigate to site.
- Click "Create reminder"
- The text "Logged in", is shown.
- The text "Reminders", is shown.
- A form for creating a reminder is shown.
- A button for logout is shown.
- (No login form)
- Testcase 6.1
- Navigate to site.
- Fill reminder field with "Reminder".
- Click "create"
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and a reminder called "Reminder".
- A button for logout and create reminder is shown.
- (No login form)
- Testcase 6.2
- Navigate to site.
- Click the reminder called "Reminder"
- The text "Logged in", is shown.
- The text "Reminders", is shown with instructions and list of reminders if not empty.
- A button for logout and create reminder is shown.
- (No login form)