Test Cases by Dhiraj
Test Cases by Dhiraj
6. TC_6 Check the It must consist of 10 9555571543 It must accept the data Data accepted Pass
requirements of Phone digits only, no letters
number field or symbols
7. TC_7 Check if more than or when more than or 9588321 “Please input only 10 digits “Please input only 10 Pass
less than 10 digits less than 10 digits numbers..." digits numbers..."
number in inputted in are inputted then it Message must be displayed Message displayed
Phone number field should not accept it
and must display
msgbox
8. TC_8 Check the Amount field must 1000 Data must have accepted Data accepted Pass
requirements of be enabled, it must
Amount field consist of numbers
which are greater
than 500
9. TC_9 Check when we enter Symbols or numbers 87h@ Incorrect Format Error “Incorrect Format” Pass
any numbers or should be input message be given displayed
symbols in Amount
field
10 TC_10 Check when we enter Amount less than 23 User should inform to input “Amount must be Pass
amount less than 500 500 must be input amount more than 500 greater than or equal
in amount field to 500” message must
be displayed
11 TC_11 Check the Button should be Save Button User should be asked whether “Do you want to Pass
requirements of Save visible and clickable clicked after to continue the saving action or continue” message
button only after all fields filling all not box displayed
are filled without fields
exceptions properly
Practical No 3 Exercise Q.1
5. TC_5 Check the subtraction Buttons/ numbers should be -25 -25 -50, answer must be Negative answer, -50 Pass
of two negative clickable, Actual result negative
numbers. should meet to the expected
result, negative input
6. TC_6 Check the subtraction Buttons/ numbers should be -65 + 4 -61, sign of answer Sign of larger number (- Pass
of one negative and clickable, Actual result must be same as the 65) is same as answer
one positive number. should meet to the expected sign of larger number (-61), -61
result, negative and positive
input
7. TC_7 Check the Buttons/ numbers should be 5*5 10, positive output positive value/ answer Pass
multiplication of two clickable, Actual result is obtained, 10
integer numbers. should meet to the expected
result,
Positive input
8. TC_8 Check the Buttons/ numbers should be (-12) * (-12) 144, positive output positive value/ answer Pass
multiplication of two clickable, Actual result is obtained, 144
negative numbers should meet to the expected
result, negative input
9. TC_9 Check the Buttons/ numbers should be (-12) * (12) -144, negative output Negative value/ answer Pass
multiplication of one clickable, Actual result is obtained, -144
Practical No 3
10. TC_10 Check the division of Buttons/ numbers should be 15 / 5 3, positive output Positive value / answer Pass
two integer numbers. clickable, Actual result is obtained, 3
should meet to the expected
result, positive input
11. TC_11 Check the division of Buttons/ numbers should be (-15) / (-5) 3, positive output Positive value / answer Pass
two negative numbers. clickable, Actual result is obtained, 3
should meet to the expected
result, negative input
12. TC_12 Check the division of Buttons/ numbers should be (-15) / 5 -3, negative output Negative value / answer Pass
one positive number clickable, Actual result is obtained, -3
and one negative should meet to the expected
number. result, positive and negative
input
13. TC_13 Check the division of a Buttons/ numbers should be 765 / 0 No output, can’t “Can’t divide by zero.” Pass
number by zero. clickable, Actual result divide by zero toast displayed
should meet to the expected must be displayed
Practical No 3
16. TC_16 Check if the brackets Buttons should be clickable () buttons Brackets must be Brackets displayed Pass
keys are working. clicked displayed properly
17. TC_17 Check if the point Buttons should be clickable . button . must be displayed . displayed Pass
button is working. clicked
Practical No 4
Sr. Test Test Case Precondition Input Steps to be Expected Actual Pass/F
No Case Objectives data Executed result result ail
ID
TC1. Check whether the Username and Password field is enabled and works appropriately.
1 TC1_1 To verify if a ----- Usernam Enter the The login The user is Pass
user is able to e= username page should logged in
login with a “Abc_2 and prompt that
valid 5”, password in the entered
username and passwor their password is
valid password d=”Abc respective invalid.
@-123” fields and After
click on clicking on
submit the submit
button button the
user must be
logged in
2 TC1_2 To verify if a ----- Usernam Enter the The login “Enter Pass
user is able to e= username page should valid
login with a “abc_22 and prompt that username
invalid ”, password in the entered and
username and passwor their username Password”
invalid d=”Abc respective and message is
password @-163” fields and password is displayed
click on invalid.
submit “Enter valid
button username
and
Password”
message
should be
displayed
3 TC1_3 To verify if a ----- Usernam Keep both “Please “Please Pass
user is able to e= “”, the field Valid Valid
login by passwor empty check username username
keeping both d=”” whether still and and
username and the user can password” password”
password login or not message message is
fields empty should be displayed
displayed
TC2.Check the availability of Train and Seats.
4 TC2_1 To check the The app/website Source: 1.Open Train List of Pass
availability of must be open Mumbai website available available
Train Destinati 2.Then must be train is
on: choose displayed displayed
Delhi option
Date: 3.Enter
16/08/20 source and
destination 4.
Enter the
date
5 TC2_2 To check for The app/website Train 1.Enter train Seats List of Pass
the availability must be open No:254 number for available available
of seats available must be seats is
seats displayed displayed
Practical No 4
6 TC2_3 To check for The app/website Source: 1.Open List of List of Pass
the availability must be open Mumbai website available available
of train for Destinati 2.Then trains for trains for
next 5 days on: choose next 2 days next 2
Delhi option must be days is
Date: 3.Enter displayed displayed
16/08/20 source and
destination 4.
Enter the
date
7 TC2_4 To check The app/website Source: 1.Open List of List of Pass
availability of must be open Mumbai website available available
AC, sleeper Destinati 2.Then seats for seats for
seats on: choose sleeper, AC sleeper,
Delhi option must be AC is
Date: 3.Enter displayed displayed
16/08/20 source and
destination
8 TC2_5 To search with The app/website Source: 1.Open List of List of Pass
all the root must be open Mumbai website Trains Trains
stations Destinati 2.Then between between
on: choose Mumbai to Mumbai to
Delhi option Delhi must Delhi is
3.Enter be shown displayed
source and
destination
9 TC2_6 To check for The app/website Seat 1.Open Must Display Pass
the upper, must be open no:15 website Display whether
Lower and 2.Enter seat whether the the seat
middle birth number seat number number is
is of upper, of upper,
lower or lower or
middle birth middle
birth
13 TC3_1 To check the The app/website Email id 1.Open User The OTP is OTP is Pass
validity of must be open module from generated by received
Email id the website the Railway on valid
2.Enter Reservation email id
Email id System and
3.Click on it must be
verify sent to the
email id
14 TC3_2 To check the The app/website Mobile 1.Open user The OTP is OTP is Pass
validity of must be open number module from generated by received
Mobile the website the Railway on valid
Number 2.Enter Reservation Number
Mobile System and
Number it must be
3.Verify sent to the
eMobile Mobile
number Number
TC4. Check the functionality of Submit button
15 TC4_1 Check whether ----- ----- Check The submit Tickets are Pass
the Submit whether the button must boked
button is submit be enable in successfull
Enabled or not button is order to book y
enabled or the tickets
not
TC5. Session
16 TC5_1 To check if ----- Usernam To verify is The used The used Pass
user logged in e= a user is should be is logged
on multiple “Xyz_2 logged out logged out out from
devices and 020”, from all from all all
logout from passwor platform/dev devices/platf devices/pl
one device d=”Xyz ices if he/she orms atforms
then it should @-123” is logged in
logout from all from
platform/devic multiple
es devices/platf
orms
17 TC5_2 Check whether ----- ---- Logout from The user User is not
after logging the page must not be be able to
out the user able to login login
should not be within one within one
able to login session once session
within same logged out once
session logged out
Practical No 5Exercise Q.1
1 TC-1 Enter valid username Username and Password Username =” Manasi” “Welcome Back” Shown “Welcome Pass
name and valid field should be visible, Password =” Patil” message should be Back” message
password Valid username and valid given
password should be
provided in username and
password field
respectively
2 TC-2 Enter invalid Username and Password Username =” Manu” “Invalid login” Shown “Invalid Pass
username name and field should be visible, Password =” Patil” message should be login” message
valid password Invalid username and given
valid password should be
provided in username and
password field
respectively
3 TC-3 Enter valid username Username and Password Username =” Manasi” “Invalid login” Shown “Invalid Pass
name and invalid field should be visible, Password =” patil” message should be login” message
password Valid username and given
invalid password should
be provided in username
and password field
respectively
4 TC-4 Enter invalid Username and Password Username =” patil” “Invalid login” Shown “Invalid Pass
username name and field should be visible, Password =” manasi” message should be login” message
invalid password Invalid username and given
invalid password should
be provided in username
and password field
respectively
Practical No 5
5 TC-5 Enter nothing in Username and Password Username =”” “Enter Username “Enter Username Pass
username and field should be visible, Password =”” “and “Enter “and “Enter
password field No data should be Password” message Password” message
inputted should be display displayed near the
near the particular particular filed
filed
Practical No 6Exercise Q.1
Sr. Test_ Test_case_Objective Pre-condition I/P Data Post-condition Actual result Status
No case_I
. D
1. TC_1 Search results displayed Text field must be visible and Life is what you It must show the It showed that book Pass
in the textbox should be ready to accept data, make it respective book and related books
relevant to search whenever user input some
keyword text it must be relevant to
search keyword
2. TC_2 Pre-defined criteria for After typing first 3 letter it Lif It must suggest the books It suggested number Pass
auto complete should suggest matching which starts from ‘lif…’ of books starting
keyword from ‘lif…’
3. TC_3 Search results should be Search button must be visible Life is what you It must display relevant It showed that book Pass
displayed on clicking and clickable, when user make it searches and related books
search button clicks on search button the
relevant searches must be
display
4. TC_4 User should be able to After clicking on ‘Enter’ ‘Life’ data is It must display relevant It displayed results Pass
search when he enters button searching process must inputted and enter searches related to the ‘Life’
the keyword and hits be started button is pressed
‘Enter’ button on
keyboard
5. TC_5 In case of invalid user Invalid data must be inputted Andufjsxvyg It must tell user no It asked: ‘Did you Pass
input, user must be for search matches found for his/her mean: byddf’,
confirmed about his search, it must ask user displayed: ‘did not
search what did he/she mean, it match any book
should suggest user what results’, suggested to
to do next make sure that all
words were spelled
correctly.
Practical No 6
Try different
keywords.
Try more general
keywords.
6. TC_6 Check the activity after My Library button must be ‘My Library’ It must jump to new New webpage of My Pass
clicking My Library visible and clickable button clicked webpage Library opened
Button
7. TC_7 Check the activity after Publishers button must be ‘Publishers’ It must jump to new New webpage of My Pass
clicking Publishers visible and clickable button clicked webpage Library opened
Button
8. TC_8 Check the activity after About button must be visible ‘About’ button It must jump to new New webpage of Pass
clicking About Button and clickable clicked webpage About opened
9. TC_9 Check the activity after Privacy button must be ‘Privacy’ button It must jump to new New webpage of Pass
clicking Privacy Button visible and clickable clicked webpage Privacy opened
10. TC_10 Check the activity after Terms button must be visible ‘Terms’ button It must jump to new New webpage of Pass
clicking Terms Button and clickable clicked webpage Terms opened
11. TC_11 Check the activity after Help button must be visible ‘Help’ button It must jump to new New webpage of Pass
clicking Help Button and clickable clicked webpage Help opened
practical No 7
Test case for control and decision-making statement
1. For loop:
Program:
class Sample{
public static void main(String[] args) {
int a;
for(a = 0; a <= 5; a++){
System.out.println(a+" ");
}
}
}
Test case:
Sr. No. Test Case Test Case Description Status
ID
2. Switch case:
Program:
class Sample{
public static void main(String[] args) {
int a = 2;
switch(a){
case 1:
System.out.println("Value of a is 1");
break;
case 2:
System.out.println("Value of a is 2");
break;
default:
System.out.println("Value of a is other than 1 & 2");
}
}
}
Test case:
Sr. No. Test Case Test Case Description Status
ID
3. Do while:
Program:
class Sample{
public static void main(String[] args) {
int a = 1;
do{
System.out.println(a);
a++;
}while(a<=5);
}
Test case:
4. If-else:
Program:
class Sample{
public static void main(String[] args) {
int a = 25;
if(a>10){
System.out.println("a is greater than 10");
}else{
System.out.println("a is less than 10");
}
}
}
Test Case:
Sr. No. Test Case Test Case Description Status
ID
1. TC_1 Check the syntax of java code Pass
2. TC_2 Check the variable declaration Pass
3. TC_3 Check the syntax of if-else statement Pass
4. TC_4 Check the looping condition Pass
5. TC_5 Check the braces Pass
6. TC_6 Verify the output Pass
Practical No 7
Exercise Q.1
Practical No 7
Exercise Q.3
The purpose of this document is to create an application test plan for Mobile messenger. The
presented study test plan evaluates the approaches to testing this product. The purpose of
testing this program is to check the correct operation of its functionality, ease of use.
2. Objectives
The test objectives are to verify Functionality of the Mobile messenger, the project should
focus on testing the sending message, edit it, forward it, proper delivery, etc to guarantee all
these operations can work normally in real user environment
3. Scope
All the features of the Mobile Messenger are need to be tested
4. Test Items
5. Features to be tested
All test cases with high priority are closed with the result - pass. The test coverage is checked
and sufficient, where the criterion of sufficiency is not less than 99% of the coverage of
requirements by tests. The test report was compiled and approved by the team lead and
customer
8. Environmental Requirements
Android mobile
9. Staffing and training needs
To perform the tasks, you need to have the following knowledge and skills:
• Android mobile
• Test tool: develop a test tool which can auto generate the test result to the predefined
form and automated test execution
15. Approvals
• Team Lead
• Test engineer 1
• Test engineer 2
• Test engineer 3
5. Features to be tested
All test cases with high priority are closed with the result - pass. The test coverage is checked
and sufficient, where the criterion of sufficiency is not less than 99% of the coverage of
requirements by tests. The test report was compiled and approved by the team lead and
customer
8. Environmental Requirements
Practical No 8
Exercise Q.3
Testing the application will occur on the following operating systems: android phone or
browsers web
9. Staffing and training needs
To perform the tasks, you need to have the following knowledge and skills:
15. Approvals
• Team Lead
• Test engineer 1
• Test engineer 2
Practical No 8
Exercise Q.3
• Test engineer 3
10. TC_10 For online method check the essential info link bank / Pass
card id, password
11. TC_11 Verify whether the address is correct not imaginary Pass
The purpose of this document is to create an application test plan for Windows PC Notepad.
The presented study test plan evaluates the approaches to testing this product. The purpose of
testing this program is to check the correct operation of its functionality, ease of use
2. Objectives
The test objectives are to verify Functionality of the Notepad application, the project should
focus on testing the creating a document, working different types of input operations on it,
editing text, saving file, etc to guarantee all these operations can work normally in real user
environment
3. Scope
All the features of the Notepad are need to be tested
4. Test Items
5. Features to be tested
• Running a notepad
• Create a document
• Opening an existing document
• Save the document
• Data input
• Editing text
• Change font and word wrap
• Finding and replacing text
• Text printing
• Working with the window
• Page settings and headers and footers
• Hotkeys
• Date and time
• Closing the Notepad
All test cases with high priority are closed with the result - pass. The test coverage is checked
and sufficient, where the criterion of sufficiency is not less than 99% of the coverage of
requirements by tests. The test report was compiled and approved by the team lead and
customer
8. Environmental Requirements
Testing the application will occur on the following operating systems: Windows 7 /8/10;
9. Staffing and training needs
To perform the tasks, you need to have the following knowledge and skills:
15. Approvals
• Team Lead
• Test engineer 1
• Test engineer 2
• Test engineer 3
7. TC_7 Verify that the user can save the text in a file. Pass
8. TC_8 Verify that the user can open any exiting file in Pass
notepad.
9. TC_9 Verify that file formats not permitted by notepad are Pass
not loaded and don’t corrupt the application.
10. TC_10 Verify that the user can append text to any file and Pass
again save the file.
11. TC_11 Verify that users can select, copy, and paste the text. Pass
12. TC_12 Verify that users can select, cut, and paste the text. Pass
13. TC_13 Verify that the user can select and delete a text. Pass
14. TC_14 Verify that the user can delete a text using backspace Pass
and delete buttons.
15. TC_15 Verify that the user can navigate through the text in a Pass
file using the arrow keys.
16. TC_16 Verify that the user can navigate through the text in a Pass
file using the mouse point
17. TC_17 Verify that the user can edit and delete data in Pass
between the text file.
18. TC_18 Verify that the user can undo any latest change done Pass
in the file.
19. TC_19 Verify that the user can redo any change undone by Pass
undo option.
20. TC_20 Verify that the user can search for single or multiple Pass
characters and words through the file.
Practical No 9
Exercise Q.2
The purpose of this document is to create an application test plan for Windows PC Notepad.
The presented study test plan evaluates the approaches to testing this product. The purpose of
testing this program is to check the correct operation of its functionality, ease of use
2. Objectives
The test objectives are to verify Functionality of the Notepad application, the project should
focus on testing the creating a document, working different types of input operations on it,
editing text, saving file, etc to guarantee all these operations can work normally in real user
environment
3. Scope
All the features of the Notepad are need to be tested
4. Test Items
• Create a document
• Working with Page Setup option
• Printing
5. Features to be tested
• Page Setup option
All test cases with high priority are closed with the result - pass. The test coverage is checked
and sufficient, where the criterion of sufficiency is not less than 99% of the coverage of
requirements by tests. The test report was compiled and approved by the team lead and
customer
8. Environmental Requirements
Testing the application will occur on the following operating systems: Windows 7 /8/10;
9. Staffing and training needs
To perform the tasks, you need to have the following knowledge and skills:
15. Approvals
• Team Lead
• Test engineer 1
• Test engineer 2
• Test engineer 3
4. TC_4 Verify the alignment and size of the Page Setup Pass
window
5. TC_5 Verify the paper size and source options are easy to Pass
use for user
6. TC_6 Verify user is able to set orientation for the document Pass
7. TC_7 Verify user is able to set top, left, right, bottom Pass
margins for the document
8. TC_8 Verify user is able to set Header for the document Pass
9. TC_9 Verify user is able to set Footer for the document Pass
10. TC_10 Verify that the preview is as per the user setup Pass
The purpose of this document is to create an application test plan for Windows PC Notepad.
The presented study test plan evaluates the approaches to testing this product. The purpose of
testing this program is to check the correct operation of its functionality, ease of use
2. Objectives
The test objectives are to verify Functionality of the Notepad application, the project should
focus on testing the creating a document, working different types of input operations on it,
editing text, saving file, etc to guarantee all these operations can work normally in real user
environment
3. Scope
All the features of the Notepad are need to be tested
4. Test Items
• Create a document
• Working with Word Wrap option
• Printing
5. Features to be tested
• Word Wrap option
All test cases with high priority are closed with the result - pass. The test coverage is checked
and sufficient, where the criterion of sufficiency is not less than 99% of the coverage of
requirements by tests. The test report was compiled and approved by the team lead and
customer
8. Environmental Requirements
Testing the application will occur on the following operating systems: Windows 7 /8/10;
9. Staffing and training needs
To perform the tasks, you need to have the following knowledge and skills:
15. Approvals
• Team Lead
• Test engineer 1
• Test engineer 2
• Test engineer 3
4. TC_4 Verify that when Word Wrap option is enabled then Pass
the input data is wrapped
5. TC_5 Verify that when Word Wrap option is not enabled Pass
then the input data is unwrapped
Pm
Hm
ractical No 10
Defect ID D1
Severity High
Priority High
Status Open
Defect ID D1
Severity High
Priority High
Status Open
Defect ID D1
Severity High
Priority High
Status Open
Severity High
Priority High
Status Open
Reported by /Reported on
Exercise Q.1
Use ATM machine system simulator with the help of following website. Perform at given
task and generate test case. Prepare defect report for ATM machine system.
• Task
1. Enter pin number of 4 digits.
2. Select amount to be withdrawn.
3. In other functions, check for balance on screen
4. In other functions, print mini statement
5. Verify functionality of change pin number.
6. Verify withdrawal of amount excess of 5000
• http://www.mote.gov.qa/en/ditoolkit/migrant-workers/cash-machine-simulator-atm
Ans:
Test Case:
Sr. Test_Case_ID Test_Case_Description Status
No
1. TC_1 Verifying the pin credentials Pass
2. TC_2 Verify withdrawal process Pass
3. TC_3 Check balance on the screen Pass
4. TC_4 Check printing process of mini statement Fail
5. TC_5 Verify functionality of change pin number Pass
6. TC_6 Verify withdrawal of amount excess of 5000 Pass
Defect Report:
Defect ID D1
Defect Name Print Error
Project Name Automated Teller Machine
Module/Sub-module Name ATM Cashpoint
Phase Introduced Testing phase
Phase Found Black box testing
Defect Type Functional defect
Severity High
Priority High
Summary Printing defect
Description Printed data on a mini statement is incorrect
Status Open
Reported by /Reported on By Dhiraj Chaudhari, on 11-10-22
Assigned to By Dhiraj Chaudhari
Practical No 11
Exercise Q.2
Generate online ATM machine system with the help of following website. Perform at least 3
tests for the same. Prepare defect report for library management system.
• Task
1. Enter pin number more than 4 digits
2. Select amount to be withdraw in withdrawal enter amount as 21$.
3. Validate the functionality of fund transfer
4. Validate the functionality of print receipt
• https://oclf.org/atm/ATM.html
Ans:
Test case for ATM machine system:
Sr. Test_Case_ID Test_Case_Description Status
No
Defect ID D1
Severity Medium
Priority Medium
Exercise Q.1
Use Login system simulator with the help of following website. Perform at given task and
generate test case. Prepare defect report for Login system.
• Task
1. Enter invalid user name.
2. Enter invalid password
3. Enter password with only 3 characters
4. Enter user name as “invitado” and password as “hgm2015”
• https://codepen.io/opensoorce/pen/KQmvdL/
Ans:
Test case:
Sr. No. Test Test Case Input Output Status
Case ID Scenario
1. TC_1 Verify the Login Enter invalid User is informed Pass
Page user name to enter valid user
components like name
2. TC_2 username, Enter invalid User is informed Pass
password fields password to enter valid
password
3. TC_3 Enter password Password Fail
with only 3 accepted
characters
4. TC_4 Enter user name Logged in Pass
as “invitado” successfully
and password as
“hgm2015”
Defect Report
Defect ID D1
Defect Name Short and weak password defect
Project Name My Login Form
Module/Sub-module Name Login Page
Phase Introduced Testing phase
Phase Found Black box testing
Defect Type Functional defect
Severity Medium
Priority Medium
Summary Not working as intended at password field
Description System is accepting the short password
instead of long and strong password
Status Open
Reported by /Reported on By Dhiraj Chaudhari, on 05-10-22
Assigned to Dhiraj Chaudhari
Practical No 12
Exercise Q.2
Consider any web base system which provides login procedure. Perform following tests for
same. Prepare defect report for Login System.
• Task
1. Verify forgot password link
2. Test user name as “STEPR” and password “STEPR”
3. Verify captcha for given system
Ans:
Defect ID D1
Defect Name Invalid login defect
Project Name Login Form
Module/Sub-module Name Login Page
Phase Introduced Testing phase
Phase Found Black box testing
Defect Type Functional defect
Severity Medium
Priority High
Summary Invalid user name and password
Description System is accepting the same username and
password without giving error message
Status Open
Reported by /Reported on By Dhiraj Chaudhari, on 05-10-22
Assigned to Dhiraj Chaudhari