0% found this document useful (0 votes)
22 views36 pages

Test Cases for Login Functionality

Uploaded by

sakshi1482005
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)
22 views36 pages

Test Cases for Login Functionality

Uploaded by

sakshi1482005
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

test case format for testing a feature on Flipkart/Amazon: (s24,w23,s23-(with defect report),s22,w22,sqp,sqp

for answer of gui testing with eg.

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.

TC002 Verify login "Already 1. Navigate to N/A Mobile Mobile Pass


page displays have an the login page. number/Email number/Email Fail(for
form fields account" link 2. Check for ID field should ID field is defect report)
is clicked the presence be visible. visible.
of "Mobile
number/Email
ID" field in
the form

TC003 Verify Login page 1. Enter Password: Password Password is Pass


password with password as "123456" should be encrypted in
encryption password "123456". encrypted dots/asterisks.
field loaded 2. Verify that (dots/asterisks).
the password
is displayed in
encrypted
format (e.g.,
dots/asterisks).
TC004 Verify User is on 1. Click on the Language: Page content Page content Pass
language login page "Login" "Hindi" should be is displayed in
option option. displayed in Hindi.
functionality 2. Select the Hindi
"Hindi"
language link.

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,

• Defect ID: DEF001

• Defect Name: Missing Mobile number/Email ID Field

• Project Name: Flipkart Online Shopping Website

• Module/Submodule: User Login Module / Login Page

• Phase Introduced: Development

• Phase Found: Testing

• Defect Type: UI/UX Defect

• 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:

1. Navigate to the Flipkart website.


2. Click on the "Already have an account" link.
3. Observe the login form displayed. Expected Result: The login form should display the "Mobile
number/Email ID" field for users to input their credentials. Actual Result: The "Mobile number/Email
ID" field is not visible, preventing users from entering their credentials to log in.

• Status: New

• Reported By: Tester

• Reported On: 14/12/2024

• Assigned To: Developer Team


Prepare and write six test cases for Library Management System of college.(s24,

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,

 Defect ID: D001


 Defect Name: Login Field Error
 Project Name: Email Application
 Module/Submodule: Login/User Login Field
 Phase Introduced: Development Phase
 Phase Found: Testing Phase
 Defect Type: Functional

 Severity: High
 Priority: Critical

Summary:
Login field fails to validate and accept valid email addresses.

Description:

1. Open the email application.


2. Navigate to the login page.
3. Enter a valid email address (e.g., user@[Link]).
4. Click the "Next" button.

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.

TC006 Click on None Click on None Redirects Redirects to Pass


"Forgotten "Forgotten to "Find "Find your
password?" password?" your account"
link link. account" page.
page.
Design test cases for hostel admission form.(s23, w19,sqp
Test Test Objective Prerequisites Test Steps Input Data Expected Actual Result Status
Case Output
ID
TC001 Verify Form 1. Open the Name: John Name should be Name Pass
that the loaded hostel Doe accepted without accepted
name correctly. admission error. successfully.
field form.
accepts 2. Enter a
valid valid name.
input.
TC002 Verify Form 1. Open the Age: 22 Age should be Age accepted Pass
that the loade form. accepted within successfully.
age field d 2. Enter a valid range.
accepts correc valid age
valid tly. (18-30).
numbers.

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).

TC006 Verify if the Passenger Click Payment Payment is Payment is Pass


user can details, seat "Proceed to Method: processed, and processed,
complete the preference Payment", Credit Card, booking and booking
payment added select Amount: confirmation is confirmation
payment ₹500 displayed. is displayed.
method, and
complete the
transaction.
Prepare a test plan along with the test cases for the MS Excel option “Save AS”.(s23,

Test Plan for MS Excel "Save As" Option

1. Test Plan Identifier

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

 Microsoft Excel 2024


 "Save As" functionality for file saving

4. Features to be Tested

 File saving in different formats (e.g., .xlsx, .xls, .csv, .pdf).


 Saving files to various locations (e.g., local storage, network drives, cloud storage).
 Renaming files while saving.
 Error handling when a file cannot be saved (e.g., insufficient permissions, low storage).
 Confirmation messages and prompts.

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.

6. Item Pass/Fail Criteria

 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

 Test cases document.


 Test execution report.
 Defect log.
 Final summary report.
9. Test Tasks

 Prepare test cases.


 Execute test cases.
 Record results.
 Report defects.

10. Environmental Needs

 Microsoft Excel installed on testing devices.


 Test devices with various OS (Windows, macOS, etc.).
 Network connectivity for saving to cloud or network drives.

11. Responsibilities

 Test Lead: Oversee the testing process.


 Testers: Execute test cases and report issues.
 Developers: Fix reported issues.

12. Staffing and Training Needs

 Testers should be familiar with Excel's features and file management.


 Training on the specific test environment setup if required.

13. Schedule

 Test Plan Creation: Day 1


 Test Case Preparation: Days 2-3
 Test Execution: Days 4-7
 Reporting and Review: Days 8-9

14. Risks and Contingencies

 Risk: Limited access to specific devices or network drives.


 Contingency: Use simulators or virtual environments to replicate conditions.

15. Approvals

 Test Lead Approval: [Name]


 Project Manager Approval: [Name]
Test cases for the MS Excel option “Save AS”.(s23,

Test Test Prerequi Test Input Expected Actual Stat


Case Objective sites Steps Data Output Result us
ID
TC00 Save file MS 1. Open file. New file File saved with File saved Pass
1 with a Excel 2. Click "File" > name new name with new
new open "Save As". name
name 3. Enter a new
name.
4. Click "Save".
TC00 Save file 1. Open file. File format File saved in File saved in Pass
2 in a MS 2. Click "File" > (.csv) selected format selected
different Excel "Save As". format
format open 3. Choose format
(e.g., .csv).
4. Click "Save".
TC00 Save file to MS 1. Open file. Cloud File saved to File saved to Pass
3 cloud Excel 2. Click "File" > storage OneDrive OneDrive
(OneDrive) open "Save As". (OneDrive)
3. Select
OneDrive.
4. Click "Save".

TC00 Overwrite MS 1. Open file. Existing file Confirmation to Confirmation Pass


4 existing file Excel 2. Click "File" > name overwrite shown to overwrite
open "Save As". shown
3. Enter name of
existing file.
4. Click "Save".

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.

TC00 Verify if the User is 1. Log in to Amount: Transaction Transaction Pass


6 transaction logged in the system. 1500 history shows the listed
history 2. Complete Recipient: correct correctly.
updates a payment Alice transferred
correctly after transfer. amount.
payment 3. Go to
transfer transaction
history.
Prepare a test plan along with test cases for creating a saving account at bank. (Test cases should be atleast
six).(s22,

Test Plan for Creating a Savings Account

Test Plan Identifier

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

1. Customer Information Form (CIF) submission


2. Account creation interface functionality
3. Validation checks (e.g., mandatory fields)
4. Integration with backend systems

Features to be Tested

1. Field validation
2. Successful account creation
3. Error handling for invalid inputs
4. Notification of successful account creation

Approach

1. Manual testing will be conducted.


2. Positive and negative test cases will be executed.
3. Both functional and UI aspects will be verified.

Item Pass/Fail Criteria

 Pass: The system performs as per the expected output.


 Fail: The system behaves differently than expected.

Suspension/Resumption Criteria

 Suspension: If the banking system crashes or critical issues occur.


 Resumption: Once the issues are resolved.
Test Deliverables

1. Test cases document


2. Test execution report
3. Defect log
4. Final test summary report

Test Tasks

1. Prepare test cases.


2. Execute test cases.
3. Log defects.
4. Re-test fixed issues.

Environmental Needs

1. Test environment with access to the banking application.


2. Database access for validation.
3. Functional user credentials.

Responsibilities

1. Test Lead: Oversee the test plan.


2. Testers: Execute test cases.
3. Developers: Fix reported defects.

Staffing and Training Needs

1. 2 Testers with banking domain knowledge.


2. Training on the bank’s account creation process.

Schedule

 Test Case Preparation: 2 days


 Test Execution: 3 days
 Defect Reporting and Fix Verification: 2 days

Risks and Contingencies

 Risk: Delay in test environment setup.


 Contingency: Use mock data for preliminary testing.

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 User on 1. Enter an Amount Error message: Error Pass


5 minimum the amount below less than "Minimum message
balance account the minimum the balance displayed
requirement creation required balance minimum requirement not
page in the "Initial (e.g., 200) met."
Deposit" field.
2. Click
"Submit".
TC00 Check system System is 1. Submit a valid Valid Account creation Process Pass
6 response time operation account creation user process completed in
al form. details completes within 2s
2. Measure the 3 seconds.
time taken for
account creation.
Design any four test cases for withdraw an amount from ATM and prepare defeat report of it.(s22,
Test Test Prerequisit Test Input Expected Actual Stat
Case Objective es Steps Data Output Result us
ID
TC00 Verify ATM 1. Enter valid Amount: Transaction Transaction Pass
1 withdraw operation, PIN. $100 successful. successful,
al with card 2. Select Dispense cash cash
sufficient inserted "Withdraw". and update dispensed.
balance 3. Enter an balance.
amount less
than or equal
to the balance.
4. Confirm.
TC00 Verify 1. Enter valid Amount: Error message: Error Pass
2 ATM
withdraw Train PIN.
search $2000 "Insufficient Message
operational, 2. Select balance."
al results are displayed.
card "Withdraw".
exceeding displayed
inserted 3. Enter an
balance
amount greater
than the
available
balance.
4. Confirm.
TC00 Verify invalid ATM 1. Enter invalid PIN: 1234 Error message: Error Pass
3 PIN handling operationa PIN. (wrong "Invalid PIN." message
l, card 2. Select PIN) displayed.
inserted "Withdraw".

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,

Defect ID: ATM-DEF-001

Defect Name: System freeze during withdrawal with network failure

Project Name: ATM Transaction System

Module/Submodule: Withdrawal Module / Network Connectivity

Phase Introduced: Development

Phase Found: Testing

Defect Type: Functional

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

Reported By / Reported On: Test Engineer / 14-Dec-2024

Assigned To: Development Team


Prepare defect report after executing test cases for any login form.(w22,

Defect ID: DEF001

Defect Name: Login Button Not Working

Project Name: Online Banking Application

Module/Submodule: Login Form

Phase Introduction: Testing

Phase Found: Execution of Test Case TC003

Defect Type: Functional

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

Reported By/Reported On: John Doe / 15-Dec-2024

Assigned To: Jane Smith


Write the test cases for Notepad application. (any eight test case).(w22,

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

Test Test Objective Prerequisit Test Input Expected Actual Stat


Case es Steps Data Output Result us
ID
TC00 Verify Calculator Enter two 5, 3 8 8 Pass
1 addition is open numbers and
functional press + and =
ity

TC00 Enter two 10, 4 6 6 Pass


2 numbers
Train and
search
Verify Calculator
subtraction results are =
press - and
is open
functionality displayed

TC00 Verify Calculator Enter two 6, 2 12 12 Pass


3 multiplication is open numbers and
functionality press * and =

TC00 Verify division Calculator Enter two 8, 2 4 4 Pass


4 functionality is open numbers and
press / and =

TC00 Verify division Calculator Enter a 5, 0 Error or "Cannot Error Pass


5 by zero is open number, divide divide by 0" displayed
by 0, and press
=

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

Test Test Objective Prerequisit Test Input Expected Actual Stat


Case es Steps Data Output Result us
ID
TC00 Verify Calculator Enter two 5, 3 8 8 fail
1 addition is open numbers and
functional press + and =
ity

TC00 Enter two 10, 4 6 6 Pass


2 numbers
Train and
search
Verify Calculator
subtraction results are =
press - and
is open
functionality displayed

TC00 Verify Calculator Enter two 6, 2 12 12 Pass


3 multiplication is open numbers and
functionality press * and =

Defect Report for Failed Test Case (TC001)

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,

Test Test Objective Prerequisit Test Input Expected Actual Stat


Case es Steps Data Output Result us
ID
TC00 Verify MS Word 1. Open MS N/A A new blank A new blank Pass
1 opening a installed Word document is document is
new and 2. Click on opened opened
document opened "File" > "New"
> "Blank
Document"
TC00 1. Create a new "Test Document is Document is Pass
2 MS Word Train document
search Document" saved Saved
Verify saving 2. Enter
installed and results are some successfully successfully
a document opened displayed text
3. Click on
"File" > "Save
As"
4. Save the file
with a name
TC00 Verify text MS Word 1. Open a new "Sample Selected text is Selected text Pass
3 formatting installed document Text" formatted as is formatted
and 2. Enter text specified as specified
opened 3. Select text
and apply
formatting
(Bold, Italic,
Underline)
TC00 Verify spell MS Word 1. Open a new "Helo wrld" Spelling Spelling Pass
4 Check installed document suggestions are suggestions
functionality and 2. Enter provided are provided
opened incorrect
spelling
3. Run spell
check (Review
> Spelling &
Grammar)
TC00 Verify printing Printer 1. Open a N/A Document is Document is Pass
5 functionality connected document printed printed
and 2. Click on successfully successfully
configured "File" > "Print"
3. Select
printer and
print
TC00 Verify MS Word 1. Open a "Copy this Text is copied Text is Pass
6 copy-paste installed document text" and pasted copied and
functionality and 2. Copy text successfully pasted
opened (Ctrl+C) successfully
3. Paste text
(Ctrl+V)
Above test cases will be executed on any automation tool like autoIT, QTP etc.
Write program for calculating even numbers from 1 to 20 And design test cases for the same.(w22,

#include <stdio.h>
int main()
{
for (int i = 2; i <= 20; i = i + 2)
{
printf("%d\n", i);
}
return 0;
}

Test Test Objective Prerequisit Test Input Expected Actual Stat


Case es Steps Data Output Result us
ID
TC00 Verify C 1. Compile the N/A Prints even Prints even Pass
1 the compiler program numbers: 2, 4, ..., numbers: 2,
program installed 2. Execute the 20 4, ..., 20
executes program
correctly
TC00 1. Execute the N/A First output Pass is 2
First output number
2 program
Train search number is 2
Verify output Program is 2. Check the
results are
starts with 2 compiled first number
displayed
printed

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,

Test Plan for CamScanner

Test Plan Identifier:

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:

 Functional Testing: Check if all features work as expected.


 Non-Functional Testing: Ensure ease of use and performance.
 Positive and Negative Testing: Test both valid and invalid inputs.
 Ad Hoc Testing: Explore the app without formal test cases.

Item Pass/Fail Criteria:

 All important test cases should pass.


 Test coverage should be at least 99%.
 Test reports should be approved by the team lead and customer.

Suspension and Resumption Criteria:

 Testing Stops: If major bugs are found that block testing.


 Testing Resumes: Once the major bugs are fixed.

Test Deliverables:

1. Test Plan
2. Test Cases
3. Test Report
Test Tasks:

1. Write the test plan.


2. Write test cases.
3. Define success criteria for testing.
4. Perform testing and analyze results.
5. Create the test report.

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

Staffing and Training Needs:

 Knowledge of how CamScanner works.


 Ability to design and execute test cases.
 Knowledge of functional and non-functional testing.

Schedule:

All testing should be finished by 25/01/2023 at 5:00 PM.

Risks and Contingencies:

 Not enough testers available.


 Requirements for the app may change.

Approvals:

 Team Lead
 Test Engineer 1
 Test Engineer 2
Prepare test plan for Notepad application.(w23,

Test Plan for Notepad Application

Test Plan Identifier:

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:

 Create a New File


 Open Existing File
 Edit Text
 Save File
 Text Search

Features to be Tested:

1. Creating a new file.


2. Opening an existing file.
3. Editing text in the file.
4. Saving the file.
5. Searching text in the file.

Approach:

 Functional Testing: Check if all features work correctly.


 Non-Functional Testing: Ensure that the application is responsive and user-friendly.
 Positive and Negative Testing: Test valid and invalid inputs (e.g., saving a file with an unsupported
extension).
 Ad Hoc Testing: Try using the application without predefined test cases to check for unexpected
behaviors.

Item Pass/Fail Criteria:

 All critical test cases should pass.


 The application should meet at least 99% of the testing requirements.
 The test report should be approved by the team lead and customer.

Suspension and Resumption Criteria:

 Testing Stops: If critical bugs are found that block testing.


 Testing Resumes: Once the blocking bugs are fixed.
Test Deliverables:

1. Test Plan
2. Test Cases
3. Test Report

Test Tasks:

1. Write the test plan.


2. Write detailed test cases.
3. Define success criteria for testing.
4. Execute tests and evaluate results.
5. Prepare the final test report.

Environmental Needs:

1. Computer or Mobile (for testing the Notepad application).


2. Notepad application installed.

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

Staffing and Training Needs:

 Knowledge of how the Notepad application works.


 Ability to create and execute test cases for basic software functionality.
 Understanding of both functional and non-functional testing.

Schedule:

Testing should be completed by 30/01/2023 at 5:00 PM.

Risks and Contingencies:

 Limited resources for testing.


 Changes in product requirements during the testing phase.

Approvals:

 Team Lead
 Test Engineer 1
 Test Engineer 2
Design a test plan along with the test cases for edit function in notepad.(w19,

Test Plan Identifier: TP_01

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:

 Functional testing of all edit features.


 Positive testing with valid inputs.
 Negative testing for incorrect or unsupported actions.

Item Pass/Fail Criteria:

 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.

Suspension Criteria and Resumption Requirements:

 Testing will be suspended if a blocking defect is found.


 Testing will resume once the defect is fixed.

Test Deliverables:

 Test Plan
 Test Cases
 Test Reports

Test Tasks:

 Writing test cases.


 Conducting tests and evaluating results.
 Documenting the results.

Environmental Needs:

 Windows operating system


 Notepad application installed

Responsibilities:

 Test Engineer 1: Perform functional testing for each feature.


 Test Engineer 2: Document the results and identify any defects.

Staffing and Training Needs:

 Knowledge of the Notepad application and basic test design techniques.

Schedule:

 Completion of all tests by 25/01/2023, 5:00 PM.

Risks and Contingencies:

 Lack of time to test all scenarios.


 Changes to the Notepad version that could impact test execution.

Approvals:

 Team Lead
 Test Engineer 1
 Test Engineer 2

Test Cases for Edit Function in Notepad

Test Test Objective Prerequisites Test Steps Input Expected Actual Status

Case Data Output Result

ID

TC001 Verify Cut Notepad is open 1. Select text. Sample Text should be Text Pass

Functionality and text is 2. Click on Text: removed and removed

present "Cut" or use "Hello" copied to and

"Ctrl+X". clipboard. copied.

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.

present "Copy" or use "Hello" clipboard.

"Ctrl+C".

TC003 Verify Paste Notepad is open 1. Place the No input Copied text Text Pass

Functionality and text is cursor in the needed should be pasted at

copied text area. pasted at the cursor.

2. Click on cursor

"Paste" or use location.

"Ctrl+V".

TC004 Verify Undo Notepad is open 1. Type some Sample The last action Action Pass

Functionality and text is text. Text: should be undone.

present 2. Click on "Hello" undone.

"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.

been undone 2. Click on "Hello" should be

"Redo" or use redone.

"Ctrl+Y".
Defect template:-(w19,
Here’s the defect report for the login form issue:

Defect Template:

Defect Template Description


Defect ID DEF001
Defect Name Login Button Not Working
Project Name Online Banking Application
Module/Submodule Login Form
Phase Introduction Testing
Phase Found Execution of Test Case TC003
Defect Type Functional
Severity High
Priority High
Summary The login button does not trigger any action when clicked.
After entering valid credentials, clicking the login button doesn’t navigate to the
Description
dashboard page.
Status Open
Reported By/Reported
John Doe / 15-Dec-2024
On
Assigned To Jane Smith
Design test cases for MSBTE Online Exam form filling.(any valid six test cases).(sqp,

Test Test Objective Test Steps Expected Output Status


Case ID
TC001 Verify login 1. Open website.2. Enter valid User should be logged in and Pass
functionality credentials.3. Click "Login". redirected to exam form page.
TC002 Check if form fields 1. Login.2. Go to exam form All required fields should be Pass
are visible page. visible.
TC003 Verify mandatory 1. Leave mandatory fields Error message should appear Pass
fields validation empty.2. Click "Submit". for missing fields.
TC004 Check correct data 1. Fill in all fields.2. Click Form should be successfully Pass
entry "Submit". submitted with valid data.
TC005 Verify form 1. Fill all fields.2. Click Success message confirming Pass
submission "Submit". form submission.
TC006 Verify invalid email 1. Enter invalid email.2. Click Error message should appear Pass
format "Submit". for invalid email.

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,

Test Plan for Notepad Option Copy-Paste

Test Plan Identifier:

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:

 Copy functionality (Ctrl + C)


 Paste functionality (Ctrl + V)
 Paste functionality in the same window
 Paste functionality across different applications

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.

Item Pass/Fail Criteria:

 Pass: All functional and non-functional requirements are met successfully.


 Fail: If any functionality does not work as expected or results in errors.
Suspension Criteria and Resumption Requirements:

 Suspend: If the application crashes while copying/pasting.


 Resume: Once the issue is resolved, testing can resume.

Test Deliverables:

 Test Plan
 Test Cases
 Test Report

Environmental Needs:

 Windows OS with Notepad installed


 Keyboard with standard copy-paste shortcuts

Responsibilities:

 Test Case Creation: Test Engineer


 Test Execution: Test Engineer
 Defect Reporting: Test Engineer

Staffing and Training Needs:

 Basic knowledge of using Notepad


 Knowledge of keyboard shortcuts for copy-paste operations
Test Cases for Copy-Paste Functionality

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.

You might also like