GUI Related Reusable Test Cases TEST CASE FOR GUI APPLICATION PREPARED BY DATE Test No. For Windows 1 2
3
4 5 6 7 8
9
For Text Boxes 4 5
6
7 8
For Combo Boxes 9 10
11
12 13 14
For List Boxes 15 16 17
18 19
For Labels 21 22
23 24 25 26
For Radio Buttons 27 28
29
For Check Boxes 30
31
32
For Command Buttons 33 34 35 36 37
38 39 For Picture Buttons 38 39
For Date Picker 40 41 42 43
For Message Boxes 44 45
For Dialog Boxes 48 49 50 51
52
53
Field Alignments 52 53 54
For Tab order settings 54 55 56
57
For Status Bar 58 59 60
For Progress Bar or Progress Indicator 61 62 63
64
For Sliders/Track bar 65 66
67
68 69
70
71
72
73
GUI Related Reusable Test Cases
Test Case Check for the properties of any window Check for the addressable nature of the data contained in the window
Check for the closing action of the window by all means like clicking on X button on upper right corner, pressing ALT + F4, using menu close item, using Control Box etc Click on minimize button in the window Click on Maximize button in the window Click on Resize button in the window Click on minimize and maximize buttons and see that repainting of the window happens properly Check whether all the pull down menus, toolbars, scrollbars, dialog boxes, and buttons, icons and other controls available and properly displayed Have multiple windows and check for the names on the individual window
Check the height of the text boxes Check the width of the text boxes
Observe the font and size of the values of the text boxes
Observe the alignment of the text boxes Observe the non editable text boxes
Check the height of the combo boxes Check the width of the combo boxes
Observe the font and size of the values of the combo boxes
Observe the non editable combo boxes Observe the alignment of the combo boxes Observe the elements in the combo boxes
Check the height of the List boxes Check the width of the List boxes Observe the font and size of the values of the List boxes
Observe the non editable list boxes Observe the alignment of the list boxes
Observe the height of the labels Check the label description
Observe the positioning of labels Observe the font and size of the labels Check whether the label is enabled or disabled Observe the alignment of the labels
Check for selecting a radio button Check for the Radio button label description
Check for the alignment of the Radio Buttons
Check for selecting a check box
Check for the Check Box label description
Check for the alignment of the Check Boxes
Observe the description of the command buttons Test for the short keys for command buttons Check for the height and width of the command buttons Check for the alignment of command buttons Test for the accessibility of the command buttons
Test for the accessibility of the command buttons using mouse click Test for the accessibility of the command buttons using short keys
Observe the picture provided for the picture buttons Test for the tool tips for picture buttons
Click on the Date Picker icon Click on Today button Click on Right arrow Click on Left arrow
Observe the title of the window Check for the window close button
Observe the title of the Dialog Box Check for the dialog box close button Check for the window maximize or minimize buttons Observe the message in the dialog box window
Check for the short cut key for the command buttons
Check the command button functionality present in the message box
Check for the alignment of numeric fields Check for the alignment of character fields Check for the alignment of the controls
Test for the tab order Observe for the default focus in the screen Test for the shift + tab function
Click tab on the last field
Check for the status in the status bar Check for the position of the status bar Check for the message displayed
Check for the incremental steps as the process progresses in the control Check that once the process is over, control is not present Check for the percentage of the completion of the process
Check for any static information since its not interactive
Check for the range and indicator on the control Try to set or adjust the value on a continuous range using the bar
Drag the control using mouse
Drag the control using keys Check for the tab functionality, access key for the text in the label
Check for the length, height of the slide indicator and slide bar component
Check for the increments of the slider and tick mark on the control
Check for the label position of the control
Check for the Label style of the control
Required Output 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
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 The values should be displayed in consistent font and size across the form The textbox should be properly aligned both horizontally and vertically The textbox should be disabled when it is not editable
The height of the combo box should be consistent across be theset form The width should to the maximum length of characters
The values should be displayed in consistent font and size across the form The combo box should be disabled when it is not editable The combo box should be properly aligned both horizontally and vertically The values in the combo box should be sorted and verification should be done to ensure that all required items are present
The height of the List box should be consistent across be theset form The width should to the maximum length of characters The values in the list box should be displayed in consistent font and size across the form The list box should be disabled when it is not editable The list box should be properly aligned both horizontally and vertically
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 The Labels should be having consistent font and size across the form The label should be disabled The labels should be aligned both horizontally and vertically
The user should be able to select only one item the list of radio buttons The labelindescription should be selfeither with mouse or byshould pressing barcase on explanatory and be space in proper the field The radio button should be aligned both vertically and horizontally
Able to toggle (check/uncheck) the check boxes either with the help of Mouse or by pressing space bar on the field
The label description should be self explanatory and should be in proper case The check box should be aligned both vertically and horizontally
It should be short, meaningful and should be in proper They should case have short keys and they should be unique The height and width should be uniform The command buttons should be aligned properly 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
They should be appropriate and meaningful Meaningful tool tips should be provided for picture buttons
On clicking on date picker, the Calendar for the current cursor on date On clicking on month Today with button, current current be date should be displayed should picked Clicking on Right arrow the next month should be displayed Clicking on Left arrow the previous month should be displayed
The title for the window should be meaningful should beshould in proper The windowand close button be case present
The title for the Dialog box should be meaningful andclose should be inshould proper be case The dialog box button present The window minimize or maximize button should not be present The message in the window should be precise and the first character should be capitalized Any command buttons should have short cut keys
Command buttons should function either clicking on it or with use of short cut keys or positioning the cursor on the command button and pressing Enter key
All the numeric fields should be right aligned by default. If decimals are used, All character fields should be left aligned decimal point should be displayed and by default generally two digitsbe after decimal point All controls should properly aligned. should be displayed Both vertically as well as horizontally
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 On pressing shift + tab the cursor focus should be moving in the reverse order On pressing tab on the last field, cursor should be positioning on the first field
It should display the status of the activities being performed Normally displayed on top of screen or at the bottom The message should be changing as the status changes
It should displays the progress of process in incremental steps as defined. The Once the process is over, the progress control should provide more visual bar should disappear feedback to the userin percentage of Normally displayed completion. It displays information, it is typically not interactive There should be some static text or other information to help communicate the purpose
It should consists of bar that defines the extentshould or range thetoadjustment and the an User be of able set or adjust indicatoronthat show the current values a continuous range, value such for as the control volume or brightness User should able to move or drag slide by clicking through mouse
User should able to move or drag slide by arrow keys There should be support for the tab key and access key for the static text field of the label The length, height of the slide indicator and the slide bar component, should be unique across the form. There should be constant increment of the slider, control should have tick marks on it Label should be positioned either to the left of the slider or above it and aligned with the left edge of the slider Use sentence-style capitalization for the slider label