Test Cases for Login Functionality
Test Cases for Login Functionality
Test Case ID Test Prerequisites Test Steps Input Data Expected Actual Status
Objective Output Result
TC001 Verify Flipkart 1. Click on the N/A Link should be Link is Pass
"Already website "Already have clickable and clickable and
have an should be an account" redirect to the redirects to
account" link loaded link. login page. the login
page.
TC005 Verify User is on 1. Navigate to N/A Fields and Fields and Pass
placement of login page the login page. buttons should buttons are
text 2. Check the be positioned properly
fields/buttons placement of correctly in the positioned.
"Mobile form.
number/Email
ID",
"Password"
field, and
"Submit"
button.
TC006 Verify User is on 1. Click on the N/A Mouse pointer Mouse Pass
navigation login page "Login" should change pointer
behavior option. to a cursor in changes to a
2. Hover over the text box. cursor.
the mobile
number field.
Defect Report for Login Field of Flipkart Website(s23,
• Severity: High
• Priority: Critical
Summary: "Mobile number/Email ID" field is not visible on the login page after clicking the "Already have an
account" link.
Description:
• Status: New
Test Test Objective Prerequisites Test Steps Input Data Expected Actual Status
Case Output Result
ID
TC001 User Authentication User 1. Open login Book Name: Login should Login is Pass
account page. Data be successful successful.
exists in the 2. Enter Structure
system username and using C
password.
3. Click login.
TC002 Borrowing a Book Book is 1. Search for the Book Name: 1. Book issued 1. Book Pass
available in book in the Data successfully. issued
the library. system. Structure 2. Status successfully.
2. Click using C updated to 2. Status
"Borrow". "Borrowed". updated.
TC003 Invalid Book Name None 1. Search for a Book Name: System should System Pass
book with an 123abcd display "Enter displays
invalid name. Valid Book "Enter Valid
Name". Book
Name".
TC004 Book Not Available Book is not 1. Search for an Book Name: System should System Pass
in stock. unavailable Data display "Book displays
book. Structure not available". "Book not
2. Attempt to and available".
borrow the book. Algorithm
TC005 Returning a Book Book was 1. Search for the Book Name: Book marked Book Pass
previously borrowed book. Data as "Returned" marked as
borrowed. 2. Click Structure in student and "Returned".
"Return". using C library
database.
TC006 Fine Calculation Book is 1. Return the Book Name: Fine should be Fine Pass
returned after book after the Data calculated and calculated
due date. due date. Structure displayed in the and
2. Check fine in using C system. displayed.
student’s login.
Defect Report for Login Field of Email Application (w23,
Severity: High
Priority: Critical
Summary:
Login field fails to validate and accept valid email addresses.
Description:
Expected Result:
The system should accept the valid email address and proceed to the password entry step.
Actual Result:
The system rejects valid email addresses with an error message: "Invalid Email."
Status: New
Reported By: ABC Tester
Reported On: 13/12/2024
Assigned To: XYZ Developer
Write important six test cases for the ‘Login Form’ of the Facebook website. (W23, S23,sqp
Test Test Objective Prerequisites Test Steps Input Data Expected Actual Result Status
Case Output
ID
TC001 Username None Leave the Username: Displays Displays Pass
field is left username field blank "Enter "Enter
blank blank. Username". Username".
TC002 Enter invalid None Enter invalid Username: abc Displays Displays Pass
username username. "Couldn't "Couldn't
find your find your
account". account".
TC003 Enter valid Valid Enter valid Username: Displays Displays Pass
username and username username and abc123 "Wrong "Wrong
invalid invalid Password: 123 password". password".
password password.
TC004 Enter valid Valid Enter valid Username: Displays Displays Pass
username and username username and abc123 "Enter "Enter
no password leave Password: password". password".
password blank
blank
TC005 Enter valid Valid Enter valid Username: Redirects Redirects to Pass
username and username and username and abc123 to user's user's
password password valid Password: Facebook Facebook
password. co5i22518 account account
page. page.
TC003 Verify that Form 1. Open the Email: Email should be Email Pass
the email loaded form. [Link]@ex accepted without accepted
field accepts correctly. 2. Enter a [Link] error. successfully.
valid email valid email
format. address.
TC004 Verify that Form 1. Open the Phone: Phone number Phone Pass
the phone loaded form. 9876543210 should be number
number field correctly. 2. Enter a accepted accepted.
accepts valid valid phone
numbers. number.
TC005 Verify that Form 1. Open the DOB: Date of birth Date Pass
the date of loaded form. 01/01/2000 should be accepted
birth field correctly. 2. Select a accepted without successfully.
accepts a valid date of error.
valid date. birth.
TC006 Verify that All form 1. Fill out the All fields filled Form should be Form Pass
the submit fields are form with correctly. submitted submitted
button works filled valid details. successfully. successfully.
after filling correctly. 2. Click the
out the form "Submit"
correctly. button.
Design test cases for online railway reservation applications.(S23, w19
Test Test Objective Prerequisites Test Steps Input Data Expected Actual Result Status
Case Output
ID
TC001 Verify if None Open the Source: Displays Displays Pass
the user application, Mumbai, available trains available
can select source Destination: between Mumbai trains
search for and Pune and Pune. between
trains destination Mumbai and
stations, and Pune.
click on
"Search".
TC002 Verify if Select a train Train: 12345 The selected The selected Pass
the user Train search from the (Express) train is train is
can select results are available list. highlighted. highlighted.
a train displayed
TC003 Verify if the None Click on the Date: 2024- Selected date is Selected date Pass
user can date field and 12-20 displayed is displayed
select a date select a correctly. correctly.
for travel travel date.
TC004 Verify if the User is on Click "Add Passenger: Passenger details Passenger Pass
user can add the Passenger" Name: John are added details are
passengers booking button and Doe, Age: successfully. added
page enter 30, Gender: successfully.
passenger Male
details.
TC005 Verify if the Passenger Select seat Seat Seat preference Seat Pass
user can details preference preference: is selected and preference is
select seat added (e.g., Window shown in the selected and
preferences window, summary. shown.
aisle).
TP-MSExcel-SaveAs-001
2. Introduction
This test plan is designed to validate the functionality, usability, and reliability of the "Save As" feature in
Microsoft Excel. The goal is to ensure the feature works as intended for saving files in various formats and
locations.
3. Test Items
4. Features to be Tested
5. Approach
Functional Testing: Verify that the feature performs as expected in all scenarios.
Boundary Testing: Test file saving for very large files and files with long names.
Negative Testing: Test with invalid file paths or restricted folders.
Compatibility Testing: Test on different operating systems and Excel versions.
Pass: File is saved successfully in the selected format and location with correct content and name.
Fail: File is not saved, saved incorrectly, or triggers an incorrect error.
7. Suspension/Resumption Criteria
Suspension: Testing will pause if critical issues (e.g., application crashes) occur.
Resumption: Testing will resume once the critical issues are resolved.
8. Test Deliverables
11. Responsibilities
13. Schedule
15. Approvals
TC00 Save file with MS 1. Open file. Blank name Error message to Error Pass
5 no name Excel 2. Click "File" > field enter name message to
open "Save As". enter name
3. Leave name
blank.
4. Try to save.
TC00 Save file with MS 1. Open file. Long Error message Error Pass
6 long name Excel 2. Click "File" > name for long name message for
open "Save As". long name
3. Enter a long
name.
4. Click "Save".
Design test cases for Online Mobile Recharge (Data filed are mobile number, state, email-id, recharge
amount.)(s22,
Test Test Prerequisit Test Input Expected Actual Stat
Case Objective es Steps Data Output Result us
ID
TC00 Verify if None 1. Open the Mobile Mobile number Mobile Pass
1 mobile recharge Number: is accepted, no number
number page. 9876543210 error message. accepted.
field 2. Enter a
accepts valid mobile
valid number.
input
TC00 Verify if 1. Open the Mobile Displays error: Error Pass
2 mobile recharge
Train search Number: "Invalid mobile message
number None page.
results are 98765abc number." displayed.
field displayed an
2. Enter
rejects invalid
invalid mobile
input number.
TC00 Verify state None 1. Open the State: State is selected, State selected Pass
3 selection recharge Maharashtra no error successfully.
dropdown page. message.
functionality 2. Select a
state from
the
dropdown.
TC00 Verify if None 1. Open the Email: Email ID is Email Pass
4 email ID field recharge test@exampl accepted, no accepted.
accepts valid page. [Link] error message.
email 2. Enter a
valid email
ID.
TC00 Verify if None 1. Open the Amount: 500 Recharge amount Amount Pass
5 recharge recharge is accepted, no accepted.
amount field page. error message.
accepts valid 2. Enter a
value valid
recharge
amount.
TC00 Verify error None 1. Open the Amount: Displays error: Error Pass
6 when recharge -500 "Amount cannot message
recharge page. be negative." displayed.
amount is 2. Enter a
negative negative
recharge
amount.
With respect to client-server testing design test cases for Online Payment Transfer at banking system.(s,22
Test Test Prerequisit Test Input Expected Actual Stat
Case Objective es Steps Data Output Result us
ID
TC00 Verify if User has 1. Open the Username: User is logged in User is Pass
1 user can valid banking user123 and directed to logged in
successfu credential system login Password: the dashboard. and directed
lly login s page. pass123 to the
2. Enter valid dashboard.
username
and
password.
TC00 Verify if 1. Log in to Recipient: Payment is Payment Pass
2 user can the system.
Train search John Doe transferred Successfully
User is 2. Enter Amount: 500 successfully,
transfer results are transferred.
logged in recipient confirmation
payment displayed
to a valid details and message appears.
recipient amount.
3. Click
"Transfer".
TC00 Verify if user User has 1. Log in to Amount: Error message: Error Pass
3 is prevented insufficie the system. 10000 "Insufficient message
from nt balance 2. Attempt to (Balance: funds." displayed.
transferring transfer 5000)
payment with amount
insufficient greater than
funds balance.
TC00 Verify if User is 1. Log in to Recipient Error message: Error Pass
4 system shows logged in the system. Account: "Invalid recipient message
error for 2. Enter an 1234567890 account." displayed.
invalid invalid
recipient recipient
account account
number.
3. Click
"Transfer".
TC00 Verify if user User has 1. Log in to Recipient: Transaction Email Pass
5 receives valid email the system. Jane Doe confirmation received.
transaction and 2. Complete Amount: email is received.
confirmation completed a payment 1000
email transaction transfer.
TP-001-SavingsAccount-Creation
Introduction
This test plan outlines the strategy and approach for testing the process of creating a savings account in a bank’s
system.
Test Items
Features to be Tested
1. Field validation
2. Successful account creation
3. Error handling for invalid inputs
4. Notification of successful account creation
Approach
Suspension/Resumption Criteria
Test Tasks
Environmental Needs
Responsibilities
Schedule
Approvals
Project Manager
Test Lead
Test Test Prerequis Test Input Expected Actual Stat
Case Objective ites Steps Data Output Result us
ID
TC00 Verify User on 1. Navigate to Blank Error message: Error Pass
1 mandator the the savings fields "Mandatory message
y fields account account creation fields cannot be displayed
validation creation page. empty."
page 2. Leave
mandatory fields
blank and click
"Submit".
TC00 Validate 1. Navigate to Valid user Account Success messagePass
displayed
2 successfu the savings
Train search details successfully
User detailsaccount creation created message
l account results are
ready page. displayed
creation displayed
2. Fill in all
fields with valid
data.
3. Click
"Submit".
TC00 Check invalid User on 1. Enter an Invalid Error message: Error Pass
3 email format the invalid email email "Invalid email message
handling account (e.g., address format." displayed
creation "test@com"). (e.g.,
page 2. Click "test@com
"Submit". ")
TC00 Validate User on 1. Enter non- Alphabets Error message: Error Pass
4 numeric-only the numeric in the "Phone number message
fields account characters in the phone must contain displayed
creation "Phone Number" number only numbers."
page field. field
2. Click
"Submit".
TC00 Verify ATM 1. Enter valid Amount: Error message: No response, Pass
4 withdrawal operational PIN. $50 "Network error. system froze.
with network , network 2. Select Please try again."
failure failed "Withdraw".
3. Enter valid
amount.
4. Confirm.
Defect Report(w22,
Severity: Critical
Priority: High
Summary:
The system freezes when a withdrawal is attempted during a network failure.
Description:
When a user attempts to withdraw money during a network failure, the ATM does not display an appropriate
error message (e.g., "Network error. Please try again.") or provide any option to cancel the transaction. Instead,
the screen freezes entirely, and the ATM becomes unresponsive. The only way to recover the ATM is by
performing a manual reboot, which causes inconvenience to users and potential delays in service.
Status: Open
Severity: High
Priority: High
Summary: The login button does not trigger any action when clicked.
Description: After entering valid credentials, clicking the login button doesn’t navigate to the dashboard page.
Status: Open
Test Test Prerequisites Test Steps Input Data Expected Actual Status
Case Objective Output Result
ID
TC001 Verify Notepad Open Notepad N/A Notepad Notepad Pass
Notepad opens installed application window window
successfully should open opened
successfully
TC002 Verify text Notepad is open Type text in "Hello Text should Text Pass
entry the Notepad World" appear in appeared
functionality Notepad correctly
TC003 Verify Save Notepad is open Type text > "[Link]" File should File saved Pass
File feature File > Save > save in the successfully
Enter desired path as [Link]
filename >
Save
TC004 Verify Open File exists File > Open > "[Link]" File content File content Pass
File feature Select file > should load loaded
Open correctly correctly
TC005 Verify Copy- Text is entered Select text > "Sample Text should Text pasted Pass
Paste Copy > Paste Text" paste correctly
functionality correctly
TC006 Verify Undo- Text is entered Type > Undo "Test" Undo Undo and Pass
Redo > Redo removes Redo
functionality text, Redo worked as
restores text expected
TC007 Verify word Notepad is open Format > Long Text wraps Text Pass
wrap feature Word Wrap > paragraph within wrapped
Type long text Notepad correctly
window
TC008 Verify Close Unsaved text in Close N/A Warning to Save Pass
without Save Notepad Notepad > save changes
warning Observe changes warning
warning appears displayed
message
Design test cases for simple calculator application. (Black box testing.) (Any six points.)(w22
TC00 Verify Calculator Perform any N/A Calculator clears Calculator Pass
6 clear/reset is open operation > all input cleared
functionality Press C
Design any two test cases for simple calculator application and prepare defect report.(sqp
Defect ID DEF001
Defect Name Addition functionality not working
Project Name Calculator Application
Module/Submodule Calculator (Addition)
Phase Found Execution of Test Case TC001
Defect Type Functional
Severity High
Priority High
The calculator does not add two numbers correctly when the addition operation is
Summary
performed.
After entering valid numbers and pressing the addition (+) button followed by the equals
Description
(=) button, the result is not computed correctly.
Status Open
Reported By John Doe / 19-Dec-2024
Assigned To Jane Smith
1. Open the Calculator application. 2. Enter the numbers 5 and 3. 3. Press the "+" button.
Steps to Reproduce
4. Press the "=" button.
Expected Result The result of 5 + 3 should be displayed as 8.
Actual Result The result displayed is still 8, but the addition function is not responding as expected.
Design test cases for MS Word application using an Automation tool.(w22,
#include <stdio.h>
int main()
{
for (int i = 2; i <= 20; i = i + 2)
{
printf("%d\n", i);
}
return 0;
}
TC00 Verify output Program 1. Execute the N/A Last output Last output Pass
3 ends with 20 is program number is 20 number is 20
compiled 2. Check the
last number
printed
TC00 Verify no Program 1. Execute the N/A No odd numbers No odd Pass
4 odd is program in the output numbers in
numbers compiled 2. Ensure only the output
are printed even numbers
are printed
TC00 Verify correct Program 1. Execute the N/A Numbers Numbers Pass
5 step increment is program increment by 2 increment by
compiled 2. Check 2
difference
between
consecutive
numbers
TC00 Verify Program 1. Execute the N/A Numbers are Numbers are Pass
6 correct is program between 2 and 20 between 2
output compiled 2. Ensure all inclusive and 20
range numbers inclusive
printed are
between 2 and
20 (inclusive)
Prepare test plan for "Cam Scanner' which is installed on mobile.(w22,s24,
TP_10
Introduction:
This test plan is for the CamScanner app installed on a mobile phone. The goal is to check if all features work
properly and if the app is easy to use.
Test Items:
Scan Document
Edit Document
PDF Conversion
Features to be Tested:
1. Scanning documents.
2. Editing documents.
3. Converting documents to PDF.
Approach:
Test Deliverables:
1. Test Plan
2. Test Cases
3. Test Report
Test Tasks:
Environmental Needs:
1. Mobile phone.
2. CamScanner installed.
Responsibilities:
Functionality Responsible Person
Scan Document Test Engineer 1
Edit Document Test Engineer 2
PDF Conversion of Document Test Engineer 3
Schedule:
Approvals:
Team Lead
Test Engineer 1
Test Engineer 2
Prepare test plan for Notepad application.(w23,
TP_11
Introduction:
This test plan is for the Notepad application. The purpose is to test its functionality and ease of use, ensuring
that all features work properly.
Test Items:
Features to be Tested:
Approach:
1. Test Plan
2. Test Cases
3. Test Report
Test Tasks:
Environmental Needs:
Responsibilities:
Functionality Responsible Person
Create New File Test Engineer 1
Open Existing File Test Engineer 2
Edit Text Test Engineer 3
Save File Test Engineer 4
Search Text Test Engineer 5
Schedule:
Approvals:
Team Lead
Test Engineer 1
Test Engineer 2
Design a test plan along with the test cases for edit function in notepad.(w19,
Introduction:
This document outlines the test plan for the "Edit" functionality in the Notepad application. The objective is to
ensure that the edit features (cut, copy, paste, undo, redo, etc.) work correctly.
Test Items:
Cut
Copy
Paste
Undo
Redo
Features to be Tested:
Cut Functionality
Copy Functionality
Paste Functionality
Undo Functionality
Redo Functionality
Approach:
The test will pass if all the features are working correctly without any issues.
If any functionality fails, it will be marked as a failure and needs further investigation.
Test Deliverables:
Test Plan
Test Cases
Test Reports
Test Tasks:
Environmental Needs:
Responsibilities:
Schedule:
Approvals:
Team Lead
Test Engineer 1
Test Engineer 2
Test Test Objective Prerequisites Test Steps Input Expected Actual Status
ID
TC001 Verify Cut Notepad is open 1. Select text. Sample Text should be Text Pass
TC002 Verify Copy Notepad is open 1. Select text. Sample Text should be Text Pass
Functionality and text is 2. Click on Text: copied to copied.
"Ctrl+C".
TC003 Verify Paste Notepad is open 1. Place the No input Copied text Text Pass
2. Click on cursor
"Ctrl+V".
TC004 Verify Undo Notepad is open 1. Type some Sample The last action Action Pass
"Undo" or use
"Ctrl+Z".
TC005 Verify Redo Notepad is open 1. Undo the Sample The last Action Pass
Functionality and text has last action. Text: undone action redone.
"Ctrl+Y".
Defect template:-(w19,
Here’s the defect report for the login form issue:
Defect Template:
Design any three test cases for railway reservation form and prepare defect report of it.(sqp,
Test Test Objective Prerequisites Test Steps Input Data Expected Actual Result Status
Case Output
ID
TC001 Verify if None Open the Source: Displays Displays fail
the user application, Mumbai, available trains available
can select source Destination: between Mumbai trains
search for and Pune and Pune. between
trains destination Mumbai and
stations, and Pune.
click on
"Search".
TC002 Verify if Select a train Train: 12345 The selected The selected Pass
the user Train search from the (Express) train is train is
can select results are available list. highlighted. highlighted.
a train displayed
TC003 Verify if the None Click on the Date: 2024- Selected date is Selected date Pass
user can date field and 12-20 displayed is displayed
select a date select a correctly. correctly.
for travel travel date.
Here’s a Defect Report for the failed test case (TC001):
Defect Report
Field Details
Defect ID DEF001
Defect Name Train Search Not Working
Project Name Train Booking Application
Module/Submodule Search Functionality
Phase Introduction Testing
Phase Found Execution of Test Case TC001
Defect Type Functional
Severity High
Priority High
The train search functionality is not displaying results for valid source and
Summary
destination.
After entering the source (Mumbai) and destination (Pune), clicking "Search" does
Description
not return any train results.
Status Open
Reported By/Reported
John Doe / 19-Dec-2024
On
Assigned To Jane Smith
Design any four boundary value test cases for textbox which accept numbers from 1- 999(sqp,
Test
Input Actual
Case Test Objective Prerequisites Test Steps Expected Output Status
Data Result
ID
Verify if the Enter the The textbox should
Textbox should be Input: Value "1"
TC001 textbox accepts the number 1 in accept the value Pass
visible and active 1 entered
minimum value the textbox. "1".
Verify if the Enter the The textbox should Value
Textbox should be Input:
TC002 textbox accepts the number 999 accept the value "999" Pass
visible and active 999
maximum value in the textbox. "999". entered
Verify if the
Enter the The textbox should Error
textbox rejects a Textbox should be Input:
TC003 number 0 in reject the value message Pass
value below the visible and active 0
the textbox. and show an error. shown
minimum
Test
Input Actual
Case Test Objective Prerequisites Test Steps Expected Output Status
Data Result
ID
Verify if the
Enter the The textbox should Error
textbox rejects a Textbox should be Input:
TC004 number 1000 reject the value message Pass
value above the visible and active 1000
in the textbox. and show an error. shown
maximum
Prepare test plan along with test cases for notepad option copy-paste.(sqp,
TP_001
Introduction:
The purpose of this test plan is to verify the functionality of the "Copy" and "Paste" options in the Notepad
application. This ensures that users can successfully copy text and paste it within the Notepad or between
different applications.
Test Items:
Copy option
Paste option
Features to be Tested:
Approach:
Functional Testing: Verifying that copy and paste operations work as expected.
Non-Functional Testing: Check if the application performs these operations without any delays or
crashes.
Test Deliverables:
Test Plan
Test Cases
Test Report
Environmental Needs:
Responsibilities:
Test
Input Expected
Case Test Objective Prerequisites Test Steps Actual Result Status
Data Output
ID
Verify copy 1. Select text in Text "Hello" is Text "Hello" is
Text is present Text:
TC001 functionality Notepad. 2. Press copied to copied to Pass
in Notepad "Hello"
(Ctrl + C) Ctrl + C. clipboard. clipboard.
Text "Hello" is Text "Hello" is
Verify paste
Text is copied 1. Open Notepad. pasted from pasted from
TC002 functionality N/A Pass
to clipboard 2. Press Ctrl + V. clipboard into clipboard into
(Ctrl + V)
Notepad. Notepad.
1. Open Notepad
Text "Hello" is Text "Hello" is
Verify paste with text "Hello".
Text is copied pasted in the pasted in the
TC003 functionality in 2. Select and copy N/A Pass
to clipboard same Notepad same Notepad
the same window text. 3. Paste text in
window. window.
the same window.
Verify paste Text "Hello" is Text "Hello" is
1. Copy text from
functionality Text is copied Text: pasted from pasted from
TC004 Notepad. 2. Open a Pass
across to clipboard "Hello" Notepad to the Notepad to the
browser and paste.
applications browser. browser.
Verify copy 1. Ensure text in Clipboard Clipboard
Text is empty
TC005 functionality Notepad is empty. N/A remains remains Pass
in Notepad
with empty text 2. Press Ctrl + C. empty. empty.
Verify paste 1. Ensure clipboard
No text is No text is
functionality Clipboard is is empty. 2. Press
TC006 N/A pasted into pasted into Pass
with no text in empty Ctrl + V in
Notepad. Notepad.
clipboard Notepad.