Sie sind auf Seite 1von 4

GUI Related Reusable Test Cases

TEST CASE FOR GUI APPLICATION


PREPARED BY
DATE
Test No.

Test Case

Required Output

For Windows
1 Check for the properties of any window
2 Check for the addressable nature of the
data contained in the window
3 Check for the closing action of the
window by all means like clicking on X
button on upper right corner, pressing
4 Click on minimize button in the window
ALT + F4, using menu close item, using
5 Click
onBox
Maximize
Control
etc button in the window
6 Click on Resize button in the window
7 Click on minimize and maximize buttons
and see that repainting of the window
happens properly
8 Check whether all the pull down menus,
toolbars, scrollbars, dialog boxes, and
buttons, icons and other controls
9 Have multiple windows and check for
available and properly displayed
the names on the individual window

The window can be moved, resized,


minimized,
and scrolled
both
All
the data maximized
contained within
the window
vertically
andaddressable
horizontally with a mouse,
are properly
function keys, directional arrows and
keyboard
The window should close properly
Window should be minimized
Window should be maximized
Window should be resized
Window should properly regenerate
when it is overwritten and then recalled
All the controls should be properly
displayed on the window
Names on all the windows should be
properly displayed

For Text Boxes


4 Check the height of the text boxes
5 Check the width of the text boxes

The height of the text box should be


consistent
across
the form
The width is
accepting
the maximum
length of allowable characters
(preferably enter all W to check for
visibility(Capitals)). When complete text
cannot be displayed, scrolling is allowed
to view the full contents
6 Observe the font and size of the values The values should be displayed in
of the text boxes
consistent font and size across the form
7 Observe the alignment of the text boxes The textbox should be properly aligned
both horizontally and vertically
8 Observe the non editable text boxes

The textbox should be disabled when it


is not editable

9 Check the height of the combo boxes


10 Check the width of the combo boxes

The height of the combo box should be


consistent
across be
theset
form
The
width should
to the
maximum length of characters

For Combo Boxes

11 Observe the font and size of the values The values should be displayed in
of the combo boxes
consistent font and size across the form
12 Observe the non editable combo boxes The combo box should be disabled
when it is not editable
13 Observe the alignment of the combo
boxes

The combo box should be properly


aligned both horizontally and vertically

14 Observe the elements in the combo


boxes

The values in the combo box should be


sorted and verification should be done
to ensure that all required items are
present

For List Boxes


15 Check the height of the List boxes
16 Check the width of the List boxes

The height of the List box should be


consistent
across be
theset
form
The width should
to the
maximum length of characters

17 Observe the font and size of the values The values in the list box should be
of the List boxes
displayed in consistent font and size
across the form
18 Observe the non editable list boxes
The list box should be disabled when it
is not editable
19 Observe the alignment of the list boxes

The list box should be properly aligned


both horizontally and vertically

21 Observe the height of the labels


22 Check the label description

The height of the Labels should be


consistent
across the form
The Label description
should be
meaningful, self explanatory and in
proper case
The Labels should appear either on top
or left of text/combo/list box

For Labels

23 Observe the positioning of labels


24 Observe the font and size of the labels

The Labels should be having consistent


font and size across the form

25 Check whether the label is enabled or


26 disabled
Observe the alignment of the labels

The label should be disabled


The labels should be aligned both
horizontally and vertically

27 Check for selecting a radio button


28 Check for the Radio button label
description

The user should be able to select only


one
the list of radio
buttons
The item
labelindescription
should
be self
either
with mouse
or by pressing
space
explanatory
and should
be in proper
bar on the field
case
The radio button should be aligned both
vertically and horizontally

For Radio Buttons

29 Check for the alignment of the Radio


Buttons
For Check Boxes
30 Check for selecting a check box
31 Check for the Check Box label
description
32 Check for the alignment of the Check
Boxes

Able to toggle (check/uncheck) the


check
boxes
either with
the help
of
The label
description
should
be self
Mouse
or byand
pressing
space
on the
explanatory
should
be inbar
proper
field
case
The check box should be aligned both
vertically and horizontally

33 Observe the description of the


34 command
Test for thebuttons
short keys for command
buttons

It should be short, meaningful and


should
be in proper
casekeys and they
They should
have short
should be unique

35 Check for the height and width of the


command
buttons
36 Check
for the
alignment of command
buttons

The height and width should be uniform


The command buttons should be
aligned properly

37 Test for the accessibility of the


command buttons

They should be invoked by either


mouse click or short keys or by placing
cursor on them and pressing the Enter
key
They should be invoked by mouse click
They should be invoked by short keys

For Command Buttons

38 Test for the accessibility of the


command
using of
mouse
39 Test
for thebuttons
accessibility
the click
command buttons using short keys
For Picture Buttons
38 Observe the picture provided for the
picture buttons

They should be appropriate and


meaningful

39 Test for the tool tips for picture buttons

Meaningful tool tips should be provided


for picture buttons

40 Click on the Date Picker icon


41 Click on Today button

On clicking on date picker, the Calendar


for
current
with cursor
on
On the
clicking
on month
Today button,
current
current
date be
should
be displayed
date
should
picked

42 Click on Right arrow

Clicking on Right arrow the next month


should be displayed

43 Click on Left arrow

Clicking on Left arrow the previous


month should be displayed

44 Observe the title of the window


45 Check for the window close button

The title for the window should be


meaningful
should
beshould
in proper
The windowand
close
button
be
case
present

48 Observe the title of the Dialog Box


49 Check for the dialog box close button
50 Check for the window maximize or
minimize buttons

The title for the Dialog box should be


meaningful
andclose
should
be inshould
proper be
The
dialog box
button
case
present
The
window minimize or maximize
button should not be present

51 Observe the message in the dialog box


window

The message in the window should be


precise and the first character should be
capitalized
Any command buttons should have
short cut keys

For Date Picker

For Message Boxes

For Dialog Boxes

52 Check for the short cut key for the


command buttons

53 Check the command button functionality Command buttons should function


present in the message box
either clicking on it or with use of short
cut keys or positioning the cursor on the
command button and pressing Enter
key
Field Alignments
52 Check for the alignment of numeric
53 fields
Check for the alignment of character
fields
54 Check for the alignment of the controls

All the numeric fields should be right


aligned
by default.
If decimals
are
All character
fields should
be left
used, decimal
point should be displayed
aligned
by default
and generally two digits after decimal
All
controls
be properly aligned.
point
shouldshould
be displayed
Both vertically as well as horizontally

For Tab order settings


54 Test for the tab order
55 Observe for the default focus in the
screen

The tab order should be in the order of


the
arranged,
from left
to
Firstfields
enabled
field oneither
the screen
should
right
or topthe
to bottom
be
getting
focus or logical order

56 Test for the shift + tab function

On pressing shift + tab the cursor focus


should be moving in the reverse order

57 Click tab on the last field

On pressing tab on the last field, cursor


should be positioning on the first field

58 Check for the status in the status bar


59 Check for the position of the status bar

It should display the status of the


activities
performed
Normally being
displayed
on top of screen or
at the bottom

60 Check for the message displayed

The message should be changing as


the status changes

61 Check for the incremental steps as the


process progresses in the control

It should displays the progress of


process in incremental steps as
defined. The control should provide
more visual feedback to the user

For Status Bar

For Progress Bar or Progress


Indicator

62 Check that once the process is over,


control is not present

Once the process is over, the progress


bar should disappear

63 Check for the percentage of the


completion of the process

Normally displayed in percentage of


completion. It displays information, it is
typically not interactive

64 Check for any static information since


its not interactive

There should be some static text or


other information to help communicate
the purpose

65 Check for the range and indicator on


66 the
Try control
to set or adjust the value on a
continuous range using the bar

It should consists of bar that defines the


extent
or range
of the
adjustment
User should
be able
to set
or adjust and
the
an indicator
show the
current
value
values
on a that
continuous
range,
such
as
for
the control
volume
or brightness

67 Drag the control using mouse

User should able to move or drag slide


by clicking through mouse

68 Drag the control using keys

User should able to move or drag slide


by arrow keys

For Sliders/Track bar

69 Check for the tab functionality, access There should be support for the tab key
key for the text in the label
and access key for the static text field of
the label
70 Check for the length, height of the slide The length, height of the slide indicator
indicator and slide bar component
and the slide bar component, should be
unique across the form.
71 Check for the increments of the slider There should be constant increment of
and tick mark on the control
the slider, control should have tick
marks on it
72 Check for the label position of the Label should be positioned either to the
control
left of the slider or above it and aligned
with the left edge of the slider
73 Check for the Label style of the control

Use sentence-style capitalization for the


slider label

Das könnte Ihnen auch gefallen