Test Cases For Button (Toggle Button, Add Button, Edit Button, Search Button, Delete Button, Save Button, Reset Button): In this article we have covered all types of buttons test cases. Web applications, Mobile applications, and Desktop applications have different types of buttons. So buttons should be worked properly in the application for the quality of the application as well the user’s experience.
In this post, we have covered all types of buttons such as the toggle button, add button, edit button, search button, delete button, save button and reset button. We have tried to cover test scenarios related to the main functionality of the buttons. Different buttons have different types of functionality and they should be worked as expected.
UI Test Cases For Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that button design is as per specification or not
2
Testcase_02
Verify that button layout is as per specification or not
3
Testcase_03
Verify that button is properly aligned or not
4
Testcase_04
Verify that color of the button is as per specification or not
5
Testcase_05
Verify that size of the button is as per specification or not
6
Testcase_06
Verify that width of the button
7
Testcase_07
Verify that height of the button
8
Testcase_08
Verify that text on the button is properly displayed or not
9
Testcase_09
Verify that button color is changed when hover over on the button
10
Testcase_10
Verify that button is highlighted when the user navigates on the button-through keyboard Tab key
Test Cases For Toggle Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that design of the toggle button is as per specification or not
2
Testcase_02
Verify that the user is able to click on toggle button or not
3
Testcase_03
Verify that the user is able to toggle on or not
4
Testcase_04
Verify that the user is able to toggle off or not
5
Testcase_05
Verify that color when toggle on mode
6
Testcase_06
Verify that color when toggle off mode
Test Cases For Reset Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that the reset button is designed as per specification or not
2
Testcase_02
Verify that the reset button is clickable or not
3
Testcase_03
Verify that when the user clicks on the reset button without enter values into fields
4
Testcase_04
Verify that when the user clicks on the reset button with entering values into fields
5
Testcase_05
Verify that all fields should be clear when the user clicks on the reset button
Test Cases For Add Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that ADD button UI is as per specification or not
2
Testcase_02
Verify that Add button is clickable or not
3
Testcase_03
Verify that when a user clicks on an add button record should be added in the application.
4
Testcase_04
Verify that add is displayed as enable or not
5
Testcase_05
Verify that when a user double clicks on the add button, duplicate records should not be added.
6
Testcase_06
Verify that when the user clicks on add button-through keyboard enter key record should be added.
Test Cases For Search Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that search button is clickable or not
2
Testcase_02
Verify that when user clicks on search button, search result should be displayed on page
3
Testcase_03
Verify that search button should be enabled
4
Testcase_04
Verify that when user clicks search button through keyboard enter key then search result should be displayed
5
Testcase_05
Verify that behaviour of search field clicks on search button without entering data
6
Testcase_06
Verify that search button with enetring data into search field
Test Cases For Save Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that the Save button should be enabled when entering values into fields
2
Testcase_02
Verify that the Save button is clickable or not
3
Testcase_03
Verify that when the user clicks on the save button changes should be saved successfully
4
Testcase_04
Verify that when the user clicks on the save button, records should be saved.
Test Cases For Delete Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that the delete button should be clickable.
2
Testcase_02
Verify that the delete button should be displayed as enabled
3
Testcase_03
Verify that when the user clicks on the delete button, an alert pop-up message should be displayed.
4
Testcase_04
Verify that when the user clicks on delete button then record should be deleted after confirmation
5
Testcase_05
Verify that behavior of the application when double-clicking on the delete button
Test Cases For Edit Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Verify that the Edit button should be clickable
2
Testcase_02
Verify that when the user clicks on the edit button, the edit window should be open
Negative Test Cases For Button
Sr.No
Testcase_ID
Test Cases
1
Testcase_01
Observe the behaviour when user double clicks on the button
2
Testcase_02
Observe the behaviour when user press enter key and mouse click at a time
Conclusion
So as above, we mentioned test cases for Button. If you are also looking for more examples of test cases then please visit the link below.