Professional Documents
Culture Documents
Test ID
Test ID
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..
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
viewNotifications Display any notifications or messages - userID: Unique identifier for the
for the user. logged-in user
-- 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)
);