Test Cases - bounswe/bounswe2018group7 GitHub Wiki

Test Case 1

Test ID: 1.1

Title: Memory Post Creation

Designed By: Cemal Burak Aygün

Related Requirements: 1.1.4.2

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on homepage.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click "New Memory Post" button on homepage header. - Memory Post creation page is displayed. ? ?
2 Write a title in "Memory Title" text input. The Maiden's Tower - ? ?
3 Write a story in "Memory Story" text input. According to a legend, an emperor has the tower built and places his daughter there to prevent a prophecy which tells that she will be killed by a venomous snake on her 18th birthday. On the 18th birthday, the emperor brings a basket of exotic fruits to his daughter. An asp which hides among the fruits bits the princess and kills her. - ? ?
4 Find and select the location of The Maiden's Tower in map. - - ? ?
5 Select a time (interval) from calender widget. 1700 - 1800 - ? ?
6 Choose an image file from computer. maidens_tower.png - ? ?
7 Write comma separated tags in "Tags" text input. maidens,tower,uskudar - ? ?
8 Click "Create Memory Post" button. - A success message is displayed and user is redirected to the newly created Memory Post page. ? ?

Post-Conditions:

  1. "maidens", "tower" and "uskudar" tags are saved to database.
  2. Memory Location is saved to database.
  3. Memory Time is saved to database.
  4. Memory Media is saved to database.
  5. Memory Post is saved to database.

Test ID: 1.2

Title: Memory Post Creation without Memory Title and Memory Time

Designed By: Cemal Burak Aygün

Related Requirements: 1.1.4.2, 1.3.9.7

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on homepage.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click "New Memory Post" button on homepage header. - Memory Post creation page is displayed. ? ?
2 Write a story in "Memory Story" text input. According to a legend, an emperor has the tower built and places his daughter there to prevent a prophecy which tells that she will be killed by a venomous snake on her 18th birthday. On the 18th birthday, the emperor brings a basket of exotic fruits to his daughter. An asp which hides among the fruits bits the princess and kills her. - ? ?
3 Find and select the location of The Maiden's Tower in map. - - ? ?
4 Choose an image file from computer. maidens_tower.png - ? ?
5 Write comma separated tags in "Tags" text input. maidens,tower,uskudar - ? ?
6 Click "Create Memory Post" button. - An error message (saying that the title cannot be empty) is displayed. ? ?
7 Write a title in "Memory Title" text input. The Maiden's Tower - ? ?
8 Click "Create Memory Post" button. - A success message is displayed and user is redirected to the newly created Memory Post page. ? ?

Post-Conditions:

  1. "maidens", "tower" and "uskudar" tags are saved to database.
  2. Memory Location is saved to database.
  3. Memory Media is saved to database.
  4. Memory Post is saved to database.

Test Case 2

Test ID: 2

Title: Comment Creation

Designed By: Cemal Burak Aygün

Related Requirements: 1.1.5.1, 1.3.15.1, 1.3.15.2

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on a Memory Post page.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click "Add Comment" button on comment section. - An error message (saying that comment cannot be empty) is displayed. ? ?
2 Write a comment in "Comment" text input. I miss the old days. You can see photos from old days of İstanbul here: https://in.pinterest.com/marisacm/istanbul-old-days - ? ?
3 Click "Add Comment" button on comment section. - Comment appears at the top of the comment section. Link "https://in.pinterest.com/marisacm/istanbul-old-days" is clickable. ? ?

Post-Conditions:

  1. Comment is saved to database.
  2. "Comment Count" information on Memory Post page is updated (increased by 1).

Test Case 3

Test ID: 3.1

Title: Search memory posts with tag

Designed by: Serdar Ada

Related Requirements: 1.1.7.1.2 , 1.3.17.2

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on homepage.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Write a tag in "Search Bar" #Üsküdar - ? ?
2 Click "Search" button on homepage header. - Search page will be displayed. Memory posts which have the specified tag will be shown at that page ? ?

Post-Conditions:


Test ID: 3.2

Title: Search memory posts with keyword

Designed by: Serdar Ada

Related Requirements: 1.1.7.1.1 , 1.3.17.1

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on homepage.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Write keywords in "Search Bar" Maiden's Tower - ? ?
2 Click "Search" button on homepage header. - Search page will be displayed. Memory posts which contan the specified keywords at their title or story will be shown at that page ? ?

Post-Conditions:


Test ID: 3.3

Title: Search users

Designed by: Serdar Ada

Related Requirements: 1.1.7.3 , 1.3.17.3

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on homepage.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Write keywords in "Search Bar" @muzafferyılmaz - ? ?
2 Click "Search" button on homepage header. - Search page will be displayed. User profile which contain the specified keywords at their username or real name will be shown at that page ? ?

Post-Conditions:

Test Case 4

Test ID: 4.1

Title: Ban A User Scenario (Successful)

Designed by: Enes Koşar

Related Requirements: 1.1.8.2.1

Pre-Conditions:

  1. A user who has behaved inappropriately.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click the username of the user to go to profile of the user. - The profile of the user must be displayed. ? ?
2 Click the "Three-Dot" button to see the options. - The options list must be listed. ? ?
3 Click the "Ban User" button. - A pop-up message must have been shown informing that the user is banned successfully. ? ?

Post-Conditions:

  1. "isBanned" field of the user has been changed to TRUE in the database.
  2. After being banned, the user cannot log in the system.

Test ID: 4.2.1

Title: Ban A User Scenario (Fail)

Designed by: Enes Koşar

Related Requirements: 1.1.8.2.1, 1.1.3.3

Pre-Conditions:

  1. A user who has behaved inappropriately.
  2. The user has deleted his/her profile immediately.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click the username of the user to go to profile of the user. - An error message saying that the user is not found. ? ?

Post-Conditions:

  1. No changes in the system due to some inconsistencies.

Test ID: 4.2.2

Title: Ban A User Scenario (Fail)

Designed by: Enes Koşar

Related Requirements: 1.1.8.2.1, 1.1.3.3

Pre-Conditions:

  1. A user who has behaved inappropriately.
  2. The user database has been halted for an unknown reason.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Click the username of the user to go to profile of the user. - The profile of the user must be displayed. ? ?
2 Click the "Three-Dot" button to see the options. - The options list must be listed. ? ?
3 Click the "Ban User" button. - An error message saying that there has been an error while accessing the database. ? ?

Post-Conditions:

  1. No changes in the system due to some inconsistencies.

Test Case 5

Test ID: 5

Title: Delete a Comment

Designed By: Dilruba Reyyan Kılıç

Related Requirements: 1.1.5.2 , 1.3.9.5

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on a Memory Post page.
  3. There exists a comment.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 User clicks on the "Delete Comment" button - The Comment is deleted from the viewed Memory Post ? ?

Post-Conditions:

  1. Comment is removed from the Database.
  2. Memory Post's comment count is be decreased by 1.

Test Case 6

Test ID: 6.1

Title: Edit Post (Successful)

Designed By: Dilruba Reyyan Kılıç

Related Requirements: 1.1.4.3.1

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on a Memory Post.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Clicks "Edit Memory Post" button. - Memory Post edit page is displayed. ? ?
2 Clicks on the title field to change the input. - Cursor appears on the title field. ? ?
3 Inserts text to change the title. The Galata Tower The Galata Tower appears on the title field on the edit page. ? ?
3 Click "Save Edits" button. - The title of the Memory Post is changed to "The Galata Tower" ? ?

Post-Conditions:

  1. Memory Title of the Memory Post is changed on the Database.

Test ID: 6.2

Title: Edit Post (Failed)

Designed By: Dilruba Reyyan Kılıç

Related Requirements: 1.1.4.3.1 , 1.3.9.7

Pre-Conditions:

  1. User is signed-in to the system.
  2. User is currently on a Memory Post.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Clicks "Edit Memory Post" button. - Memory Post edit page is displayed. ? ?
2 Clicks on the title field to change the input. - Cursor appears on the title field. ? ?
3 Deletes the title. The title field is empty. ? ?
4 Click "Save Edits" button. - An "A Memory Post must have a Title" Error appears. ? ?

Post-Conditions:

  1. Memory Post is not changed.

Test Case 7

Test ID: 7.1

Title: Sign-Up (Success)

Designed By: Ferhat Melih Dal

Related Requirements: 1.2.1

Scenario: Guest wants to sign-up

Pre-Conditions:

  1. This is a guest user.
  2. The user has not signed-up before.
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Guest presses Sign-Up button - Sign-Up form appears ? ?
2 Guest fills the form with appropriate information Melih Dal, crazy_cmpeboy_1863, email: [email protected], pswrd: ACollectionOfHistorySince_1966_ToThe_PresentDay# - ? ?
3 Guest adds a profile picture - Picture is accepted. ? ?
4 Guest presses the Sign_Up button - Guest is now a registered user. She is navigated to Homepage. ? ?

Post-Conditions:

  1. Homepage is open with user info displayed
  2. User can now login using username and password that was entered

Test ID: 7.2

Title: Sign-Up (FAIL)

Designed By: Ferhat Melih Dal

Related Requirements: 1.2.1

Scenario: A member wants to sign-up

Pre-Conditions:

  1. This is a guest user.
  2. The user has an account before, but still tries to sign-up
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 Guest presses Sign-Up button - Sign-Up form appears ? ?
2 Guest fills the form with appropriate information Melih Dal, crazy_cmpeboy_1863, [email protected], pswrd: ACollectionOfHistorySince_1966_ToThe_PresentDay# - ? ?
3 Guest adds a profile picture - Picture is accepted. ? ?
4 Guest presses the Sign_Up button - There is an error message saying "You are already a member. Forgot you password?" ? ?
5 Guest presses types her email address [email protected] - ? ?
6 Guest presses "I forgot my password" button. - - ? ?

Post-Conditions:

  1. An e-mail is sent to "[email protected]", containing email address and reset password instructions

Test Case 8

Test ID: 8

Title: Sign-In

Designed By: Ferhat Melih Dal

Related Requirements: 1.1.1

Pre-Conditions:

  1. User is registered.
  2. User has not sign-in yet
STEPS ACTIONS INPUT DATA EXPECTED OUTPUT ACTUAL OUTPUT RESULT
1 User presses the Sign-In button - Sign-In page opens ? ?
2 User fills username and password info usr_name: crazy_cmpeboy_1863, password: ACollectionOfHistorySince_1966_ToThe_PresentDay# - ? ?
3 User presses to sign in button - User is navigated to the Homepage ? ?

Post-Conditions:

  1. User specific content is retrieved to homepage