0% found this document useful (0 votes)
98 views

test cases for nopcommerce site log in

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

test cases for nopcommerce site log in

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

Test cases for nopcommerce site log in

Happy test cases :

▎Test Case 1

Test Case ID: TC001


Summary: Successful login with valid email and password.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: User is successfully logged in and redirected to the home page.
Actual Result: User is successfully logged in and redirected to the home page.

---

▎Test Case 2

Test Case ID: TC002


Summary: Successful login with "Remember me" option checked.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Enter a valid Password: StrongPass!123.

4. Check the "Remember me" checkbox.

5. Click on the Log in button.

Expected Result: User is successfully logged in, and the session is remembered for
future visits.
Actual Result: User is successfully logged in, and the session is remembered for
future visits.

---

▎Test Case 3

Test Case ID: TC003


Summary: Successful login without "Remember me" option checked.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Enter a valid Password: StrongPass!123.

4. Ensure the "Remember me" checkbox is unchecked.


5. Click on the Log in button.

Expected Result: User is successfully logged in without remembering the session for
future visits.
Actual Result: User is successfully logged in without remembering the session for
future visits.

---

▎Test Case 4

Test Case ID: TC004


Summary: Successful login with optional "Forgot Password" link used prior to login.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Click on the "Forgot password?" link.

3. Enter a valid Email: [email protected] and submit to receive reset


instructions.

4. Follow reset instructions and set a new password: NewStrongPass!123.

5. Return to the login page: Login.

6. Enter a valid Email: [email protected].

7. Enter the new Password: NewStrongPass!123.

8. Click on the Log in button.

Expected Result: User is successfully logged in with the new password after
resetting it.
Actual Result: User is successfully logged in with the new password after resetting
it.

---

▎Test Case 5

Test Case ID: TC005


Summary: Successful login with valid email and password after clearing browser
cache and cookies.
Steps:

1. Clear browser cache and cookies.

2. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

3. Enter a valid Email: [email protected].

4. Enter a valid Password: StrongPass!123.

5. Click on the Log in button.

Expected Result: User is successfully logged in and redirected to the home page
despite clearing cache and cookies.
Actual Result: User is successfully logged in and redirected to the home page
despite clearing cache and cookies.

---

▎Test Case 6

Test Case ID: TC006


Summary: Successful login with password saved in browser autofill feature.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Use browser autofill feature to fill in Password.

4. Click on the Log in button.

Expected Result: User is successfully logged in using autofilled password.


Actual Result: User is successfully logged in using autofilled password.

---
Unhappy test cases:

▎Test Case 1

Test Case ID: TC001


Summary: Unsuccessful login with invalid email format.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter an invalid Email: [email protected].

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: Error message indicating invalid email format is displayed.


Actual Result: Error message indicating invalid email format is displayed.

---

▎Test Case 2

Test Case ID: TC002


Summary: Unsuccessful login with incorrect password.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Enter an incorrect Password: WrongPass!123.

4. Click on the Log in button.


Expected Result: Error message indicating incorrect password is displayed.
Actual Result: Error message indicating incorrect password is displayed.

---

▎Test Case 3

Test Case ID: TC003


Summary: Unsuccessful login with empty email field.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Leave the Email field empty.

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: Error message indicating that the email field is required is
displayed.
Actual Result: Error message indicating that the email field is required is
displayed.

---

▎Test Case 4

Test Case ID: TC004


Summary: Unsuccessful login with empty password field.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Leave the Password field empty.

4. Click on the Log in button.

Expected Result: Error message indicating that the password field is required is
displayed.
Actual Result: Error message indicating that the password field is required is
displayed.

---

▎Test Case 5

Test Case ID: TC005


Summary: Unsuccessful login with both fields empty.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Leave both Email and Password fields empty.

3. Click on the Log in button.


Expected Result: Error messages indicating that both fields are required are
displayed.
Actual Result: Error messages indicating that both fields are required are
displayed.

---

▎Test Case 6

Test Case ID: TC006


Summary: Unsuccessful login with email not registered in the system.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a non-registered Email: [email protected].

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: Error message indicating that the account does not exist is
displayed.
Actual Result: Error message indicating that the account does not exist is
displayed.

---

▎Test Case 7

Test Case ID: TC007


Summary: Unsuccessful login with email and password containing special characters
not allowed by system policy.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter an Email: john.doe@exam!ple.com (contains special character).

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: Error message indicating invalid email format is displayed due to
special character usage.
Actual Result: Error message indicating invalid email format is displayed due to
special character usage.

---

▎Test Case 8

Test Case ID: TC008

Summary: Unsuccessful login with a very long email address exceeding character
limit.
Steps:
1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a long Email: [email protected] (over


256 characters).

3. Enter a valid Password: StrongPass!123.

4. Click on the Log in button.

Expected Result: Error message indicating that the email exceeds character limit is
displayed.
Actual Result: Error message indicating that the email exceeds character limit is
displayed.

---

▎Test Case 9

Test Case ID: TC009


Summary: Unsuccessful login with valid email but no internet connection.
Steps:

1. Disable internet connection on the device.

2. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

3. Enter a valid Email: [email protected].

4. Enter a valid Password: StrongPass!123.

5. Click on the Log in button.

Expected Result: Error message indicating no internet connection or unable to reach


server is displayed.
Actual Result: Error message indicating no internet connection or unable to reach
server is displayed.

---

▎Test Case 10

Test Case ID: TC010


Summary: Unsuccessful login with account locked due to too many failed attempts.
Steps:

1. Navigate to the login page: https://demo.nopcommerce.com/login?returnUrl=%2F

2. Enter a valid Email: [email protected].

3. Enter an incorrect Password: WrongPass!123 (repeat this step 5 times).

4. After multiple failed attempts, enter a valid Password: StrongPass!123.

5. Click on the Log in button.

Expected Result: Error message indicating that the account is locked due to too
many failed attempts is displayed.
Actual Result: Error message indicating that the account is locked due to too many
failed attempts is displayed.
---

You might also like