Integration Tests - bounswe/bounswe2024group10 GitHub Wiki
TEST CASE 1
Test ID: 1
Title: Sign Up (FAIL)
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.
Pre-Conditions:
- This is a guest user.
- 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 page appears. |
Sign-Up page appears. |
Success |
2 |
Guest fills the information parts in sign up page with appropriate information |
name: Gulsen Sabak, email: [email protected], password: 1234, username: gsabak |
- |
Success |
|
3 |
Guest presses the Sign_Up button |
- |
There is an error message. You are already a member. |
Fail |
|
Post-Conditions:
TEST CASE 2
Test ID: 2
Title: Comment Creation
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1, 1.1.2.6.
Pre-Conditions:
- User is signed-in to the system.
- User is currently on a Post page
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
Click "Add Comment" button on comment section |
- |
An error message is displayed. |
An error message is displayed. |
Success |
2 |
Write a comment in "Comment" text input. |
How big cheetah |
In UI comment is displayed |
In UI comment is displayed |
Success |
3 |
Click the button to add the comment |
- |
In UI comment is displayed |
In UI comment is displayed |
Success |
Post-Conditions:
- Comment is saved to database.
- Information that holds the count of comments for that Post is updated (increased by 1).
TEST CASE 3
Test ID: 3.1
Title: Search user
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1, 1.1.3.2.
Pre-Conditions:
- User is signed-in to the system.
- User is currently on a Search Page
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
Click search icon from bottom bar |
gulsen |
- |
- |
Success |
2 |
Click search button on search bar. |
- |
Search page will be displayed. The user which has username “gulsen” will be shown |
The user “gulsen” is shown |
Success |
Post-Conditions:
Test ID: 3.2
Title: Search species
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1, 1.1.3.1.
Pre-Conditions:
- User is signed-in to the system.
- User is currently on a Search Page
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
Click search icon from bottom bar |
Egyptian Goose |
- |
- |
Success |
2 |
Click the search button on the search bar. |
- |
Search page will be displayed. The same family members with the species are shown. Also, the properties of the species is shown. |
Search page will be displayed. The same family members with the species are shown. Also, the properties of the species is shown. |
Success |
Post-Conditions:
Test ID: 3.3
Title: Search by family
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1, 1.1.3.2.
Pre-Conditions:
- User is signed-in to the system.
- User is currently on a Search Page
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
Click search icon from bottom bar |
house cat |
- |
- |
Success |
2 |
Click the search button on the search bar. |
- |
Search page will be displayed. The same family members with the species are shown. |
Search page will be displayed. The same family members with the species are shown. |
Success |
Post-Conditions:
TEST CASE 4
Test ID: 4
Title: Delete Comment
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1, 1.1.2.7.
Pre-Conditions:
- User is signed-in to the system.
- User is currently on a Post Page
- There exists a comment.
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
User clicks on the "Delete Comment" button |
- |
Handled in UI, the comment is gone |
- |
Success |
Post-Conditions:
- Comment is removed from the Database.
- Memory Post's comment count has decreased by 1.
TEST CASE 5
Test ID: 5
Title: Sign Up
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.
Pre-Conditions:
- This is a guest user.
- The user has not signed-up before.
Steps |
Actions |
Input Data |
Expected Output |
Actual Output |
Result |
1 |
Guest presses Sign-Up button |
- |
Sign-Up page appears. |
Sign-Up page appears. |
Success |
2 |
Guest fills the information parts in sign up page with appropriate information |
name: Gulsen Sabak, email: [email protected], password: 1234, username: gsabak |
- |
Success |
|
3 |
Guest presses the Sign_Up button |
- |
Guest is now a registered user. She is navigated to Homepage |
Guest is now a registered user. She is navigated to Homepage |
Success |
Post-Conditions:
- Homepage is open with user info displayed
- User can now login using username and password that was entered
TEST CASE 6
Test ID: 6
Title: Sign-In
Designed By: Gülşen Sabak
Related Requirements: 1.1.1.1.1.1.
Pre-Conditions:
- User is registered.
- 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. |
Sign-In page opens |
Success |
2 |
User fills username and password info |
username: gulsensabak , password: 1234 |
Sign-in |
Cannot sign-in. wrong password or username |
Fail |
Post-Conditions:
prepared by: Gülşen Sabak