Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Lab-8

Aim: Generate test cases and design test suites for bakery management
system.

Test Cases:
Test Test Steps Input Data Expected Actual Test Test
Case Case Output Output Case Case
ID Object Statu Type
ives s

TC_1 Adding a 1. Login the 4. {“Product Name: [Enter { { Passed System


new website. product name”] "message": "message": testing
product 2. Navigate to 5. “Product Type/Category: "product "product
and add new [Select from options such as created “. created”.
product on add bread, pastry, cake, cookie, } }
button. etc.]”
3.Enter details. 6. “Description: [Brief
3. Click “add description of the product,
product”. including key ingredients or
features]”
7. “Price: [Enter the price of
the product]”
8. “Cost: [Enter the cost of
production for the
product]”
9. “Quantity Available: [Enter
the initial quantity available
in stock]”

}
TC_2 Updatin 1. Login the { { { Passed System
g a new website. "prodcutId": 3, "message": "message": testing
product 2. Navigate to "eventDate": "2024-05- "product "product
“edit product 23", updated " updated"
”. "days": 5, } }
3. Click on "school": "school 3",
product that "department":
has to be "department 3",
edited. "subject": "subject 3",
"details": "details 3",
4. Edit the "objectives":
product "objectives 3",
5. Click "proposers":
“Update ["proposer 1", "proposer
Product ”. 2"],
"faculty": "faculty 3",
"teachers": [3, 4, 6],
"finance": "amount or
null"
}

TC_3 Approvi 1. Login { { { Passed System


ga the "prodcutId": 2 "message": "message": testing
product website. } "Noteshee "Noteshee
2. Naviga t t
te to “For approved" approved"
Approval”. } }
3. Click on
“Approve”.
TC_4 Adding a 1. Login { { { Passed System
remark the "prodcutId": 3, "message": "message": testing
website. "remark": "This is a test "Remark "Remark
2. Naviga remark!!!" added" added"
te to “For } } }
Approval”.
3. Click on
“Add remark”.
4. Add remark.
5. Click submit.
TC_5 Login in 1. Login { { { Passed System
website the "password": adim123, "message": "message": testing
website by "username": admin "logged in "logged in"
necessary } " }
details }
( password
and user
name.

TC_6 Remove 1. Login { { { Passed System


product the "prodcutId": 2 "message": "message": testing
website. } "remove "remove
2. Naviga product " product "
te to “For } }
prodcut”.
3. Click on
TC_7 Add 1. Login the { { { Passed System
new website as "email": "message": "message": testing
user admin. "test@jaipur.manipal.ed "User "User
2. Navigate to u", Created!" Created!"
“Add User”. "approveRight": true, } }
3. Enter "name": "test4",
details. "phone":
4. Click “Add "1234567890",
User”. "position": "student",
"school": "SCSE",
"department": "CSE",
"faculty": "Faculty"
}

TC_8 Update 1. Login the { { { Passed System


user website as "userId": "1.", "message": "message": testing
admin. "email": "User "User
2. Navigate "test@jaipur.manipal.ed Updated!" Updated!"
to “Update u", } }
User”. "approveRight": true,
3. Enter "name": "test4",
details. "phone":
4. Click "1234567890",
“Update User”. "position": "student",
"school": "SCSE",
"department": "CSE",
"faculty": "Faculty"
}

TC_9 Change 1. Login { { { Passed System


User the "currentPassword": "message": "message": testing
Passwor website. "test@jaipur.manipal.ed "Password "Password
d 2. Naviga u", changed changed
te to "newPassword": successfull successfull
“Change "1234567890" y!" y!"
Password”. } } }
3. Enter new
and old
password
5. Click submit.
Test Suites:

Test Suite - 1 Test Cases:


(Functionalities TC_1, TC_2,
related to prodcuts) TC_3, TC_4,
TC_5, TC_6

Test Plan
(Prodcut
management System)

Test Suite - 2
Test Cases:
(Functionalities
TC_7, TC_8, TC_9
related to user)

You might also like