Here are some of the sample test cases for Buttons.
Test cases/scenarios For Radio Buttons
Check for selecting a radio button
Check for only one radio button is getting selected at a time using mouse cursor or Tab keyboard key selection
Check for the Radio button label description
Check for size and color of button as per CSS size and CSS style
Check for the alignment of the Radio Buttons
If radio button is a necessary/mandatory field, check if not selecting it raises an error message
If any event is associated with radio button, check if that's happening correctly.
1. Check for default radio button selection. 2. Check if we cannot select more than one radio buttons. 3. Verify appropriate label for each radio button. 4. Check Tab sequence should select radio button control in series. 5. Check mouse click should change property of radio button from checked to unchecked or vice versa. 6. Check space bar key press from keyboard should change property of radio button from checked to unchecked or vice versa. 7. Verify appropriate events associated with radio button property change. 8. Check disabled radio button should not be editable. 9. Check Enter key press from keyboard should change property of radio button from checked to unchecked or vice versa. 10. Check alignment should be proper with other controls in window. 11. Control should be selected and checked or unchecked event should takes place when ALT + underlined character pressed from keyboard of the appropriate radio button. 12. If a set of radio buttons represent a fixed set of values such as A, B and C then what happens if a blank value is retrieved from the database? (In some situations rows can be created on the database by other functions which are not screen based and thus the required initial values can be incorrect.) Limitations of Sanity Testing
Test cases/scenarios for check box
Check for selection of check box/s as selected by mouse pointer or keyboard selection
Check for the Check Box label description
Check for the alignment of the Check Boxes as per CSS sytle
Check for height, length and width of each box as per CSS
Check user can check multiple boxes at a time
Check the checked box is ticked
Check the unchecked box is unticked
Check if the checkbox selection enables the specific element
Verify if the checkboxes are placed in a order.
Check if the validation controls enabled or triggered if no user action is done on the choices.
1. Check enable and disabled property of the control 2. Check default value either checked or unchecked. 3. Verify appropriate label for each checkbox. 4. Check Tab sequence should select checkbox control in series. 5. Check mouse click should change property of checkbox from checked to unchecked or vice versa. 6. Check space bar key press from keyboard should change property of checkbox from checked to unchecked or vice versa. 7. Verify appropriate events associated with checkbox property change. 8. Check disabled checkbox should not be editable. 9. Check Enter key press from keyboard should change property of checkbox from checked to unchecked or vice versa. 10. Check alignment should be proper with other controls in window. 11. Control should be selected and checked or unchecked event should takes place when ALT+underlined character pressed from keyboard of the appropriate checkbox.
Test cases/scenarios For command buttons (Add/edit/delete)
Check the font size
Check the font color
Check the spelling mistake
Check the button size
Check whether expected result is displayed on click
Check when u have click the add button, record should be added.
Check when u have click the delete button, record should be deleted.
Check the value get modified when click on edit/update button
1. Check Enable or disable property of the control. 2. Verify Tab sequence can select control in respective manner. 3. Check change image after clicking event encounter. 4. Check alignment with other controls on the window. 5. Check appropriate TEXT associated with the control. 6. Check event occur after click of the control. 7. Check appropriate naming convention used for label of the control. 8. Check label of the control should not be editable. 9. Check the events with single click, Double click and more than double click of the control. 10. Check control should be displayed as “Highlighted” with hovering of mouse cursor on the control. 11. Check if appropriate information should display as per requirement for hovering of mouse cursor. 12. “Highlighted” button control should accept click event with keyboard “Enter” key. 13. Button should be activated with ALT+ character underlined in label of that button. 14. SPACE key from keyboard should activate button which is highlighted. 15. One button on screen should be by default with thick border and should activate when enter key pressed from keyboard at any time. 16. “Cancel” button should be activated when Esc key pressed from keyboard. 17. Make sure there isn’t duplication of underlined character of different buttons. 18. If pressing the Command button results in uncorrectable data e.g. closing an action step, there should be a message phrased positively with Yes/No answers where yes results in the completion of the action. 19. If Command Button leads to another Screen, and if the user can enter or change details on the other screen then the Text on the button should be followed by three dots. (Click…) 20. There should be a default button specified on the screen. 21. Default button should work correctly. 22. Verify that command buttons are all of similar size and shape, and same font & font
Test cases/scenarios For Image button 1. Check image quality should not be blurring. 2. Verify if zoom in and zoom out option available. 3. Verify same image should get displayed either by scan or by import. 4. Verify rotation of the image.
Create your own unique website with customizable templates.