Sei sulla pagina 1di 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 The window can be moved, resized,
2 Check for the addressable nature of the minimized,
All the data maximized and scrolled
contained within both
the window
data contained in the window vertically andaddressable
are properly horizontally with a mouse,
function keys, directional arrows and
keyboard
3 Check for the closing action of the The window should close properly
window by all means like clicking on X
button on upper right corner, pressing
4 Click on minimize button in the window Window should be minimized
ALT + F4, using menu close item, using
5 Click onBox
Control Maximize
etc button in the window Window should be maximized
6 Click on Resize button in the window Window should be resized
7 Click on minimize and maximize buttons Window should properly regenerate
and see that repainting of the window when it is overwritten and then recalled
happens properly
8 Check whether all the pull down menus, All the controls should be properly
toolbars, scrollbars, dialog boxes, and displayed on the window
buttons, icons and other controls
9 Have multiple windows and check for Names on all the windows should be
available and properly displayed
the names on the individual window properly displayed

For Text Boxes


4 Check the height of the text boxes The height of the text box should be
5 Check the width of the text boxes consistent
The across
width is the form
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

For Combo Boxes


9 Check the height of the combo boxes The height of the combo box should be
10 Check the width of the combo boxes consistent across be
The width should theset
form
to the
maximum length of characters
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 The combo box should be properly
boxes aligned both horizontally and vertically
14 Observe the elements in the combo The values in the combo box should be
boxes 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 The height of the List box should be
16 Check the width of the List boxes consistent across be
The width should theset
form
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

For Labels
21 Observe the height of the labels The height of the Labels should be
22 Check the label description consistent across the form
The Label description should be
meaningful, self explanatory and in
proper case
23 Observe the positioning of labels The Labels should appear either on top
or left of text/combo/list box
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 The label should be disabled
26 disabled
Observe the alignment of the labels The labels should be aligned both
horizontally and vertically

For Radio Buttons


27 Check for selecting a radio button The user should be able to select only
28 Check for the Radio button label one
The item
labelindescription
the list of radio
shouldbuttons
be self
description either with mouse
explanatory or by pressing
and should space
be in proper
bar on the field
case
29 Check for the alignment of the Radio The radio button should be aligned both
Buttons vertically and horizontally

For Check Boxes


30 Check for selecting a check box Able to toggle (check/uncheck) the
31 Check for the Check Box label check boxes
The label either with
description the help
should of
be self
description Mouse or byand
explanatory pressing
shouldspace
be inbar on the
proper
field
case
32 Check for the alignment of the Check The check box should be aligned both
Boxes vertically and horizontally

For Command Buttons


33 Observe the description of the It should be short, meaningful and
34 command
Test for thebuttons
short keys for command should be in proper
They should casekeys and they
have short
buttons should be unique
35 Check for the height and width of the The height and width should be uniform
command
36 Check buttons
for the alignment of command The command buttons should be
buttons aligned properly
37 Test for the accessibility of the They should be invoked by either
command buttons mouse click or short keys or by placing
cursor on them and pressing the Enter
key
38 Test for the accessibility of the They should be invoked by mouse click
command
39 Test for thebuttons using of
accessibility mouse
the click They should be invoked by short keys
command buttons using short keys
For Picture Buttons
38 Observe the picture provided for the They should be appropriate and
picture buttons meaningful
39 Test for the tool tips for picture buttons Meaningful tool tips should be provided
for picture buttons

For Date Picker


40 Click on the Date Picker icon On clicking on date picker, the Calendar
41 Click on Today button for
On the current
clicking on month with cursor
Today button, on
current
current
date date be
should should be displayed
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

For Message Boxes


44 Observe the title of the window The title for the window should be
45 Check for the window close button meaningful
The windowand should
close beshould
button in proper
be
case
present
For Dialog Boxes
48 Observe the title of the Dialog Box The title for the Dialog box should be
49 Check for the dialog box close button meaningful
The andclose
dialog box should be inshould
button proper be
case
present
50 Check for the window maximize or The window minimize or maximize
minimize buttons button should not be present
51 Observe the message in the dialog box The message in the window should be
window precise and the first character should be
capitalized
52 Check for the short cut key for the Any command buttons should have
command buttons short cut keys
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 All the numeric fields should be right
53 fields
Check for the alignment of character aligned by default.
All character If decimals
fields should are
be left
fields used, decimal
aligned point should be displayed
by default
and generally two digits after decimal
54 Check for the alignment of the controls All controls
point shouldshould be properly aligned.
be displayed
Both vertically as well as horizontally

For Tab order settings


54 Test for the tab order The tab order should be in the order of
55 Observe for the default focus in the the
Firstfields arranged,
enabled field oneither from left
the screen to
should
screen right
be or topthe
getting to bottom
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

For Status Bar


58 Check for the status in the status bar It should display the status of the
59 Check for the position of the status bar activities
Normally being performed
displayed on top of screen or
at the bottom
60 Check for the message displayed The message should be changing as
the status changes
For Progress Bar or Progress
Indicator
61 Check for the incremental steps as the It should displays the progress of
process progresses in the control process in incremental steps as
defined. The control should provide
more visual feedback to the user
62 Check that once the process is over, Once the process is over, the progress
control is not present bar should disappear
63 Check for the percentage of the Normally displayed in percentage of
completion of the process completion. It displays information, it is
typically not interactive
64 Check for any static information since There should be some static text or
its not interactive other information to help communicate
the purpose

For Sliders/Track bar


65 Check for the range and indicator on It should consists of bar that defines the
66 the
Try control
to set or adjust the value on a extent or range
User should of the
be able adjustment
to set or adjust and
the
continuous range using the bar an indicator
values on a that show the
continuous current
range, value
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
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

Potrebbero piacerti anche