Test Case for E-Commerce Site (login)

LOGIN-1: Normal User Login
Purpose:
Test that users can log into the system with the proper user ID and password.
Prerequisites:
User is not logged into the system. The user account ‘test.user’ exists and is in good standing.
Test Data:
User ID
test.user
Password
testing4U
Steps:
1. Visit Login page.
2. Enter the User ID stated above.
3. Enter the Password stated above.
4. Click the Submit button.
Verify Results:
5. The user is logged into the user administration page.
Post-Test:
6. Click the Logout button.
Notes and Questions:

LOGIN-2: Invalid User ID
Purpose:
Test that a user receives an error message when they attempt to log into the system with an invalid User ID.
Prerequisites:
User is not logged into the system. The user account ‘test.user’ exists and is in good standing.
Test Data:
User ID
bad.userId
Password
testing4U
Steps:
1. Visit Login page.
2. Enter the User ID stated above.
3. Enter the Password stated above.
4. Click the Submit button.
Verify Results:
5. The user is returned to the login screen.
6. An error message is displayed to the user stating ‘invalid Login credentials.’
Post-Test:
7. Click the Logout button.
Notes and Questions:


LOGIN-3: Invalid Password
Purpose:
Test that a user receives an error message when they attempt to log into the system with an invalid Password.
Prerequisites:
User is not logged into the system. The user account ‘test.user’ exists and is in good standing.
Test Data:
User ID
test.user
Password
testing
Steps:
1. Visit Login page.
2. Enter the User ID stated above.
3. Enter the Password stated above.
4. Click the Submit button.
Verify Results:
5. The user is returned to the login screen.
6. An error message is displayed to the user stating invalid Login credentials.’
Post-Test:
7. Click the Logout button.
Notes and Questions:

LOGIN-4: Required Fields Not Entered
Purpose:
Test that users receive error messages when required fields are not entered in the Login form.
Prerequisites:
User is not logged into the system.
Test Data:
User ID
Password
Steps:
1. Visit Login page.
2. Enter the User ID stated above.
3. Enter the Password stated above.
4. Click the Submit button.
Verify Results:
5. The user is returned to the Login page.
6. An error message is displayed for each required field stating ‘<FIELD NAME> is required.’
Post-Test:
7. Click the Logout button.
Notes and Questions:

LOGIN-5: Reset Button
Purpose:
Test that the Reset button on the Login page resets the form to its original state.
Prerequisites:
User is not logged into the system.
Test Data:
None
Steps:
1. Visit Login page.
2. Click the Reset button.
Verify Results:
3. The user is returned to the Login page.
4. All fields in the form are reset to their original state.
Post-Test:
5. Click the Logout button.
Notes and Questions:

No comments: