ST-Manual Testing - 6 - Test cases for reference for 2nd User story
Test Case ID: TC-002-001
Test Case Name: Verify Successful Follow Category: Happy Path Test Case Description: This test case verifies if a user can successfully follow another user. Precondition: User A and User B exists in the system. Test Steps:
- User A logs in to the application
- User A navigates to User B's profile
- User A clicks on the Follow button
- System displays the success message: "You are now following User B" Test Data:
- User A: username = "userA", password = "passwordA"
- User B: username = "userB" Expected Results:
- User A should be able to follow User B successfully and the success message should be displayed.
Test Case ID: TC-002-002 Test Case Name: Verify Unsuccessful Follow Category: Negative Testing Test Case Description: This test case verifies if a user cannot follow the same user multiple times. Precondition: User A and User B exists in the system, and User A is already following User B. Test Steps:
- User A logs in to the application
- User A navigates to User B's profile
- User A clicks on the Follow button
- System displays an error message: "You are already following User B" Test Data:
- User A: username = "userA", password = "passwordA"
- User B: username = "userB" Expected Results:
- User A should not be able to follow User B again and the error message should be displayed.
Test Case ID: TC-002-003 Test Case Name: Verify Successful Unfollow Category: Happy Path Test Case Description: This test case verifies if a user can successfully unfollow another user. Precondition: User A and User B exists in the system, and User A is already following User B. Test Steps:
- User A logs in to the application
- User A navigates to User B's profile
- User A clicks on the Unfollow button
- System displays the success message: "You have unfollowed User B" Test Data:
- User A: username = "userA", password = "passwordA"
- User B: username = "userB" Expected Results:
- User A should be able to unfollow User B successfully and the success message should be displayed.
Test Case ID: TC-002-004 Test Case Name: Verify Unsuccessful Unfollow Category: Negative Testing Test Case Description: This test case verifies if a user cannot unfollow a user who they are not following. Precondition: User A and User B exists in the system, and User A is not following User B. Test Steps:
- User A logs in to the application
- User A navigates to User B's profile
- User A clicks on the Unfollow button
- System displays an error message: "You are not following User B" Test Data:
- User A: username = "userA", password = "passwordA"
- User B: username = "userB" Expected Results:
- User A should not be able to unfollow User B and the error message should be displayed.
Comments
Post a Comment