
.
Test Case for Button -How To Write Test Cases for Button?
What Are The Test Cases For Button?
Submit Button :
Some of the Important test cases for submit button are given below.
- Verify whether the button is clickable or not.
- Check that when the user clicks on submit button without entering data in the mandatory field then the error message for the mandatory field shows or not.
- Check whether the page redirects to the expected page or not when the user enters the valid data in all the fields.
- Check the button size /color as per requirement or not.
- Check whether the button name shows as per requirement or not.
Reset Button :
Some of the Important test cases for the reset button are given below.
Some of the Important test cases for the reset button are given below.
- verify that button is clickable or not.
- Check that when the user clicks on the reset button all the entered data in fields get clear or not.
- Check that when there is no data in the field and click on the reset button.
- Check that when the user edits the page and clicks on the reset button.
- Check the button size /color as per requirement or not.
- Check whether the button name showing as per requirement or not.
Some of the Important test cases for the cancel button are given below.
- verify that button is clickable or not.
- Check that when the user clicks on the cancel button the window gets closed or not
- Check the button size /color as per requirement or not.
- Check whether the button name showing as per requirement or not.
Here!!! Important test cases for the toggle button are given ...
- First, check whether the user is able to on/off the toggle button or not.
- Check the toggle button on the user's first view.
- Verify whether the button color getting changed or not when the user is on or off the button.
- Verify whether the dependent element working as expected or not when the user is on or off the toggle button.
- Verify the design of the toggle button is per requirement or not.
- Check the positioning of the toggle button.
- Check the size of the toggle button.
- Check the color of the button. (on/off)
- Check that user able to on/off the toggle button if there are multiple buttons is there.
Here !! The important test cases for the radio button are given...
- Verify that the radio button is selectable through the keyboard "Tab" button.
- Verify whether the the selection of radio button's respective web element (text box, drop-down ..etc) is open or not.
- Verify that the page redirects to an expected page or not then click on submit button by selecting the radio button.
- Verify the alignment of the radio button in all browsers.
- Verify whether the label properly aligns with the radio button or not.
- Verify the selection of the radio button through the "tab" button.
- Verify the multiple selections of radio buttons.
- Verify the functionality of the radio button on a single selection.
- Verify the functionality of the radio button without selection.
- verify the Alert message for the radio button if it is a mandatory field and the user clicks on submit without selecting it.
- Verify that the selection of the radio button gets disabled when the page getting loads.
- Verify the order of the radio buttons.
- Verify that the radio button is properly visible to the user when it is selected.
- Verify the height width and length (CSS) are as per SRS.
- Verify the initial focus of the radio button.
- Verify the Default Selection of the radio button.
- Verify that the radio button is selectable / Unselectable or not by clicking through the mouse.
Here !! The important test cases for the Back button are given...
- Verify whether the page redirects the user to a valid page or not.
- Check the button size /color as per requirement or not.
- Check whether the button name showing as per requirement or not.
Delete Button
Hope !!! The above test cases for buttons are helpful for you...
Team,
QA acharya
Tags: Cancel button test cases, submit button test cases, reset button test cases, test cases for submit button, test cases for the reset button.
0 Comments