Test case
SYSTEM TEST CAS
Project Name Lab4_G4 Creator
Project Code Lab4_G4 Reviewer/Approver
Issue Date
Document Code Lab4_G4 Version
Record of change
Effective Date Version Change Item *A,D,M Change description
<Date when these changes
YSTEM TEST CASE
huytdqhe173448
Reference
<List of documents which are referred in this version.>
Test case
TEST CASE LIST
Project Name Lab4_G4
Project Code Lab4_G4
Test Environment Setup Description 1. Server
No Workflow Name Sheet Name In Charge
1 System Configs System Configs huytdqhe173448
2 Shopping Cart Shopping Cart HieuNTHE171606
3 User User Account DatPTHE171311
4 Product List Product list daipvhe161222
Description Pre-Condition
Manage system directory information
Test the functionality of the shopping cart
Test the functionality of the user account
Test case
Feature User Account
Test requirement Test manage system directory information
Reference Document
Pass Fail
3 1
ID Test Case Description
[User-1] User Register
[User-2] User Login
[User-3] User Role
[User-4] User Detail
m directory information
Untested
0
Test Case Procedure
a. Navigate to the registration page on the website.
b. Fill in the required registration fields, including username,
email,password, and any additional information.
c. Click on the "Register" button to submit the registration form.
a. Navigate to the login page on the website.
b. Enter valid login credentials, including username/email and
password.
c.
a. Click
Log inontothe
the"Login"
systembutton to submit the login form.
as an administrator.
b. Navigate to the user management or role assignment section.
c. Select a user to modify their role.
d. Choose a new role from the available options.
e. Save the changes.
a. Log in to the system as an administrator.
b. Navigate to the user management or user list section.
c. Select a specific user from the user list to view their details.
d. Click on the user's profile or an "View Details" option.
N/A
0
Expected Results
The system should process the registration request without errors.
Upon successful registration, the user should receive a confirmation
message.
The user's information, including username and email, should be stored
in the system.
The system should validate the login credentials.
Upon successful login, the user should be redirected to the user
dashboard or homepage.
The
The system
system should
should display a welcome
allow the message
administrator or appropriate
to access feedback.
the user management
section.
The selected user's role should be successfully updated to the new role.
The system should display a confirmation message indicating the role change.
The system should display detailed information about the selected user.
User details should include username, email, role, and any other relevant
information.
The information should be presented in a clear and organized format.
Number of Test cases
4
Pre-Conditions
The user is not already registered with the system.
The registration form fields are visible and functional.
The system is operational and accessible.
The user is registered with the system.
The login form fields are visible and functional.
The system is operational and accessible.
The administrator is logged in with valid credentials.
The user to be modified is already registered in the system.
The system is operational and accessible.
The administrator is logged in with valid credentials.
There is at least one user registered in the system.
The system is operational and accessible.
Result Test date Tester
After registration, the user should be redirected to the login page or the 10/3/2024 Phạm Tấn Đạt
homepage.
User data should be successfully stored in the system database.
The system should generate a unique identifier for the new user.
After login, the user should have access to their account information and 10/3/2024 Phạm Tấn Đạt
features.
The system should authenticate the user's credentials and grant appropriate
permissions.
After saving the changes, the user's role should be reflected in the system. 10/3/2024 Phạm Tấn Đạt
The user with the updated role should have access to the corresponding features
and permissions.
The system should provide appropriate feedback upon successful role assignment
User details should be accurately presented based on the information stored in 10/3/2024 Phạm Tấn Đạt
the
system.
The system should provide an option to edit or manage the user's information.
Navigation back to the user list or other relevant sections should be available.
Note
Test case
Feature System Configs
Test requirement Test manage system directory information
Reference Document
Pass Fail
9 0
ID Test Case Description
[System Configs] : Add Verify that a new product
Product Category category can be added
successfully.
[System Configs] : Edit Verify that an existing product
Product Category category can be edited
successfully.
[System Configs] : Delete Verify that an existing product
Product Category category can be deleted
successfully.
[System Configs] : Add Verify that a new user role
User Role can be added successfully.
[System Configs] : Edit Verify that an existing user
User Role role can be edited
successfully.
[System Configs] : Delete Verify that an existing user
User Role role can be deleted
successfully.
[System Configs] : Add Verify that a new contact type
Contact Type can be added successfully.
[System Configs] : Edit Verify that an existing contact
Contact Type type can be edited
successfully.
[System Configs] :Delete Verify that an existing contact
Contact Type type can be deleted
successfully.
m directory information
Untested
0
Test Case Procedure
1. Navigate to the system configurations section.
2. Select the option to manage product categories.
3. Click on the "Add New" button.
4. Enter details for the new product category (e.g., name,
description).
5. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage product categories.
3. Locate the product category to be edited.
4. Click on the "Edit" button next to the respective category.
5. Modify the details of the product category.
6. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage product categories.
3. Locate the product category to be deleted.
4. Click on the "Delete" button next to the respective category.
5. Confirm the deletion when prompted.
1. Navigate to the system configurations section.
2. Select the option to manage user roles.
3. Click on the "Add New" button.
4. Enter details for the new user role (e.g., name, description).
5. Assign appropriate permissions to the role.
6. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage user roles.
3. Locate the user role to be edited.
4. Click on the "Edit" button next to the respective role.
5. Modify the details of the user role.
6. Update the permissions as necessary.
7. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage user roles.
3. Locate the user role to be deleted.
4. Click on the "Delete" button next to the respective role.
5. Confirm the deletion when prompted.
1. Navigate to the system configurations section.
2. Select the option to manage contact types.
3. Click on the "Add New" button.
4. Enter details for the new contact type (e.g., name, description).
5. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage contact types.
3. Locate the contact type to be edited.
4. Click on the "Edit" button next to the respective type.
5. Modify the details of the contact type.
6. Click on the "Save" button.
1. Navigate to the system configurations section.
2. Select the option to manage contact types.
3. Locate the contact type to be deleted.
4. Click on the "Delete" button next to the respective type.
5. Confirm the deletion when prompted.
N/A
0
Expected Results
The new product category should be added successfully, and it
should appear in the list of product categories.
The changes made to the product category should be saved
successfully.
The selected product category should be deleted from the system.
The new user role should be added successfully, and it should
appear in the list of user roles.
The changes made to the user role should be saved successfully.
The selected user role should be deleted from the system.
The new contact type should be added successfully, and it should
appear in the list of contact types.
The changes made to the contact type should be saved
successfully.
The selected contact type should be deleted from the system.
Number of Test cases
9
Pre-Conditions Result
The user has appropriate permissions to manage product Pass
categories.
There should be at least one existing product category. Pass
There should be at least one existing product category. Pass
The user has appropriate permissions to manage user roles. Pass
There should be at least one existing user role. Pass
There should be at least one existing user role. Pass
The user has appropriate permissions to manage contact Pass
types.
There should be at least one existing contact type. Pass
There should be at least one existing contact type. Pass
Test date Tester Note
10/3/2024
10/3/2024
10/3/2024
10/3/2024
11/3/2024
12/3/2024
13/3/2024
14/3/2024
15/3/2024
Test case
Feature System Configs
Test requirement Test manage system directory information
Reference Document
Pass Fail
3 1
ID Test Case Description
[Shopping Cart-1] Adding Items to the Shopping Cart
[Shopping Cart-2] Removing Items from the Shopping Cart
[Shopping Cart-3] Updating Quantity in the Shopping Cart
[Shopping Cart-4] Checkout Process
rmation
Untested
0
Test Case Procedure
a. Navigate to the "Shopping Cart" section.
b. Select a product and add it to the cart.
c. Verify that the selected product is displayed in the cart.
d. Repeat steps b-c for multiple products.
a. Navigate to the "Shopping Cart" section.
b. Remove a product from the cart.
c. Verify that the removed product is no longer displayed in the
cart.
d. Repeat steps b-c for multiple products.
a. Navigate to the "Shopping Cart" section.
b. Change the quantity of a product in the cart.
c. Verify that the quantity is updated in the cart.
d. Repeat steps b-c for multiple products.
a. Navigate to the "Checkout" section.
b. Enter shipping and billing information.
c. Review the order details.
d. Confirm the order and complete the checkout process.
N/A
0
Expected Results
All selected products are added to the cart.
The total number of items in the cart is updated accordingly.
The selected products are removed from the cart.
The total number of items in the cart is updated accordingly.
The quantity of the selected products is updated in the cart.
The total number of items and the total price are recalculated
accordingly.
The order is successfully placed.
The user receives an order confirmation.
The inventory is updated, and the shopping cart is cleared.
Number of Test cases
4
Pre-Conditions Result
User is logged into the ESS system. All selected products are added to the
The shopping cart is empty. cart.
The total number of items in the cart is
updated accordingly.
User is logged into the ESS system. The selected products are removed
The shopping cart contains at least one item. from the cart.
The total number of items in the cart is
updated accordingly.
User is logged into the ESS system. The quantity of the selected products is
The shopping cart contains at least one item. updated in the cart.
The total number of items and the total
price are recalculated accordingly.
User is logged into the ESS system. The order is successfully placed.
The shopping cart contains at least one item. The user receives an order
confirmation.
The inventory is updated, and the
shopping cart is cleared.
Test date Tester Note
10/3/2024
10/3/2024
10/3/2024
10/3/2024
Test case
Feature Ordering Workflow
Test requirement Test manage system directory information
Reference Document
Pass Fail
3 1
ID Test Case Description
[Order-1] Verifying Order detail
[Order-2] Sending Order to shipping
information
Untested
0
Test Case Procedure
a. Login with role's admin
b. Navigate to the "Order" section.
c. Verify information order in Order Detail.
a. Login with role's admin
b. Navigate to the "Order" section.
c. Verify information order in Order Detail.
d. Click on button shipping to send demand
N/A
0
Expected Results
All informarion in order deatail is correct.
Message "Order Has been shipped successfully!!" is show up and
open Shipeed Order Sceen
Number of Test cases
4
Pre-Conditions Result
User is logged into the ESS system. All informarion in order deatail is
The Order is not empty. correct.
User is logged into the ESS system. Message "Order Has been shipped
The Order is not empty. successfully!!" is show up and open
Shipeed Order Sceen
Test date Tester Note
10/3/2024
10/3/2024
Test case
Feature
Test requirement
Reference Document
Pass Fail
3 1
ID Test Case Description
Product-1 Add a new product
Product-2 Home Page
Product-3 Product Edit
Product-4 Cart Detali
Product-6
Order History
Untested
0
Test Case Procedure
User is logged in to the admin panel.
Navigate to the "Add Product" section.
Fill in the required fields such as product name, description, price,
etc.
Click on the "Save" button.
Access the home page URL.
Click on each navigation link (e.g., products, about us, contact).
User is logged in to the admin panel.
Navigate to the product edit page for a specific product.
Modify the product details (e.g., price, description).
Save the changes.
Navigate to the product list.
Click on the "Add to Cart" button for a specific product.
Navigate to the cart page.
User is logged in to the user account.
Navigate to the order history section.
N/A
0
Expected Results
The new product should be created and saved successfully.
The products are displayed in an accurate and attractive way.
Product information is successfully updated in the database.
The products in the cart are displayed correctly and informatively.
Previous orders are displayed fully and accurately, including order
details and status.
Number of Test cases
4
Pre-Conditions Result
The user is logged on to the administration system. The new product is displayed
The user selects the option to add a new product. successfully on the product page.
The user enters new product information (name, description,
price, image, etc.).
The user presses the "Save" button.
New and featured products are
displayed on the main page.
The user is logged on to the administration system. The product information has been
The user selects the product to edit. edited successfully.
The user changes the product information (name,
description, price, image, etc.).
The user presses the "Save" button.
Products are available in the product list. The products in the cart are displayed
correctly.
The user is logged on to the user account. Users can view the history of orders
The user opens the order history page. placed accurately.
Test date Tester Note
10/3/2024
10/3/2024
10/3/2024
10/3/2024
10/3/2024