Test Cases For Pen Drive | Test Case For Pendrive: In this article, we will discuss how to write test cases for Pendrives. This may sound surprising, but writing test cases for almost everything we see around us is possible.
Note: Here, we are assuming the generic functionalities of the pen drive, but it would be good if you could clarify the functionalities from the interviewer before writing test cases.
Post On: | Test Case For Pendrive |
Post Type: | Test Case Template |
Published On: | www.softwaretestingo.com |
Applicable For: | Freshers & Experience |
A pen drive’s chief function is to store and retrieve data because it is a storage device. There are many test cases for pen drives in Software Testing.
Test Cases For Pen Drive
UI Test Cases
- Check the specifications of the Pendrive (LWH)
- Check the color of the Pendrive
- Check the Pendrive casing (steel/plastic body)
- Check the Hardware interface of the Pendrive (Type C or USB 2.0 port, etc.)
Functional Test Cases For Pen Drive
A pen drive’s chief function is to store and retrieve data because it is a storage device. So we can have the following test cases to test a pen drive:
- Data gets stored (i.e., written to)in a pen drive from a magnetic drive like HDD, Optical drives like CD-ROM, and other storage devices.
- Written data can be retrieved (read-back operation)
- The device can be detected across its interface. Say, if the pen drive is a USB device, it is detected in a USB drive.
- The detected pen drive reflects the correct capacity, it claims.
- Data written to or read from the pen drive should not be corrupted.
- The pen drive can be formatted correctly and should be able to host the file system with which it is formatted.
Test Pendrive
- Validate whether the USB connector is available.
- Validate whether the Pendrive handle is available.
- Validate whether the Pendrive can connect with the system.
- Validate whether the pendrive’s required memory is available. [For example, Pendrive storage space is 2GB, 4GB, or 8GB.]
- Validate whether the LED of the Pendrive is available.
- Validate whether the LED is working fine.
- Validate whether all format files can be stored.
- Validate whether the size of the pen drive is small.
- Validate whether the write-protected switch is available or not.
- After inserting the Pendrive, validate whether the Pendrive icon is displayed in “My Computer.”
- Validate whether the Pendrive satisfies the configuration details.
- Check the compatibility with different laptops and CPUs
- Check the OS compatibility and check whether the OS can read it automatically.
- Check the Flash Memory (e.g., 8GB, 64GB, etc.) of the Pendrive
- Check the Memory Type (e.g., DDR3 SDRAM) of the Pendrive.
- Check the Pendrive on insertion to any laptops/CPUs mounted automatically.
- Write/read in/from the Pendrive and Check the writing and reading operations are working. (e.g., directly playing a video from Pendrive or writing a note in the Pendrive.)
- Copy from Pendrive to the local machine and check that the data is usable.
- Copy from the local machine to Pendrive and check if the data is usable.
- Check the read/Write of different formats of files like doc, mp3, mp4, gif, jpeg, etc.
- Write password-protected files in the Pendrive and Check if the data can be retrieved after removal and reinsertion.
- Check the formatting of the Pendrive.
- Check the data can be written till the full space is occupied.
- Check on the deletion of data and the free space available to write.
- Check a full Pendrive can be read by OS.
- Check the mount point can be changed manually.
- Change the format of the Pendrive (e.g., ext4 xfs) and check that the Pendrive is readable and writable.
- Check a Pendrive formatted for Mac OS that can be read from Windows/Linux.
- Check all the options available on right-click for the Pendrive.
- Check the safely removed operation.
- Check-in-use Pendrive can’t be removed safely.
- Check the transfer from one Pendrive to another drive/Pendrive.
- If the automatic backup on the cloud is available, Check the backup on the cloud.
- If the Pendrive supports encryption, check that the data stored is encrypted.
- If the Pendrive is password-protected, check that the data can be read/written only after providing the password.
- Verify that the Pendrive opens without any error or warning when you click Start, Select My Computer, right-click “Removable drive,” and open.
- Verify that the appropriate warning message is displayed with the action “Format the Drive” to be performed by the user when you click on Start, Select My Computer, Right-click on the drive, and Format the Drive.
- Verify that A separate pop-up will be opened to display the Available and Used space on the Drive when you click Start, Select My Computer, Right-click “Removable drive,” and Select Properties.
- Verify that the pendrive’s required memory is available, as said. [For example, Pendrive storage space is 2GB, 4GB, or 8GB.]
- Verify that the LED of the pen drive is available.
- Verify that the LED is working fine.
- Verify that files can be stored in all different formats.
- Verify whether the write-protected switch is available or not.
- Verify that the Pendrive icon is displayed in “My Computer” after you connect it to a laptop or desktop.
- Verify that data can be written to a Pendrive using a magnetic drive, ex. HDD, Optical drive ex. CD-ROM etc.
- Verify that data can be retrieved from the Pendrive.
- Verify that Pendrive is detected correctly. If it is a USB device, it is detected as a USB drive.
- Verify that the Pendrive shows the correct data storage capacity.
- Verify that data written to or read from the pen drive is in proper format and is not corrupted.
- Please verify that the pen drive can be formatted and hosts the file system correctly, which it is formatted.
- Verify if the Pendrive stores the correct amount of data as it says. For example, the Pendrive capacity is 2GB, and you try to save 4GB of data. It should give the correct error message.
Stress Testing Test Scenario For Pen Drive
- Insert and remove the Pendrive 1000 times and check the pins. Pins should not be worn out and still be usable.
- Read/Write continuously and check that the Pendrive doesn’t get too heated.
- Check the speed of reading/writing.
- Remove the Pendrive while writing data into it and check that the existing data is not corrupted.
- Copy corrupt data in the Pendrive and check the other data to ensure they are still readable.
- If possible, copy corrupt data in the Pendrive and check the writing and retrieval of other data.
Final Words
I hope you have found some valuable information in this post. Feel free to update us; you can do that by putting the updated information in the comment section. Let me know if you need more information or have any suggestions. Then, you can comment on that in the comment section.