0% found this document useful (0 votes)
21 views13 pages

Test Case of ST

Uploaded by

kashiramnaik9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views13 pages

Test Case of ST

Uploaded by

kashiramnaik9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Exp No.

1
Case ID Test Step Test Data Expected Actual Result Status
Result
TC001 Create a new Supplier: New order Order Pass
purchase XYZ Ltd., created and created;
order Item: Widget success success
A, Qty: 10 message message
displayed. shown.

TC002 Approve a Purchase Order status Status Pass


purchase Order ID: changes to changed to
order PO001 "Approved."" "Approved."

TC003 Add an item Purchase Item added; Item added; Pass


to an existing Order ID: total cost total updated
purchase PO001, Item: updated. correctly.
order Widget B,
Qty: 5
TC004 Update the Purchase Quantity Quantity Pass
quantity of an Order ID: updated; total updated; total
item in a PO001, Item: cost recalculated.
purchase Widget A, recalculated.
order Qty: 15
TC005 Delete an item Purchase Item Item Pass
from the Order ID: removed; total removed; total
purchase PO001, Item: recalculated. recalculated.
order Widget B
TC006 Submit the Purchase Order Order Pass
purchase Order ID: submitted, submitted,
order for PO001 status is status is
approval "Pending "Pending
Approval" Approval"
TC007 Reject a Purchase Status Status Pass
purchase Order ID: changes to changed to
order PO002 "Rejected" "Rejected"
TC008 Cancel a Purchase Status Status Pass
purchase Order ID: changes to changed to
order PO003 "Cancelled" "Cancelled"
TC009 Generate a Date Range: Report Report Pass
report of all 20240901 to generated generated
purchase 20240930 with orders in successfully
orders the date range
TC010 Verify Supplier: System Duplicate Fail
duplicate XYZ Ltd., prevents order created
order Date: duplicate without any
prevention 20240902 order and error
shows error
message

Exp No.2
Case ID Test Step Test Data Expected Actual Status
Result Result
TC001 Add a new Item: Widget New item Item added; Pass
item to A, Qty: 100, added; quantity and
inventory Price: $10 quantity and price shown
price correctly.
displayed
correctly.
TC002 Update item Item: Widget Item quantity Quantity Pass
quantity A, New Qty: updated to updated to
150 150. 150.
TC003 Update item Item: Widget Item price Price Pass
price A, New updated to updated to
Price: $12 $12. $12.
TC004 Remove an Item: Widget Item Item Pass
item from A removed removed
inventory successfully from
from inventory.
inventory.
TC005 Check low Item: Widget System Low stock Pass
stock alert B, Qty: 5 displays low alert
(Threshold: stock alert displayed for
10) for Widget Widget B.
B.
TC006 Perform Date: System Inventory Pass
inventory 20240902 records count
count inventory recorded
count successfully.
successfully.
TC007 Generate Date: Report Report Pass
inventory 20240901 to generated generated
report 20240930 with correct with correct
item details. details.
TC008 Verify item Search: Search Search Pass
search Widget A results show results show
functionality details for details for
Widget A. Widget A.
TC009 Check for Item: Widget System Duplicate Pass
duplicate A (already prevents item creation
item exists) duplicate blocked;
prevention item; error shown.
displays
error
message.
TC010 Handle Item: System Error Pass
invalid data [Blank], Qty: displays displayed for
entry 10, Price: error for invalid data
[Blank] invalid data entry.
entry.
Exp No.3
Case ID Test Step Test Data Expected Actual Status
Result Result
TC001 Perform Input: 5 + 3 Result Result Pass
addition should displayed 8.
display 8.
TC002 Perform Input: 10 4 Result Result Pass
subtraction should displayed 6.
display 6.
TC003 Perform Input: 7 * 2 Result Result Pass
multiplication should displayed
display 14. 14.
TC004 Perform Input: 20 / 5 Result Result Pass
division should displayed 4.
display 4.
TC005 Division by Input: 8 / 0 System Error Pass
zero should displayed:
display an "Cannot
error (e.g., divide by
"Cannot zero."
divide by
zero").
TC006 Handle Input: 3.5 + Result Result Pass
decimal 2.5 should displayed
addition display 6.0. 6.0.
TC007 Handle Input: 5 + 3 Result Result Pass
negative should displayed 2.
numbers display 2.
TC008 Perform Input: √16 Result Result Pass
square root should displayed 4.
operation display 4.
TC009 Invalid input Input: "A + System Error Pass
(nonnumeric) B" should displayed:
display an "Invalid
error (e.g., input."
"Invalid
input").
TC010 Perform Input: 2 ^ 3 Result Result Fail
exponentiation should displayed 5.
display 8.
Exp No.4
Case ID Test Step Test Data Expected Actual Status
Result Result
TC001 Fill in Name: John Doe, Form should Passenger Pass
passenger Age: 30, Gender: accept details
details Male passenger accepted
details without
without error.
error.
TC002 Select From: New York, Journey Journey Pass
journey To: Boston, Date: details details
details 20240910 should be displayed
accepted and correctly.
displayed
correctly.
TC003 Choose seat Seat Preference: System Seat Pass
preference Window should preference
accept seat accepted and
preference availability
and show shown.
availability.
TC004 Select ticket Ticket Type: System Selected Pass
type Sleeper should ticket type
display displayed
selected correctly.
ticket type
without
errors.
TC005 Enter Phone: Contact Contact Pass
contact 1234567890, details details
details Email: should be accepted
[email protected] accepted without
without any error.
error.
TC006 Make Payment Method: Payment Payment Pass
payment Credit Card, Card should be processed
Number: processed successfully.
1234567890123456 successfully.
TC007 Verify Booking Details: System Confirmation Pass
booking [Entered Details] should message and
confirmation generate a booking ID
confirmation generated.
message and
booking ID.
TC008 Check Name: Jane Doe, System Error Pass
invalid Age: 5 should displayed for
passenger display an invalid age.
age error for
invalid age.
TC009 Check for Name: [Blank], System Error Pass
empty Age: [Blank], should displayed for
mandatory Gender: [Blank] display an empty
fields error for mandatory
empty fields.
mandatory
fields.
TC010 Verify Same details as an System Duplicate Fail
duplicate existing confirmed should booking was
booking booking prevent allowed; no
prevention duplicate error shown.
booking and
show an
error.
Test ID Test Step Test Data Expected Actual Status
Result Result
TC001 Verify form Name: John Form Form Pass
accepts valid DoeAge: accepts accepted
passenger 30Gender: Male valid
details passenger
details
TC002 Verify form Name: John Form rejects Error Pass
rejects DoeAge: submission displayed
incomplete 30Gender: (left and displays
passenger blank) error
details
TC003 Verify seat Seat Preference: Seat Preference Pass
preference Window preference recorded
selection is recorded
(window/aisle) in the form
TC004 Verify form Passenger 1: Form Form Pass
allows multiple John Doe (Age: accepts accepted
passengers 30, details of
Male)Passenger both
2: Jane Doe passengers
(Age: 28,
Female)
TC005 Verify class Class: Sleeper Correct Class Pass
selection (e.g., class recorded
First Class, selection is
Sleeper) recorded
TC006 Verify payment Ticket Price: Payment Payment Pass
section for $100Payment section recorded
correct amount Method: Cash reflects
correct total
amount
TC007 Verify that Date: Date and Date and Pass
reservation 12/09/2024Time: time are time
date and time 14:30 correctly recorded
fields are recorded in
correctly the form
formatted
TC008 Verify form Date: Form shows Error Pass
rejects invalid 32/13/2024 an error displayed
date input message
indicating
an invalid
date
TC009 Verify form Name: John Form Concession Pass
accepts DoeAge: applies applied
concession 65Concession concession
details (Senior Type: Senior and adjusts
citizen/Student) Citizen ticket price
accordingly
TC010 Verify form Passenger 1: Total fare is Total fare Pass
calculates total John Doe calculated calculated
fare for ($50)Passenger as $100
multiple 2: Jane Doe
passengers ($50)
Test ID Test Step Test Data Expected Actual Status
Result Result
TC001 Enter valid Email: Email Email is Pass
email [email protected] should be accepted
address accepted,
no
validation
error
TC002 Enter valid Mobile Number: Mobile Mobile Pass
mobile 9123456789 number number
number should be accepted,
accepted, OTP
OTP sent received
TC003 Enter OTP: 98765 Error Error Pass
incorrect message message
OTP should displayed
appear:
"Invalid
OTP"

Test ID Test Step Test Data Expected Actual Status


Result Result
TC001 Enter a Mobile Mobile Error Pass
mobile Number: number message
number with 98765 should not displayed,
less than 10 be accepted, mobile
digits show error number
message rejected
TC002 Enter an Email: Email should Error Pass
email xyz@com not be message
address accepted, displayed,
without show error email
domain message rejected
TC003 Enter a valid Mobile Mobile Mobile Pass
mobile Number: number number
number and 9123456789 should be accepted,
check OTP accepted, OTP
flow OTP should received
be sent
TC004 Search trains From: Delhi, All available List of Pass
by entering To: Kolkata, trains available
valid stations Date: Next 7 between the trains
and future days stations displayed
travel date should be
listed
Exp NO.5
Test ID Test Step Test Data Expected Actual Status
Result Result
TC001 Search for a Product Name: Relevant Relevant Pass
product "Gaming Laptop" gaming products
using laptops displayed
keywords should be
displayed in
search
results
TC002 Add two Product 1: Both Both Pass
different "Smartphone", products products
products to Quantity: should be added to the
the 1Product 2: added to the cart
shopping "Headphones", shopping
cart Quantity: 1 cart
TC003 Update Product: Product Quantity Pass
quantity of "Smartphone", quantity updated to 2
a product in Quantity: 2 should be in the cart
the cart updated to 2
in the cart
TC004 Apply an Discount Code: Error Error Pass
invalid "INVALIDCODE" message message:
discount should "Invalid
code during appear: discount
checkout "Invalid code"
discount
code"
TC005 Attempt to Cart: Empty Error Error Pass
place an message message:
order with should "Cannot
an empty appear: proceed
shopping "Cannot with an
cart proceed empty cart"
with an
empty cart"
TC006 Enter a Address: "123 Shipping Shipping Pass
valid Main St, New address address
shipping York, NY" should be accepted,
address and accepted, proceeded
proceed proceed to to payment
payment
TC007 Complete Payment Method: Error Error Pass
checkout Credit CardCard message message:
with Number: "1234 should "Card
expired 5678 9012 appear: expired"
credit card 3456"Expiration "Card
details Date: "01/2020" expired"
Test ID Test Step Test Data Expected Actual Status
Result Result
TC001 Access the N/A Registration Registration Pass
registration page should page loaded
page load without successfully
errors
TC002 Complete Username: Registration Registration Pass
the testuserPassword: should successful,
registration Test@1234Email: succeed with confirmation
form with [email protected] a shown
valid data confirmation
message
TC003 Attempt to Username: Error Error Pass
submit testuserEmail: message message
registration [email protected] should displayed
without indicate that for missing
password the password
password is
required
TC004 Submit Username: Error Error Pass
registration testuserPassword: message message
with Test@1234Email: should displayed
improperly invalidemail indicate the for invalid
formatted email format email format
email is invalid
TC005 Log in Username: User should User logged Pass
using testuserPassword: be logged in in
correct Test@1234 successfully successfully,
credentials and redirected
redirected to
the
homepage
TC006 Attempt Username: Error Error Pass
login with a testuserPassword: message message
wrong IncorrectPass should state displayed
password that the for incorrect
password is password
incorrect
TC007 Log in with Username: Error Error Pass
a username randomuserPassword: message message
that hasn't Test@1234 should state displayed
registered that the for
username is unregistered
not username
registered
Test Test Step Test Data Expected Actual Status
ID Result Result
TC001 Access the URL: /register Registration Registration Pass
registration page loads page loaded
page successfully successfully
TC002 Input a Name: John Doe Name field Name field Pass
valid name accepts the accepted
input the input
TC003 Input a Email: Email field Email field Pass
valid email [email protected] accepts the accepted
address input the input
TC004 Input a Password: SecurePass123! Password Password Pass
valid field field
password accepts the accepted
input the input
TC005 Input a Phone: +1234567890 Phone field Phone field Pass
valid accepts the accepted
phone input the input
number
TC006 Submit the All valid inputs Registration Registration Pass
registration successful; successful;
form OTP sent to OTP sent
email
TC007 Verify the Email: OTP OTP Pass
received [email protected]: verification verification
OTP (check email) is successful
successful
Exp No.6

Test ID Test Step Test Data Expected Actual Status


Result Result
TC001 Open the URL: /home Homepage Homepage Pass
homepage should load loaded
successfully successfully
TC002 Click the Button: Login Login page Login page Pass
login should be displayed
button displayed
TC003 Enter valid Username: User should User logged Pass
login testuserPassword: log in and be in and
credentials Test123! redirected to redirected to
the dashboard
dashboard
TC004 Search for a Search term: Relevant Relevant Pass
product "Smartphone" products products
should be displayed
displayed in
search
results
TC005 Add a Product: Product Product Pass
product to SmartphoneQuantity: should be added to
the cart 1 added to the cart, count
cart, and cart updated
count
updated
TC006 Proceed to Cart: Contains Checkout Checkout Pass
checkout products page should page
be displayed displayed
TC007 Submit an Payment info: Valid Order Order Pass
order credit card confirmation confirmation
page should page
show order displayed
details

You might also like