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 a little surprising, but it is possible to write test cases for almost everything we see around us.
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|
|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.
- 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 Ex: Pendrive storage space is 2GB or 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 store.
- 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 that get 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 the data is usable.
- Copy from the local machine to Pendrive and Check 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 the Pendrive is readable and writable.
- Check a Pendrive formatted for mac os can be read from windows/Linux os and vice-versa.
- 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 the encryption, Check the data stored is encrypted.
- If the Pendrive is password-protected, Check the data can be read/written only after providing the password.
- Verify that the Pendrive opens without any error or warning when you click on Start, Select My Computer, right-click on “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 on Start, Select My Computer, Right-click on “Removable drive,” and Select Properties.
- Verify that the pendrive’s required memory is available, as said. [For Ex: Pendrive storage space is 2GB or 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 the Pendrive doesn’t get too heated.
- Check the speed of reading/writing.
- Remove the Pendrive while writing data into it and Check the existing data is not corrupted.
- Copy corrupt data in the Pendrive and Check the other data are still readable.
- Copy corrupt data in the Pendrive and Check writing and retrieval of other data is still possible.
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.
Leave a Reply