Interview Questions, Answers and Tutorials

Test Case for E-Commerce Site (login)

Test Case for E-Commerce Site (login)

LOGIN-1: Normal User Login

Purpose:
Test that users can log in to the system with the proper user ID and password.

Prerequisites:
The 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_answers

Test Steps:
1. Visit the 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.
7. 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:
The 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: testing_answers

Steps:
1. Visit the 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.
8. 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:
The 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 the 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.
8. 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:
The user is not logged into the system.

Test Data:
User ID
Password

Steps:
1. Visit the 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.
8. 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:
The user is not logged into the system.

Test Data:
None
Steps:
1. Visit the 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.
6. Notes and Questions.