You are on page 1of 4

Test Test Test Data Test Type Expected Outcome Actual Pass

ID Description Outcome /Fail

1 Customer Customer provides Functional The system should Customer is Pass


Registration personal details: Name - successfully register the successfully
and Loyalty Abdullah, Date of Birth customer and enroll them in registered
Card - 2003-01-15, Postcode the Loyalty Card program with Loyalty
Enrollment - AB123CD Card
participation
2 New Customer ID - 1, Barber Functional A new customer should be Appointment Pass
Customer Name - Barber A, able to book an appointment is booked for
Appointment Appointment Date - successfully Customer 1
Booking 2023-12-01, with Barber A
Appointment Time - on 2023-12-
10:00 AM 01 at 10:00
AM
3 Existing Customer ID - 2, Barber Functional An existing customer should Appointment Pass
Customer Name - Barber B, be able to book an is booked for
Appointment Appointment Date - appointment successfully Customer 2
Booking 2023-12-02, with Barber B
Appointment Time - on 2023-12-
2:00 PM 02 at 2:00 PM
4 Automated Appointment ID - 1, Integration The system should send Automated Pass
Appointment Customer ID- 1 automated reminders to reminder sent
Reminders customers with upcoming to Customer 1
appointments for
Appointment
ID 1
5 Handling Invalid Appointment Error Error Handling Proper Booking error Pass
Booking Date Handling logging of errors for invalid successfully
Errors date logged for an
invalid date
6 Tracking Appointment ID: 2, Integration Successful confirmation Confirmation
Appointment Customer ID: 2 status update status updated
Confirmations for Customer
2 for
Appointment Pass
ID 2
7 Customer Customer ID: 1, Integration Functional Successful update Customer 1 Pass
Information Updated Name: Saad, of customer information information
Update Updated Postcode: updated with
XY789ZA Name: Saad,
Postcode:
XY789ZA
8 Loyalty Card Application Customer Regression Customer receives a 25% 1 receives a Pass
Benefits ID: 1, Total Spending: discount with Loyalty Card 25% discount
£700 Customer with ID on future
visits
9 Loyalty Card Customer ID: 3, Total Regression Customer not eligible for Customer Pass
Eligibility Spending: £400 Loyalty Card benefits with ID 3
Check does not
receive a
discount as
spending is
below £600
10 Repeat Visits Customer ID: 2 Integration Accurate counting of repeat Repeat visits Pass
Tracking Performance visits count updated
for Customer
ID 2
11 System Simulate 100 Performanc Stable system performance System Pass
Performance concurrent appointment e under load handles 100
under Load bookings concurrent
bookings
without
significant
degradation
12 Loyalty Card Customer ID: 1, Functional Successful redemption of Points: Pass
Redemption Loyalty Card Loyalty Card points Customer
with ID 1
successfully
redeems 100
Loyalty Card
points
13 User Interface Access system on Usability The user interface should be System UI is Pass
Responsivene different devices and responsive on various responsive on
ss browsers devices and browsers different
devices and
browsers

Conclusion:
 The comprehensive test plan covers various functional, integration, regression, and performance scenarios.
 All 14 test scenarios were executed successfully without critical issues.
 The system exhibits robust functionality, integration capabilities, and stable performance..

Function Table for Barber Booking System

Function Name Purpose Variables/Parameters


LoadHomePage Load the home page of the barber None
website.
displayDashboard Display the user's dashboard after login. - userID: Unique identifier for the
logged-in user
searchBarbers Allow users to search for available - location: Location where the user
barbers. wants to find barbers
viewBarberProfile Show detailed information about a - barberID: Unique identifier for the
specific barber. selected barber
bookAppointment Initiate the process of booking an - userID: Unique identifier for the
appointment. logged-in user
- barberID: Unique identifier for the
selected barber
- date: Desired appointment date
- time: Desired appointment time
confirmBooking Confirm a booked appointment. - bookingID: Unique identifier for the
booked appointment
cancelBooking Allow users to cancel a previously - bookingID: Unique identifier for the
booked appointment. booked appointment
viewAppointmentHistory Display a history of the user's past - userID: Unique identifier for the
appointments. logged-in user
updateProfile Enable users to update their personal . - userID: Unique identifier for the
information logged-in user
- updatedName: Updated name
- updatedEmail: Updated email
- updatedPassword: Updated password
- updatedPhone: Updated phone
number

viewLoyaltyCardStatus Show the user's current Loyalty Card . - userID: Unique identifier for the
status and benefits logged-in user
redeemLoyaltyCardPoints Allow users to redeem points from their - userID: Unique identifier for the
Loyalty Card. logged-in user
- pointsToRedeem: Points to be
redeemed

sendAppointmentReminder Send automated reminders for - appointmentID: Unique identifier for


upcoming appointments. the upcoming appointment

viewNotifications Display any notifications or messages - userID: Unique identifier for the
for the user. logged-in user

logout Log the user out of the barber website. None

SQL Database Implementation Table Code:


-- Create database
CREATE DATABASE BarberBookingSystem;
USE BarberBookingSystem;

-- Customers table
CREATE TABLE Customers (
CustomerID INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL,
DateOfBirth DATE,
Postcode VARCHAR(10),
MembershipStatus BOOLEAN DEFAULT 0,
LoyaltyCardStatus BOOLEAN DEFAULT 0
);

-- Barbers table
CREATE TABLE Barbers (
BarberID INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL,
Specialization VARCHAR(100)
);

-- Appointments table
CREATE TABLE Appointments (
AppointmentID INT PRIMARY KEY,
CustomerID INT,
BarberID INT,
Date DATE,
Time TIME,
CONSTRAINT fk_customer FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID),
CONSTRAINT fk_barber FOREIGN KEY (BarberID) REFERENCES Barbers(BarberID)
);

-- LoyaltyCards table
CREATE TABLE LoyaltyCards (
LoyaltyCardID INT PRIMARY KEY,
CustomerID INT,
TotalSpending DECIMAL(10, 2) DEFAULT 0,
CONSTRAINT fk_loyalty_customer FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)
);

-- Users table (for authentication)


CREATE TABLE Users (
UserID INT PRIMARY KEY,
Username VARCHAR(50) UNIQUE NOT NULL,
Password VARCHAR(255) NOT NULL,
CustomerID INT,
CONSTRAINT fk_user_customer FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)
);

You might also like