User Tests - bounswe/bounswe2024group1 GitHub Wiki
Test ID: UT-001 - Sign Up
Objective: Verify that the user can successfully create an account using the "Sign Up" page.
Preconditions:
- There is no precondition for this test, anyone having the deployed application link can test this functionality, hence create a new account.
Test Steps:
Step No. | Step Description | Expected Outcome | Observed Outcome | Status |
---|---|---|---|---|
1 | Open the "Login" page from the navigation bar . | The "Login" form is displayed with fields for username, password , "Don't have an account? Sign up" text. | The "Login" form is displayed with all required fields. | ✅ |
2 | Click on the "Sign Up" link. | The "Sign Up" form is displayed with fields for First Name, Last Name, Username, Email, Password, Country, and Experience Level. | The "Sign Up" form is displayed with all required fields. | ✅ |
3 | Enter "John" in the First Name field and "Doe" in the Last Name field. | The input fields accept the text and display "John" and "Doe" respectively. | The input fields accepted "John" and "Doe" and displayed them correctly. | ✅ |
4 | Enter "john_doe" in the Username field. | The field accepts the text and displays "john_doe". | The field accepted "john_doe" and displayed it correctly. | ✅ |
5 | Enter "[email protected]" in the Email field. | The field accepts the email and displays "[email protected]". | The field accepted "[email protected]" and displayed it correctly. | ✅ |
6 | Enter "password" in the Password field. | The field masks the input and displays dots or asterisks for the password. | The field masked the input and displayed dots or asterisks. | ✅ |
7 | Enter "TR" in the Country field. | The field accepts the input and displays "TR". | The field accepted "TR" and displayed it correctly. | ✅ |
8 | Select an option (e.g., "Beginner") from the Experience Level dropdown menu. | The dropdown expands, and the user can select an experience level. The selected option is displayed. | The dropdown expanded, and the "Beginner" option was selected and displayed correctly. | ✅ |
9 | Click the Create an account button. | The system processes the input, and a success message is displayed (e.g., "Account created successfully. Please verify your email."). | The system processed the input and displayed the success message. | ✅ |
10 | Check the email inbox for a verification email. | The verification email is received with a verification link. | The verification email was received with the correct verification link. | ✅ |
11 | Click the verification link in the email. | The account is verified, and the user is redirected to the login page. | The account was verified, and the user was redirected to the login page successfully. | ✅ |
Postconditions:
- A new user account is created and verified.
- The user is redirected to the login page after verification.
Test Data:
Field | Input Value |
---|---|
First Name | John |
Last Name | Doe |
Username | john_doe |
[email protected] | |
Password | password |
Country | TR |
Experience Level | Beginner |
Expected Result:
- The user is able to create an account and verify it without any errors.
- Any invalid input (e.g., missing fields, invalid email format) triggers appropriate error messages.
Observed Result: All steps passed successfully.
Result (Pass/Fail): Pass ✅
Test ID: UT-002 - Login Functionality
Objective: Verify that the user can successfully log in using the "Login" page.
Preconditions:
- The user is on the "Login" page:
/login
. - A valid user account exists with the following credentials:
- Username: john_doe
- Password: password
Test Steps:
Step No. | Step Description | Expected Outcome | Observed Outcome | Status |
---|---|---|---|---|
1 | Open the "Login" page from the navigation bar or by accessing the URL /login . |
The "Login" form is displayed with fields for Username and Password, and a Login button. | The "Login" form is displayed with all required fields and the Login button. | ✅ |
2 | Enter "john_doe" in the Username field. | The field accepts the text and displays "john_doe". | The field accepted "john_doe" and displayed it correctly. | ✅ |
3 | Enter "password" in the Password field. | The field masks the input and displays dots or asterisks for the password. | The field masked the input and displayed dots or asterisks. | ✅ |
4 | Click the Login button. | The system processes the input, and the user is logged in successfully. | The system processed the input, and the user was logged in successfully. | ✅ |
5 | Verify that the user is redirected to the homepage after logging in. | The user is redirected to the homepage (e.g., /home ) with their username displayed in the header. |
The user was redirected to the homepage, and their username was displayed in the header. | ✅ |
Postconditions:
- The user is logged into their account.
- The homepage or dashboard is displayed after a successful login.
Test Data:
Field | Input Value |
---|---|
Username | john_doe |
Password | password |
Expected Result:
- The user is able to log in successfully with valid credentials.
- Any invalid input (e.g., incorrect username or password) triggers appropriate error messages (e.g., "Invalid username or password").
Observed Result: All steps passed successfully.
Result (Pass/Fail): Pass ✅
Test ID: UT-003 - User Profile
Objective: Verify that user can see the necessary information on his profile page.
Preconditions:
- The user is a registered user to the system and logged-in.
Test Steps:
Step No. | Step Description | Expected Outcome | Observed Outcome | Status |
---|---|---|---|---|
1 | Open the "Profile" page from clicking on the icon the in the navigation bar. | User Profile page is displayed with username, profile photo, bio, questions, answers, followers/following, reputation information successfully. | User Profile page is displayed with username, profile photo, bio, questions, answers, followers/following, reputation information successfully. | ✅ |
Expected Result:
- The user is able to see her profile successfully.
Observed Result: All steps passed successfully.
Result (Pass/Fail): Pass ✅