What We Are Learn On This Post
Test cases for notepads are asked in many testing interviews. Depending on your level of experience, you’ll be asked to feature specific test cases for the notepad. Depending on the operating system you use, the notepad application will have different features and some additional or fewer features.
Let’s assume the notepad application that we are going to test here is windows based “Notepad”. It has the following options: create a new file, save the file, save the file with a different extension, word wrap, copy, paste, delete, and exit.
Post On: | Test Case For Notepad |
Post Type: | Test Case Template |
Published On: | www.softwaretestingo.com |
Applicable For: | Freshers & Experience |
Never Miss: | Software Testingo Group Link |
What is a Notepad?
Notepad is a word processing program, which allows changing of text in a computer file. Notepad was created by the Microsoft Corporation. It is a text editor, a very simple word processor. It has been a part of Microsoft Windows since 1985.
Test Cases for Notepad
- Check whether the system supports notepad or not.
- Check by clicking on the windows button selected for the notepad and clicking on to open.
- Check notepad is opening or not by opening the Run prompt window and entering for the notepad.
- Check notepad is opening or not by clicking the notepad shortcut icon.
- Check the new page should be blank and cursor at the beginning of the first line.
- Check the application allows typing
- Check the application allows saving
- Check the application allows opening a saved instance
- Check Menu bar option is opening or not.
- On the menu bar, select for File button and click to open the dialog box.
- Check the validate menus and submenus
- Check if the data is saved after writing to the file.
- Check the functionality for the save as a file.
- Check the type of data that can be saved (numeric, alphanumeric, special chars).
- Check by saving a blank file.
- A dialog box should open. In the dialog box, choose the option to the Open button.
- After selecting the option, the cursor should be highlighted on the screen of the notepad.
- After clicking on to Open button, by default, it should open the blank page to edit.
- Check for the functionality of the edit on the screen.
- Check if the notepad allows the same file name in the same file path.
- Check if the edits to the file are saved.
- Check the shortcut key is worked to open and close the dialog box
- Check the dialog box is closed when pressing Esc button on the keyboard
- Check the functionality of the close, maximize, and minimize buttons.
- Check if the window for notepad can be re-sized.
- Check the default size of the notepad is based on the last saved window size.
- Check if the clearing system cache has any difference in the size of the notepad window after you open any file.
- Do performance testing by opening, say, 100 instances of notepad (possibly by using an automated tool), and determining the response time.
- Check the max length of the data.
These were some of the common test cases, but if you want to go to application-specific test cases, then you have to check each item on the menu.
Test Case for New File Option
- Create a new file using CTRL+N hotkey.
- Create a new file using the File> New menu option.
- Create a new file using Windows Icon+ Menu > Accessories > Notepad.
Test Case for Undo Option:
- Click on Undo option in Edit Menu.
- Use CTRL+Z hotkey to undo the text changes.
Test Case for Copy Option:
- Click on the Cut option in Edit Menu
- Use CTRL+C hotkey to copy the text selected.
- Use cut option in the edit menu without selecting any text.
- Use CTRL+x hotkey with selecting text.
Test Case for Paste Option:
- Click on Paste option in Edit Menu
- Use CTRL+V hotkey to paste the text selected.
- Use Paste option in the edit menu without selecting any text.
- Use CTRL+V hotkey without selecting text or area.
Test Cases for Save Option:
- Save the empty file.
- Save the file with maximum text content.
- Save the file with less than the maximum allowed to store in a file.
- Save the file on the desktop.
- Save the file with the same file name that two of the earlier saved file and choose the same file path.
- Save the file with word-wrapped and close it to open again after a few seconds.
- Save the file without word-wrapped and close it to open again after a few seconds.
- Save the file from the file menu.
- Save the file using CTRL+S hotkey.
- Save the file with the ASCII character set.
- Save the file with the UTF character set.
- Save the file with multiple encoding character set.
- Save the file with Unicode endian character set.
Test Case for Exit Option:
- Exit the application by clicking the file>exit menu.
- Exit the application by using the ALT+F4 system hotkey.
Some of the other common test cases for cross-platform applications
- Check if the find option exists for the notepad.
- Check if the navigation within the text is possible with the arrow keys on the keypad.
- Check the default position of the cursor (before, after the saving file).
- Check if the notepad has found and replaced functionality.
Conclusion
There are many other test cases that you can come up with for each entry in the menu. Some of the options vary depending on the version of the notepad you are using. I hope that the above test cases are sufficient enough to test the basic functionality of the notepad. Feel free to let me know your suggestions and feedback in the comment section below.
As I know, CTRL+X is not exiting hotkey.
Thanks Andrey For Update this. Post also update as per your suggestions
CTRL+C is for copy not for cut pls update
Also a good post for quick reference
Updated
Not yet updated….