Lab2 SWT301 G4

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 45

Test case

Project Name Shpping Cart


Project Code G4_SWT301

Document Code G4_SWT301

Record of change
Effective Date Version Change Item
<Date when these changes are effective>
SYSTEM TEST CASE

Creator
Reviewer/Approver
Issue Date
Version

*A,D,M Change description


G4

27/01/2024

Reference
<List of documents which are referred in this version.>
Test case
TEST CASE LIST
Project Name Shpping Cart
Project Code G4_SWT301
Test Environment Setup Description 1. Server
2. Database

No Function Name Sheet Name


G2 Login Login
G2 User Profile User Profile
G2 Password Reset Password Reset
G4 Order History Order History
G4 Stock Order List Stock Order List
G4 New Order New Order
G4 Order Detail Order Detail
G1 Product List Product List
G1 Product List Product List
G1 Product List Product List
G1 User Register User Register
G1 User Register User Register
G1 User Register User Register
G3 Cart Details Update Quantity
G3 Cart Details Navigate to the Shopping Cart
G3 Cart Details Check Total Price
G3 cart checkout Enter Payment Information
G3 cart checkout Place Order

G3 cart checkout Navigate to Checkout

G3 order history :Verify Order Total

G3 order history Check Order Status

G3 order history Navigate to Order History


Stock Product
G5 List Stock Product List

G5 Product Details Product Details

G5 New Product New Product


Description
User logs in to the website
Users view detail profiles
Reset
Verify accurate display Password
and pagination of order details,
real-timestock
Confirm real-time updates, and secure
information, access.
accurate order status,
and
Test proper integration
successful with related
order placement, modules.
secure payment
processing, and proper user authentication.
accurate modification/cancellation, and
cross-browser/device compatibility.
Product List Page Loads Successfully
Confirm Display of All Products
Check Product
Confirm Accessibility Images
of Registration Form

Verify Required
Ensure Fields User
Successful on Registration Form
Registration
Confirm that the subtotal and total price are recalculated
correctly.
Verify that users can navigate from the cart to the cart
detail page.
Test entering valid payment information.
User
Verify any error can view
handling fortheir total
invalid price details.
payment
Test successfully placing an order.
Confirm the user receives an order confirmation.

Verify that users can navigate from the cart to the


checkout page.
Confirm that the order total matches the sum of individual
items, taxes, shipping costs, and discounts.

Check that the order status is accurately displayed for


each order.

Test accessing the order history page from the user


account.
This page caters primarily to administrators, offering
detailed
information about each product's name, type, price, stock
quantity, and related actions. The stock list serves as a
central hub for managing and monitoring the inventory of
a business.

Aimed at administrators, this page offers a


comprehensive view
of the product's attributes, facilitating effective
management and decision-making. It serves as a detailed
information hub, enabling administrators to update
product details as needed.

It features a form with input fields for essential product


attributes, allowing administrators to input accurate and
up-to-date information. This page streamlines the process
of expanding the product catalog and maintaining a
current inventory.
Pre-Condition
User account with valid credentials exists.
2.User
Theisuser
logged in with valid
is currently account
not logged in.
3. The email server is configured properly.
3. User fill the payment detail to take an Order
3. User fill the payment detail to take an Order
3. User fill the payment detail to take an Order
3. User fill the payment detail to take an Order

The application is installed and running. The user is logged in or on the homepage.
The product data is available in the database. The user is logged in or on the homepage.
The product data and associated images are available. The user is logged in or on the homepage.
The application is installed and running. The user is on the homepage or a login page.
The user is on the user registration page. The registration form is visible.
The user is on theuser
The userhas
registration page.
added items to The registration
the shopping form is visible.
cart.
The user has added items to the shopping cart.
The user has added items
User is to the
logged in. shopping cart.
The user has added items
User is to the
logged in. shopping cart.
The user has added items to the shopping cart.

User is logged in.


The user has added items to the shopping cart.

User is logged in.


The user has made one or more purchases on the e-commerce website.

User is logged in.


The user has made one or more purchases on the e-commerce website.

User is logged in.


The user has made one or more purchases on the e-commerce website.
User Authentication:

Only authenticated administrators can access the Stock Product List.


Ensure the user is logged in with valid administrator credentials.
Product Data:

The system should have existing product data in the database.


Products should have accurate and up-to-date information.

User Authentication:

Accessible only to authenticated administrators.


Ensure the user is logged in with valid administrator credentials.
Product Selection:

The system should have existing product data in the database.


Admins can navigate to the Product Details page by selecting a specific product.

User Authentication:

Accessible only to authenticated administrators.


Ensure the user is logged in with valid administrator credentials.
Existing Products:

The system should have existing product data in the database.


Admins can add new products to supplement the existing inventory.
Test case

Feature
Test requirement
Reference Document
Pass Fail

ID Test Case Description


G1-Product List Product List Page Loads Successfully

G1-Product List Confirm Display of All Products

G1-Product List Check Product Images

G1-User Register Confirm Accessibility of Registration Form

G1-User Register Verify Required Fields on Registrati

G1-User Register Ensure Successful User Registration

G2-Login Valid Login

G2-Login Invalid Login (Wrong username or


password)

G2-Login Invalid Login (Select wrong role


Login)

G2-Login Blank Fields

G2-User Profile Display User Details

G2-User Profile Logout from Profile Page

G3-cart detail Update Quantity

G3-cart detail Navigate to the Shopping Cart


G3-cart detail Check Total Price

G3- cart checkout Enter Payment Information

G3- cart checkout Place Order

G3- cart checkout Navigate to Checkout

G3-order history Verify Order Total

G3-order history Check Order Status

G3-order history Navigate to Order History

G5-Stock Product List Authentication Check

G5-Stock Product List Update Product Button

G5-Stock Product List Remove Product Button

G5-Product Details Authentication Check

G5-Product Details Valid Product ID Check

G5-Product Details Form Submission - Successful Update


G5-Product Details Form Submission - Missing Information

G5-New Product Form Display Check

G5-New Product Form Submission - Successful Additi

G5-New Product Form Submission - Image File Format


Check

Form Submission - Reset Button


Untested N/A

Test Case Procedure


1.Open the application Expected Results
2.Navigate to the product list page The product list page loads without errors.
1.Open the application.
2.Navigate to the product list page. All products should be visible in the list.
3.Verify that all products aredisplayed on the page.
.Open the application.
2.Navigate to the product list page. All product images are displayed without any issues.
3.Inspect and confirm that all product images are displayed.

1.Open the application. The registration form is accessible without errors


2.Navigate to the user registration page.
2.Navigate to the user registration page.
3.Check for the presence of all required fields (e.g., username,
All required email,
fields are password).
present on the registration form.
3.Fill in valid user details.
4.Click the "Register" button. The user is registered successfully, and a confirmation message is displayed.

1. Go to the login page The user should be successfully logged in, and the home
2. Enter valid username and password page corresponding to the user type should be displayed.
3. Select the user type as "CUSTOMER" or "ADMIN".
4.
1. Click
Go tothe
the"Login" button.
login page The system will display a message:
2. Enter invalid username and password "Login Denied! Invalid Username or password."
3. Select the user type as "CUSTOMER" or "ADMIN".
4.
1. Click
Go tothe
the"Login" button.
login page The system will display a message: "Login Denied! Invalid
2. Enter valid username and password Username or password."
3. Select the wrong user type as "CUSTOMER" or
"ADMIN".
1. Go to the login page The system will display a message: "Please fill out this
2. Leave both username and password fields blank.field."
3. Select the user type as "CUSTOMER" or "ADMIN".
4. User
1. Click logs
the "Login"
in with button.
valid account The User Profile page should display the user's full name,
2. Access the User Profile page. email, phone, address, and pin code correctly.

1. Log in with valid account . The system should log out the user and redirect to the
2. Access the User Profile page. login page
3. Logout from the profile page.
1.Change the quantity of one or more items in 1.The cart updates the item quantities accordingly.
the cart. 2.The subtotal for each item and the total price are
recalculated correctly

1: Log in to the e-commerce website. The user is redirected to the shopping cart page.
2: Add one or more items to the shopping cart.
3: Click on the shopping cart icon or navigate to
the cart page.
1: Verify the total price displayed in the cart. The total price is the sum of the subtotals of all items in the
cart, taking into account any discounts or promotions.

1: Enter valid payment information . The payment information is accepted, and any validation
errors are displayed if applicable.

1: Click on the " Pay" or equivalent button. The order is processed successfully.
The user receives an order confirmation message.
The order is recorded in the system.

1: Log in to the e-commerce website. The user is directed to the checkout page.
2: Add one or more items to the shopping cart.
3: Click on the "Checkout" button in the shopping
cart.

Ensure that the total cost of the order matches The order total is accurate and matches the original
the purchase amount.
sum of individual items, taxes, shipping costs

1: Verify that the order status is correctly The order status reflects the current status of the order.
displayed.

1: Log in to the e-commerce website. The user is directed to the order history page.
1: Find and click on the "Order History" .

Log in as a regular user. The user should be redirected to the login page with the
Attempt to access the product stocks page. message "Access Denied, Login as admin!!"

Log in as an admin user. The user should be redirected to the "updateProduct.jsp"


Click on the "Update" button for a product. page with the respective product ID in the URL.

Log in as an admin user. The respective product should be removed from the system,
Click on the "Remove" button for a product. and the page should be refreshed to reflect the updated
product list.

Access the "Update Product" page without logging The


in. user should be redirected to the login page with the
message "Access Denied, Login as admin!!"

Log in as an admin user. The page should display the update form for the specified
Access the "Update Product" page with a valid product ID.
product ID.

Log in as an admin user. The product details should be successfully updated, and the
Access the "Update Product" page with a valid product
userID.
should be redirected to "adminViewProduct.jsp" with a
Modify the product details. success message.
Submit the update form.
Log in as an admin user. The form should not be submitted, and appropriate error
Access the "Update Product" page with a valid product
messages
ID. should be displayed.
Submit the update form with missing information.

Log in as an admin user. The page should display the add product form with
Access the "Add Product" page. input fields for product name, type, description, unit price,
stock quantity, and product image.

Log in as an admin user. The new product should be successfully added, and the user
Access the "Add Product" page. should be redirected to the product list page
Fill in valid information in all fields. ("adminViewProduct.jsp") with a success message.
Submit the form.
Log in as an admin user. The form should not be submitted, and an error message
Access the "Add Product" page. indicating an invalid image file format should be displayed.
Upload an image file with an invalid format (e.g.,
a non-image file).
Submit the form.
Log in as an admin user. All form fields should be cleared, and the form should be reset
Access the "Add Product" page. to its initial state.
Fill in some information in the form.
Click the "Reset" button.
Number of Test cases

Pre-Conditions Result Test date Tester Note


The application is installed and running. The Tester 28/1/2023 Phí Văn Đại None
user is logged in or on the homepage.
The product data is available in the database. Tester 28/1/2024 Phí Văn Đại None
The user is logged in or on the homepage.

The product data and associated images are Tester 28/1/2024 Phí Văn Đại None
available. The user is logged in or on the
homepage.
The application is installed and running. The Tester 28/1/2024 Phí Văn Đại None
user is on the homepage or a login page.

The user is on the user registration page. The Tester 28/1/2024 Phí Văn Đại None
registration form is visible.
The user is on the user registration page. The Tester 28/1/2024 Phí Văn Đại None
registration form is visible.
User account with valid credentials exists. Tested 28/01/2024 Trần Đỗ Quang None
Huy

User account with incorrect username or Tested 28/01/2024 Trần Đỗ Quang None
password exists. Huy

User account with incorrect role selected Tested 28/01/2024 Trần Đỗ Quang None
exists. Huy

None Tested 29/01/2024 Trần Đỗ Quang None


Huy

User is logged in with valid account Tested 31/01/2024 Trần Đỗ Quang None
Huy

User is logged in with valid account. Tested 31/01/2024 Trần Đỗ Quang None
Huy

1. User is logged in. Tested 28/01/2024 Nguyễn Trung None


2.The user has added items to the shopping Hiếu
cart.

1. User is logged in. Tested 28/01/2024 Nguyễn Trung None


2.The user has added items to the shopping Hiếu
cart.
1. User is logged in. Tested 28/01/2024 Nguyễn Trung None
2.The user has added items to the shopping Hiếu
cart.

1. User is logged in. Tested 28/01/2024 Nguyễn Trung None


2.The user has added items to the shopping Hiếu
cart.

1. User is logged in. Tested 28/01/2024 Nguyễn Trung None


2.The user has added items to the shopping Hiếu
cart.

None Tested 28/01/2024 Nguyễn Trung None


Hiếu

User is logged in. Tested 28/01/2024 Nguyễn Trung None


The user has made one or more purchases Hiếu
on the e-commerce website.

User is logged in. Tested 28/01/2024 Nguyễn Trung None


The user has made one or more purchases Hiếu
on the e-commerce website.

The user has made one or more purchases Tested 28/01/2024 Nguyễn Trung None
on the e-commerce website. Hiếu

No user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
There is at least one product in the system.

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
There is at least one product in the system.

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
There is at least one product in the system.

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
Valid product ID is provided.
Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
Valid product ID is provided.
Test Condition: Verify handling when
required
information is logged
Admin user is missing.in. Tested 28/01/2024 Phạm Tấn Đạt None

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None

Admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None

The admin user is logged in. Tested 28/01/2024 Phạm Tấn Đạt None
G5-Stock Product List Authentication Check

G5-Stock Product List Update Product Button

G5-Stock Product List Remove Product Button

G5-Product Details Authentication Check

G5-Product Details Valid Product ID Check

G5-Product Details Form Submission - Successful Update

G5-Product Details Form Submission - Missing Information

G5-New Product Form Display Check

G5-New Product Form Submission - Successful Addition

G5-New Product Form Submission - Image File Format


Check
Form Submission - Reset Button

G5-New Product

Feature Test Requirement


Stock Product List Verify that only
authenticated and
authorized users (admin)
can access the Stock
Product List.
Verify that the Product Details page displays accurate
and comprehensive information for a specific product.

Product Details Confirm that the New Product form is displayed


New Product correctly
Verify thatwith
onlyallauthenticated
necessary input
andfields.
authorized users
(admin) can access the New Product page.
Log in as a regular user. The user should be redirected to the login page with the
Attempt to access the product stocks page. message "Access Denied, Login as admin!!"
Log in as an admin user. The user should be redirected to the "updateProduct.jsp"
Click on the "Update" button for a product. page with the respective product ID in the URL.

Log in as an admin user. The respective product should be removed from the system,
Click on the "Remove" button for a product. and the page should be refreshed to reflect the updated
product list.

Access the "Update Product" page without logging in.The user should be redirected to the login page with the
message "Access Denied, Login as admin!!"

Log in as an admin user. The page should display the update form for the specified
Access the "Update Product" page with a valid product ID.
product
Log in asID.
an admin user. The product details should be successfully updated, and the
Access the "Update Product" page with a valid product
user
ID.should be redirected to "adminViewProduct.jsp" with a
Modify the product details. success message.
Submit the update form.
Log in as an admin user. The form should not be submitted, and appropriate error
Access the "Update Product" page with a valid product
messages
ID. should be displayed.
Submit the update form with missing information.

Log in as an admin user. The page should display the add product form with
Access the "Add Product" page. input fields for product name, type, description, unit price,
Log in as an admin user. stock
The quantity,
new productand product
should image.
be successfully added, and the user
Access the "Add Product" page. should be redirected to the product list page
Fill
Logininvalid
as aninformation
admin user.in all fields. ("adminViewProduct.jsp") with a success
The form should not be submitted, and anmessage.
error message
Access the "Add Product" page. indicating an invalid image file format should be displayed.
Upload
Log anan
in as image fileuser.
admin with an invalid format (e.g., All form fields should be cleared, and the form should be reset
Access the "Add Product" page. to its initial state.
Fill in some information in the form.
Click the "Reset" button.
Reference Document Pass
None 3

None 4
None 5
No user is logged in.

Admin user is logged in.


There is at least one product
in the system.

Admin user is logged in.


There is at least one product
in the system.

Admin user is logged in.


There is at least one product
in the system.

Admin user is logged in.

Admin user is logged in.


Valid product ID is provided.

Admin user is logged in.


Valid product ID is provided.
Test Condition: Verify
handling when required
information is missing.

Admin user is logged in.

Admin user is logged in.

Admin user is logged in.

The admin user is logged in.

Fail Untested
0 0

0 0
0 0
ID Test Case Description 1.Open theTest Case Procedure
application 2.Navigate to
G1-Product List Product List Page Loads Successfully the product list page
3.Verify that all products aredisplayed
G1-Product List Confirm Display of All Products on the page.
3.Inspect and confirm that all product
G1-Product List Check Product Images images are to
2.Navigate displayed.
the user registration
G1-User Register Confirm Accessibility of Registration page.
required fields (e.g., username, email,
G1-User Register Form
Verify Required Fields on password).
3.Fill in valid user details.
G1-User Register Registration Form User Registration
Ensure Successful 4.Click the "Register" button.
Expected Results Pre-Conditions Result
The product list page loads without errors. The application is installed and running. Tester
All products should be visible in the list. The
The user is logged
product data isinavailable
or on the
in the Tester
All product images are displayed without any database. The user is logged
The product data and associated in or on Tester
issues.
The registration form is accessible without images
The are available.
application The user
is installed and is
running. Tester
errors
All The user
required fields are present on the registration The user is
is on
on the
the user
homepage or a login Tester
registration
form.
The user is registered successfully, and a page. The registration form is visible. Tester
The user is on the user registration
confirmation message is displayed. page. The registration form is visible.
Test date Tester Note ID
28/1/2023 Phí Văn Đại None G1-Product List
28/1/2024 Phí Văn Đại None G1-Product List
28/1/2024 Phí Văn Đại None G1-Product List
28/1/2024 Phí Văn Đại None G1-User Register
28/1/2024 Phí Văn Đại None G1-User Register
28/1/2024 Phí Văn Đại None G1-User Register
Test Case Description Test Case
2.Navigate Procedure
to the product list
Product List Page Loads Successfully page
3.Verify that all products
Confirm Display of All Products aredisplayed
3.Inspect andon the page.
confirm that all
Check Product Images product images are
2.Navigate to the user displayed.
Confirm Accessibility of Registration registration
required fieldspage.
(e.g., username,
Form
Verify Required Fields on Registration email, password).
3.Fill in valid user details.
Form
Ensure Successful User Registration 4.Click the "Register" button.
Expected Results Pre-Conditions Result
The product list page loads without The application is installed and running. Tester
errors.
All products should be visible in the The user is logged in or on the homepage.
The product data is available in the Tester
list.
All product images are displayed database. The user is logged in or
The product data and associated imageson the Tester
without
The any issues.
registration form is accessible are available.
The applicationThe user is logged
is installed in or on
and running. Tester
without
All errors
required fields are present on the The user
The user is
is on
on the
the user
homepage or a login
registration page. Tester
registration
The user is registered successfully, and The
form. The registration form
user is on the is registration
user visible. page. Tester
a confirmation message is displayed. The registration form is visible.
Test date Tester Note
28/1/2023 Phí Văn Đại None
28/1/2024 Phí Văn Đại None
28/1/2024 Phí Văn Đại None
28/1/2024 Phí Văn Đại None
28/1/2024 Phí Văn Đại None
28/1/2024 Phí Văn Đại None
Test case

Feature
Test requirement
Reference Document
Pass Fail Untested

Feature Test
Validate Requirement
successful login with Reference Document
Login correct credentials. None
View Profile User View profile details None
Password Reset Reset User Password None

ID Test Case Description Test Case Procedure


G2-Login Valid Login 1. Go to the login page
2. Enter valid username and password
3. Select the user type as "CUSTOMER" or
"ADMIN".
4. Click the "Login" button.

G2-Login Invalid Login (Wrong username 1. Go to the login page


or 2. Enter invalid username and password
password) 3. Select the user type as "CUSTOMER" or
"ADMIN".
4. Click the "Login" button.

G2-Login Invalid Login (Select wrong role 1. Go to the login page


Login) 2. Enter valid username and password
3. Select the wrong user type as "CUSTOMER" or
"ADMIN".
4. Click the "Login" button.

G2-Login Blank Fields 1. Go to the login page


2. Leave both username and password fields blank.
3. Select the user type as "CUSTOMER" or
"ADMIN".
4. Click the "Login" button.

G2-User Profile Display User Details 1. User logs in with valid account
2. Access the User Profile page.
G2-User Profile Logout from Profile Page 1. Log in with valid account .
2. Access the User Profile page.
3. Logout from the profile page.

G2-Password Reset Successful Password Reset 1. Go to the login page.


2. Click on the "Forgot Password" link.
3. Enter the registered email address.
4. Submit the form.
5. Check the email for the password reset link.
6. Click on the reset link.
7. Enter a new password and confirm it.

G2-Password Reset Invalid Email for Password Reset 1. Go to the login page.
2. Click on the "Forgot Password" link.
3. Enter an invalid or non-registered email address.
4. Submit the form.
N/A Number of Test cases

Pass Fail
4 0
2 0
2 0

Expected Results Pre-Conditions


The user should be successfully logged in, and the home User account with valid credentials exists.
page corresponding to the user type should be displayed.

The system will display a message: User account with incorrect username or
"Login Denied! Invalid Username or password." password exists.

The system will display a message: "Login Denied! Invalid User account with incorrect role selected exists.
Username or password."

The system will display a message: "Please fill out this None
field."

The User Profile page should display the user's full name, User is logged in with valid account
email, phone, address, and pin code correctly.
The system should log out the user and redirect to the User is logged in with valid account.
login page

1. The password should be successfully reset. 1. The user has an existing account.
2. The system should display a success message. 2. The user is currently not logged in.
3. The user should be able to log in with the new 3. The email server is configured properly.
password.

1. The system should display an error message indicating 1. The user has an existing account.
that 2. The user is currently not logged in.
the email is not found.
2. No password reset email should be sent.
Untested N/A Number of Test Cases
0 0 4
0 0 2
0 0 2

Result Test date Tester Note


Tested 28/01/2024 Trần Đỗ Quang None
Huy

Tested 28/01/2024 Trần Đỗ Quang None


Huy

Tested 28/01/2024 Trần Đỗ Quang None


Huy

Tested 29/01/2024 Trần Đỗ Quang None


Huy

Tested 31/01/2024 Trần Đỗ Quang None


Huy
Tested 31/01/2024 Trần Đỗ Quang None
Huy

Tested 31/01/2024 Trần Đỗ Quang None


Huy

Tested 31/01/2024 Trần Đỗ Quang None


Huy
Cart Details:
Add to Cart Functionality:
Verify that users can add items to the cart.
Confirm that the item count in the cart updates accordingly.
View Cart:
Ensure users can view the contents of their cart.
Verify that the cart displays accurate details for each item.
Item Quantity Update:
Test updating the quantity of items in the cart.
Confirm that the subtotal and total price are recalculated correctly.
Remove Items:
Test the removal of items from the cart.
Confirm that the cart updates, and the total price adjusts accordingly.
Cart Checkout:
Navigate to Checkout:
Verify that users can navigate from the cart to the checkout page.
Payment Information:
Test entering valid payment information.
Verify any error handling for invalid payment details.
Place Order:
Test successfully placing an order.
Confirm the user receives an order confirmation.
Complete Checkout Flow:
Test completing the entire checkout flow.
Confirm the user can proceed through all steps seamlessly.
Order History:
Navigate to Order History:
Test accessing the order history page from the user account.
Order List Display:
Verify that the list of orders is displayed chronologically.
Order Status Display:
Check that the order status is accurately displayed for each order.
Order Total Accuracy:
Confirm that the order total matches the sum of individual items, taxes, shipping costs, and discounts.
Feature Test Requirement
Verify accurate display and
pagination of order details, real-
time updates, and secure
Order History access.
Confirm real-time stock
information, accurate order
status, and proper integration
Stock Order List with related modules.

Test successful order placement,


secure payment processing, and
New Order proper user authentication.
Ensure comprehensive display of
order information, accurate
modification/cancellation, and
cross-browser/device
Order Detail compatibility.

ID Test Case Description

Function Order
G4-Order History Access to the application

G4-Order History View List Order History

G4-Stock Order List View Stock Order Detail

G4-Stock Order List Process Stock Order

G4-New Order Create a new Order


G4-New Order Modify Order Before Submission

G4-Order Detail Display of Order Details

G4-Order Detail Modify Order Details


Reference Document Pass

None 2

None 2

None 2

None 2

Test Case Procedure Expected Results

1.Enter the application The Stock Order List screen


2. Login user account should be accessible, displaying
3. Access the Stock Order List screen from the main menu. a list of stock orders.

1. Enter the application The displayed orders should


2. Login user account include relevant details such as
3. Click Order in navbar date, order number, items,
quantity, and status.

1. Enter the application The Stock Order Details screen


2. Login user account should open, showing detailed
3. Click Order in navbar information about the selected
4. Select a specific stock order from the Stock Order List. stock order.

1. Enter the application The system should update the


2. Login user account stock order status accordingly,
3. Click Order in navbar and any associated inventory
4. From the Stock Order Details screen, process the changes should occur.
selected stock order (mark as order_place).

1. Login to the application The system should allow


2. Add items, quantity to cart in homepage successful creation, and the
3. Fill detail customer to payment user should receive a
4. Check out and pay the order confirmation message.
Order detail was show up
1. Login to the application The system should reflect the
2. Add items, quantity to cart in homepage changes made, and the order
3. Update the items, quantities, or customer details before should be submitted with the
submitting the new order. updated information.
4. Check out and pay the order Order detail was show up

1. Enter the application Order details, including order


2. Login user account number, items, quantity, date,
3. Click Order in navbar and status, should be accurately
4. Verify that all relevant details of the selected order are shown.
displayed on the Order Details screen.

1. Enter the application The system should allow


2. Login user account modifications, and changes
3. Click Order in navbar should be reflected in the order
4. Attempt to modify the order details . details.
Fail Untested N/A Number of Test Cases

0 0 0 2

0 0 0 2

0 0 0 2

0 0 0 2

Pre-Conditions Result Test date Tester Note

User has appropriate Tested 28/01/2024 Đỗ Tuấn Anh None


permissions to view
stock orders.

Order history contains Tested 28/01/2024 Đỗ Tuấn Anh None


at least one completed
order.

At least one stock Tested 28/01/2024 Đỗ Tuấn Anh None


order is present in the
system.

The selected stock Tested 28/01/2024 Đỗ Tuấn Anh None


order is not already
processed.

User is logged in Tested 28/01/2024 Đỗ Tuấn Anh None


The new order is not Tested 28/01/2024 Đỗ Tuấn Anh None
yet submitted.

An order is selected, Tested 28/01/2024 Đỗ Tuấn Anh None


and the Order Details
screen is open.

The selected order is Tested 28/01/2024 Đỗ Tuấn Anh None


not already processed.
Test case
TEST REPORT
Project Name Shpping Cart Creator
Project Code G4_SWT301 Reviewer/Approver
Document Code G4_SWT301_Test Report Issue Date
Notes None

No Module code Pass Fail


1 Login 4 0
2 View Profile 2 0
3 Password Reset 2 0
4 Order History 2 0
5 Stock Order List 2 0
6 New Order 2 0
7 Order Detail 2 0
8 Stock Product List 3 0
9 Product Details 4 0
10 New Product 5 0
11 Update Quantity 1 0
12 Navigate to the Shopping Cart 2 0
13 Check Total Price 2 0
14 Enter Payment Information 5 0
15 Place Order 3 0
16 Navigate to Checkout 1 0
17 :Verify Order Total 5 0
18 Check Order Status 4 0
19 Navigate to Order History 3 0
Sub total 54 0

Test coverage 0
Test successful coverage 0
PORT
ator G4
viewer/Approver
ue Date 27/01/2024

Untested N/A Number of test cases


0 0 4
0 0 2
0 0 2
0 0 2
0 0 2
0 0 2
0 0 2
0 0 3
0 0 4
0 0 5
0 0 1
0 0 2
0 0 2
0 0 5
0 0 3
0 0 1
0 0 5
0 0 4
0 0 3
0 0 54

%
%

You might also like