Test Cases For Button (Toggle, Add, Edit, Search, Delete, Save, Reset Button)

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.NoTestcase_IDTest Cases
1Testcase_01Verify that button design is as per specification or not
2Testcase_02Verify that button layout is as per specification or not
3Testcase_03Verify that button is properly aligned or not
4Testcase_04Verify that color of the button is as per specification or not
5Testcase_05Verify that size of the button is as per specification or not
6Testcase_06Verify that width of the button
7Testcase_07Verify that height of the button
8Testcase_08Verify that text on the button is properly displayed or not
9Testcase_09Verify that button color is changed when hover over on the button
10Testcase_10Verify that button is highlighted when the user navigates on the button-through keyboard Tab key

Test cases for Button

Test Cases For Toggle Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that design of the toggle button is as per specification or not
2Testcase_02Verify that the user is able to click on toggle button or not
3Testcase_03Verify that the user is able to toggle on or not
4Testcase_04Verify that the user is able to toggle off or not
5Testcase_05Verify that color when toggle on mode
6Testcase_06Verify that color when toggle off mode

Test Cases For Reset Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that the reset button is designed as per specification or not
2Testcase_02Verify that the reset button is clickable or not
3Testcase_03Verify that when the user clicks on the reset button without enter values into fields
4Testcase_04Verify that when the user clicks on the reset button with entering values into fields
5Testcase_05Verify that all fields should be clear when the user clicks on the reset button

Test Cases For Add Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that ADD button UI is as per specification or not
2Testcase_02Verify that Add button is clickable or not
3Testcase_03Verify that when a user clicks on an add button record should be added in the application.
4Testcase_04Verify that add is displayed as enable or not
5Testcase_05Verify that when a user double clicks on the add button, duplicate records should not be added.
6Testcase_06Verify that when the user clicks on add button-through keyboard enter key record should be added.

Test Cases For Search Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that search button is clickable or not
2Testcase_02Verify that when user clicks on search button, search result should be displayed on page
3Testcase_03Verify that search button should be enabled
4Testcase_04Verify that when user clicks search button through keyboard enter key then search result should be displayed
5Testcase_05Verify that behaviour of search field clicks on search button without entering data
6Testcase_06Verify that search button with enetring data into search field

Test Cases For Save Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that the Save button should be enabled when entering values into fields
2Testcase_02Verify that the Save button is clickable or not
3Testcase_03Verify that when the user clicks on the save button changes should be saved successfully
4Testcase_04Verify that when the user clicks on the save button, records should be saved.

Test Cases For Delete Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that the delete button should be clickable.
2Testcase_02Verify that the delete button should be displayed as enabled
3Testcase_03Verify that when the user clicks on the delete button, an alert pop-up message should be displayed.
4Testcase_04Verify that when the user clicks on delete button then record should be deleted after confirmation
5Testcase_05Verify that behavior of the application when double-clicking on the delete button

Test Cases For Edit Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Verify that the Edit button should be clickable
2Testcase_02Verify that when the user clicks on the edit button, the edit window should be open

Negative Test Cases For Button

Sr.NoTestcase_IDTest Cases
1Testcase_01Observe the behaviour when user double clicks on the button
2Testcase_02Observe 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.

Thank you, Readers….!!!!

1.Test Cases For Upload Image

2. Test cases for Gmail Login Page

3. Test Cases For Apply Button

Scroll to Top