Sei sulla pagina 1di 14

TEST CASES FOR

THE SOFTWARE
FOR MATHGAME
ASSUMPTION : IT IS
ASSUMED THAT THE
NAVIGATION IS
WITH THE HELP OF
'TAB' BUTTON.
DATE OF
EXECUTI
ON
TEST NO. Object
under test
OBJECTIVE PRE-REQUISITES STEPS
1 Entire
screen
To check the status of
objects on the screen
when the software is
invoked.
The icon for the
software should be
present on the desk-
top of the computer
1. Click on the icon of
the software
2. Observe the status of
objects on the screen
2 DROP
DOWN LIST
To check whether all 8
values are displayed in
drop down list.
Software for
mathgame is invoked
1. Click on the drop
down symbol.
3 DROP
DOWN LIST
To check whether
software shows three
options for math
problem first from the
drop down list.One of
them should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select first question
3. Press Tab
SAMPLE TESTS FOR UNIT LEVEL TESTING
TEST CASE FOR DEFAULT STATUS
TEST CASE FOR CHECKING THE VALUES IN DROP DOWN LIST
DROP DOWN LIST
Testing for each value in drop down list
4 DROP
DOWN LIST
To check whether
software shows three
options for second
math problem from the
drop down list.One of
them should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select second option
3. Press Tab
5 DROP
DOWN LIST
To check whether
software shows three
options for third math
problem from the drop
down list.One of them
should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select third option
3. Press Tab
6 DROP
DOWN LIST
To check whether
software shows three
options for fourth math
problem from the drop
down list.One of them
should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select fourth option
3. Press Tab
7 DROP
DOWN LIST
To check whether
software shows three
options for fifth math
problem from the drop
down list.One of them
should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select fifth option
3. Press Tab
8 DROP
DOWN LIST
To check whether
software shows three
options for sixth math
problem from the drop
down list.One of them
should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select sixth option
3. Press Tab
9 DROP
DOWN LIST
To check whether
software shows three
options for seventh
math problem from the
drop down list.One of
them should be right
answer,two of them
should be wrong.
Software for
mathgame is invoked
1. Click on the drop
down list
2. Select seventh option
3. Press Tab
Testing for values beyond boundary
TEXT BOX 2
12 Text Box 2 To check whether
software allows 0
(value just beyond
lower boundary) to be
entered into Text Box
2
1. Software for
addition of two
numbers is invoked
2. Valid value is filled
in Text Box 1.
3. Cursor is blinking in
Text Box 2.
1. Click inside Text Box
2 .
2. Type 0
3. Press Tab
13 Text Box 2 To check whether
software allows 12
(value just beyond
upper boundary) to
be entered into Text
Box2
1. Software for
addition of two
numbers is invoked
2. Valid value is filled
in Text Box 1.
3. Cursor is blinking in
Text Box 2.
1. Click inside Text Box
2 .
2. Type 12
3. Press Tab
14 Text Box 1 To check whether
software allows integer
values between 1 to 11
to be entered into Text
Box 1
Software for addition
of two numbers is
invoked
1. Click inside Text Box
1 .
2. Type any integer
between 1 to 11 (both
inclusive)
3. Press Tab
15 Text Box 2 To check whether
software allows integer
values between 1 to 11
to be entered into Text
Box 2
1. Software for
addition of two
numbers is invoked
2. Valid value is filled
in Text Box 1
1. Click inside Text Box
2 .
2. Type any integer
between 1 to 11 (both
inclusive)
3. Press Tab
Test cases for 'Calculate Sum' Button
Testing for valid values
16 ''Calculate
Sum'' button
To check the
behaviour of the
software when the
'Calculate Sum' button
is clicked.
1. Software for
addition of two
numbers is invoked
2. Valid value is filled
in Text Box 1
3. Valid value is filled
in Text Box 2
4. Cursor is on the
'Calculate Sum'
button.
1. Click on the 'Calculate
Sum' button
EXPECTED RESULT ACTUAL RESULT SUCCESS /
FAILED
SEVERITY
OF DEFECT
PRIORITY
FOR
DEFECT
CORRECTI
ON
COMMENTS
1. Drop Down list
should be displayed
with the message
"choose a problem".
2. All 3 labels should
be empty.
Drop Down list shows
"choose a problem"
message.All 3 labels
are empty.
Pass Medium
1. The software
should display 8
values in the drop
down list. 2.The
control should remain
in drop down list.
Software displays only
7 values in drop down
list.Control is
remaining in Text Box
1.
Failed High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
3.Only one option
should be right.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display three
lables for options.
2. The control should
remain in first option.
3.Only one option
should be right.
Software shows three
options.Control
remains in first option.
Pass High
1. The software
should display error
message.
2. 0 should not be
accepted in Text Box
2.
3. The control should
remain in Text Box 2.
Software allows 0 to
be entered into Text
Box 2.It is not showing
any error
message.Control is
not remaining in Text
Box 2.
Failed High
1. The software
should display error
message.
2. 12 should not be
accepted in Text Box
2.
3. The control should
remain in Text Box 2.
Software allows 12 to
be entered into Text
Box 2.It is showing an
error message.Control
remains in Text Box 2.
Failed High
1. The software
should accept the
value.
2. The Text Box 2
should become
enabled
3. Control should shift
to Text Box 2
Software accepts the
value.Text Box 2 is
enabled.Control shifts
to Text Box 2.
Pass High
1. The software
should accept the
value.
2. The 'Calculate
Sum' button should
become enabled.
3. Control should shift
to the 'Calculate Sum'
button.
Software accepts the
value.'Calculate Sum'
button is
enabled.Control shifts
to 'Calculate Sum'
button.
Pass High
Ideally, to test the
behaviour for the entire
range of valid values, 11
separate test cases
should be written for
valuse between 1 to 11
(inclusive) and tested
separately
Ideally, to test the
behaviour for the entire
range of valid values, 11
separate test cases
should be written for
valuse between 1 to 11
(inclusive) and tested
separately
1. The correct sum of
the integers entered
into Text Box 1 and
Text Box 2 should be
displayed in Text Box
3
2. Text Box 3 should
remain disabled.
3. The 'Calculate
Sum' button should
remain enabled.
When 11 is entered in
Text Box 1 and when
any value is entered in
Text Box 2,Correct
sum is not
displayed.Text Box 3
remaines
disabled.The
'Calculate Sum' button
should remain
enabled.
Failed High
8 Text Box 2 To check
whether
software
allows
alphabets
to be
entered
into Text
Box 2
1.
Software
for
addition of
two
numbers
is invoked
2. Valid
value is
filled in
Text Box
1.
3. Cursor
is blinking
in Text
Box 2.
1. Click
inside
Text Box 2
.
2. Type
any
alphabet
3. Press
Tab
9 Text Box 2 To check
whether
software
allows
special
characters
to be
entered
into Text
Box 2
1.
Software
for
addition of
two
numbers
is invoked
2. Valid
value is
filled in
Text Box
1.
3. Cursor
is blinking
in Text
Box 2.
1. Click
inside
Text Box 2
.
2. Type
any
special
character
3. Press
Tab
Ideally, to test the
behaviour for the
10 Text Box 2 To check
whether
software
allows
spaces to
be entered
into Text
Box 2
1.
Software
for
addition of
two
numbers
is invoked
2. Valid
value is
filled in
Text Box
1.
3. Cursor
is blinking
in Text
Box 2.
1. Click
inside
Text Box 2
.
2. Type
spaces
3. Press
Tab
11 Text Box 2 To check
whether
software
allows null
values to
be entered
into Text
Box 2
1.
Software
for
addition of
two
numbers
is invoked
2. Valid
value is
filled in
Text Box
1.
3. Cursor
is blinking
in Text
Box 2.
1. Click
inside
Text Box 2
.
2. Do not
type
anything
3. Press
Tab
1. The
software
should
display
error
message.
2. The
alphabets
should not
be
accepted
in Text
Box 2.
3. The
control
should
remain in
Text Box
2.
Software
allows
alphabets
to be
entered
into Text
Box 2.It is
not
showing
any error
message.
Control is
not
remaining
in Text
Box 2.
Failed High
1. The
software
should
display
error
message.
2. The
special
characters
should not
be
accepted
in Text
Box 2.
3. The
control
should
remain in
Text Box
2.
Software
allows
special
characters
to be
entered
into Text
Box 2.It is
not
showing
any error
message.
Control is
not
remaining
in Text
Box 2.
Failed High
1. The
software
should
display
error
message.
2. Spaces
should not
be
accepted
in Text
Box 1.
3. The
control
should
remain in
Text Box
2.
Software
allows
spaces to
be entered
into Text
Box 2.It is
not
showing
any error
message.
Control is
not
remaining
in Text
Box 2.
Failed High
1. The
software
should
display
error
message.
2. Null
values
should not
be
accepted
in Text
Box 1.
3. The
control
should
remain in
Text Box
2.
Software
allows null
values to
be entered
into Text
Box 2.It is
not
showing
any error
message.
Control is
not
remaining
in Text
Box 2.
Failed High

Potrebbero piacerti anche