In this post, I’m listing find and replace test cases. The dialog box for find and replace usually is a part of word processors, text editor and applications that involve ability to change data. Most of the common application in which you can find this dialog box inside Microsoft Word, Notepad++ and OpenOffice. There are some of the database applications that has large entries that can be found and modified using “Find and Replace” dialog box.
I am using the dialog box offered by Editpad Lite application. If you want to see better find and replace dialog box for more test cases you may want to use Microsoft word. See the screenshot below for understanding the “find and replace” feature.
Test cases for find and replace dialog box
- Verify if the dialog box has close button.
- Verify if the dialog box has help icon button at right hand corner.
- Verify if the dialog box has Find, Replace and Goto tabs.
- Verify if the dialog box has more, reading highlight, find in, find next and cancel button.
- Verify if the dialog box has Find what: text label under the Find tab.
- Verify if the dialog box opens find tab by default when the dialog box is invoked.
- Verify if the dialog box has search box with specification size under the find tab.
- Verify if the search string if typed in search box for “find” tab.
- Verify if the search string results are shown in new dialog after the string search is complete.
- Verify if the “Reading highlight“, “Find in” and “Find next” buttons are disabled by default.
Now let’s check out the Replace tab in the dialog box and the test cases additional to the find tab are added for Replace tab are as following:
- Verify if the Replace with label and text box is placed under “find” tab as per the specification.
- Verify if the More and Less buttons functions as per the specifications.
- Verify if the “Search’ drop down menu has “All” as default choice.
- Verify if the Replace feature has “Format ” and “Special’ buttons enabled by default.
- Verify if the “Match Case” checkbox is unchecked by default.
- Verify if the dialogbox has “Match Case” Checkbox.
- Verify if the “Match Prefix” checkbox is unchecked by default.
- Verify if the dialogbox has “Match Prefix” Checkbox.
- Verify if the “Match Suffix” checkbox is unchecked by default.
- Verify if the dialogbox has “Match Suffix” Checkbox.
- Verify if the “Find Whole Words only” checkbox is unchecked by default.
- Verify if the dialogbox has “Find Whole Words only” Checkbox.
- Verify if the “Use Wildcards” checkbox is unchecked by default.
- Verify if the dialogbox has “Use Wildcards” Checkbox.
- Verify if the “Sounds like(English)” checkbox is unchecked by default.
- Verify if the dialogbox has “Sounds like(English)” Checkbox.
- Verify if the “Find all words form (english)” checkbox is unchecked by default.
- Verify if the dialogbox has “Find all words form (english)” Checkbox.
- Verify if the “Ignore white-space characters” checkbox is unchecked by default.
- Verify if the dialogbox has “Ignore white-space characters” Checkbox.
- Verify if the “Ignore punctuation characters” checkbox is unchecked by default.
- Verify if the dialogbox has “Ignore punctuation characters” Checkbox.
- Verify if the cancel button is enabled by default.
- Verify if the functionality of cancel button works.
These are some of the test cases for the find and replace dialog box. Feel free to come up with all the remaining tabs depending on your app. Do let me know if you can find more test cases for the above dialog. You can add those test cases in the comments below. I’d appreciate if you post your suggestions and feedback in the comment form listed below. If you find this post useful feel free to share the URL of this post in social media. 🙂
anju says
this one is also nice