.
Test Case for Button
Hello Folks,
In this tutorial, we will learn how to write Button Test Cases? We will also learn about positive test scenarios and Negative test scenarios.
What Are The Test Cases For Button?
Test Cases For Submit Button
Some of the Important test cases for the submit button are given below.
- Verify whether the button is clickable or not.
- Check that when the user clicks on the 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 /colour as per requirement or not.
- Check whether the button name shows as per requirement or not.
Test Cases For 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 the 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 /colour as per requirement or not.
- Check whether the button name showing as per requirement or not.
Test Cases For Cancel Button
Some of the Important test cases for the cancel button are given below.
Some of the Important test cases for the cancel button are given below.
- verify that the 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 /colour as per requirement or not.
- Check whether the button name showing as per requirement or not.
Test Cases For Toggle Button
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 colour 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 whether 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 colour of the button. (on/off)
- Check that the user is able to on/off the toggle button if there are multiple buttons is there.
Test Cases For Radio Button
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 the 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 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.
Test Cases For Back Button
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 /colour as per requirement or not.
- Check whether the button name showing as per requirement or not.
Hope !!! The above test cases for buttons are helpful for you...
Team,
QA acharya
Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com
Mail your content - qaacharya.in@gmail.com
0 Comments