You are on page 1of 7

Tag

No
Input condition A B C E E F G H I
1 Email is valid T F T T T T T T T
2 Password is valid T T T T T T T T T
3 Confirm password is valid T T T T T T T T F
4 First name is valid T T T T T T T F
5 Last name is valid T T T T T T F
6 Phone name is valid T T T T T F
7 Date of birth is valid T T T T F
8 Gender is checked T T T F
9 Address is valid T T F
10 "Register" button is clicked T T T T T T T T T
Output condition
1 Pass T F F F F F F F F
2 Print out error message F T T T T T T T T
Tag
K
T
F

F
T
Test case Description Expected outcome Tag
User should be able to view a list of products
Users view different products available on the within each category and navigate back to the A
1 web main page or other categories seamlessly.
B
User inputs keywords related to product in Relevant search results matching the
2 the search bar. keywords should be displayed to the user.

User should receive a message indicating that C


3 Users search the product name is invalid no products match the search criteria.

The selected product should be successfully D


added to the cart, and the cart total should
4 Users add products to the cart reflect the addition.

Users try to enter the negative number of the An error message will be displayed, requiring E
5 product in the cart users to enter a valid number.

F
Users will see a list of products added to the
6 Users view cart cart with their quantity and price.

G
Users do not choose the product and require The notice system does not have products to
7 payment pay, ask users to choose the product

H
A customer logged in by registered email and The system of notifications customers must
8 password. use email has not been registered
The user should receive a confirmation
A new user provides valid information to message upon successful registration and be I
9 register for an account. redirected to the login page.
The payment should be processed
User enters correct payment details during successfully, and the order should be K
10 checkout. confirmed.

User inputs incorrect payment details during The system should prompt the user to correct L
11 checkout. the payment information and try again.

A logged-in customer accesses their order The customer should see a list of their M
12 history from their account dashboard. previous orders with relevant details.

A user who is not logged in attempts to view The system should prompt the user to log in N
13 order history. or register before accessing order history.
A marketing user adds a new product to the
website's inventory with all required The new product should be successfully O
14 information. added and displayed on the website.

The system should not allow the addition of


P
A marketing user attempts to add a product the product and prompt the user to fill in all
15 without providing all required details. necessary information.
A marketing user sets up a new discount The discount promotion should be
promotion with valid start and end dates, as successfully created and applied to eligible N
16 well as percentage discount. products during checkout.
A marketing user tries to set up a discount The system should reject the creation of the
promotion with invalid start/end dates or an discount promotion and prompt the user to O
17 unrealistic percentage discount. enter valid information.

A sale user accesses a list of orders to The user should see a comprehensive list of P
18 manage. orders placed on the website.

A sale user changes the status of an order, The order status should be successfully N
19 e.g., updates it to "Shipped." updated in the system, reflecting the change.
A sale manager user accesses a list of all
orders and applies filters to narrow down the The user should see a filtered list of orders O
20 results. based on the specified criteria.
A sale manager creates a new user account The new sale user account should be
for another staff member responsible for successfully created and granted appropriate P
21 managing orders. access permissions.

An admin user accesses a comprehensive list


N
of all users registered on the website, The admin should see a list of users
22 including customers and staff members. categorized by their roles and access levels.

The changes should be successfully saved in O


An admin user modifies user information the system, and the user should be able to log
23 such as password, email, or contact details. in using the updated credentials.

You might also like