File Compression Test Cases
File Compression Test Cases
TC_001 Verify file Check that the Compression 1. Select file. File should be File PASS
compression file is tool installed, 2. Run compressed, compressed
compressed file available compression. reducing size successfully,
successfully. for 3. Verify without data size reduced
compression. compression loss. without data
results. loss.
TC_002 Compression Verify the Empty file 1. Select empty Compression Empty file PASS
of empty file behavior when available. file. should create a compressed,
trying to 2. Run small output file
compress an compression. compressed created with
empty file. 3. Verify the file or show a minimal size.
output size and relevant
result. message.
TC_003 File Compress file File with 1. Select file File should be File PASS
compression containing special with special compressed compressed
with special special characters in characters. successfully successfully,
characters characters in the name 2. Run without name filename
the filename. available. compression. corruption. preserved with
3. Verify special
successful characters
compression. intact.
TC_004 Compression Test Large file 1. Select large Compression Large file PASS
with large file compression available. file. should compressed
for a large file 2. Run succeed, successfully,
(> 1GB). compression. reducing file significant size
3. Verify the size reduction
compressed significantly. achieved.
file size and
speed.
TC_005 Compression Verify the Multiple files 1. Select All files should Multiple files PASS
of multiple compression of available for multiple files. be compressed successfully
files multiple files compression. 2. Run into one compressed
at once. compression. archive without into a single
3. Verify all errors. archive.
files are
compressed
into a single
archive.
TC_006 Verify Compress a Folder with 1. Select folder Folder Nested folder PASS
compression folder with nested with nested structure structure
with nested nested subfolders subfolders. should be successfully
folders subfolders. available. 2. Run preserved in preserved after
compression. compressed compression.
3. Verify folder archive.
structure is
retained in
compression.
TC_007 Compress file Verify behavior Limited disk 1. Select file Should prompt Error prompted PASS
with when space. for error due to due to
insufficient compressing a compression. insufficient insufficient
storage file with 2. Ensure disk space. disk space,
insufficient insufficient compression
disk space. disk space. halted.
1/3
3. Run
compression.
TC_008 Compression Test maximum Compression 1. Select file. File should be File PASS
with compression tool supporting 2. Choose compressed to compressed
maximum level to reduce multiple levels maximum the smallest successfully
compression file size as available. compression possible size. using
level much as level. maximum
possible. 3. Run compression,
compression. smallest
4. Verify final possible size
compressed achieved.
size.
TC_010 File corruption Verify if the File available 1. Compress File should File PASS
after file is for file. remain intact, successfully
compression corrupted after compression. 2. Decompress without compressed
compression file. corruption. and
and 3. Compare decompressed
decompression. decompressed without any
file with corruption.
original.
TC_011 Unsupported Attempt to Unsupported 1. Select Should display Error message PASS
file type compress an file type unsupported an error displayed,
compression unsupported available. file type. message unsupported
file type. 2. Run indicating file type
compression. unsupported compression
3. Verify error file type. blocked.
message or
failure notice.
TC_012 Compression Test Compression 1. Select file. File should File PASS
with password compressing a tool supports 2. Enable compress and successfully
protection file with password password decompress compressed
password protection. protection. only with the with password
protection 3. Run correct protection,
enabled. compression. password. decompression
4. Test possible only
decompression with correct
with correct password.
and incorrect
password.
TC_013 Compression Verify file Compression 1. Select file. File should be File PASS
using different compression tool supports 2. Choose compressed successfully
file formats using different multiple various formats successfully in compressed in
archive formats formats. (e.g., ZIP, each format. different
(ZIP, TAR, TAR). formats (ZIP,
etc.). 3. Run TAR, etc.).
compression
for each
format.
4. Verify size
and integrity of
each archive
format.
2/3
TC_014 Compression Check system System ready 1. Select file. System should System PASS
failure behavior when for 2. Begin handle failure handled failure
handling compression compression. compression. gracefully and appropriately,
fails (e.g., due 3. Force failure recover or alert user alerted of
to unexpected (e.g., power the user. compression
shutdown). off). failure.
4. Attempt to
recover or
resume the
compression.
TC_015 Check for Measure the Large file 1. Select large Compression Compression PASS
compression speed of available. file. should speed was
speed with compression 2. Measure complete within
large files for very large time taken to within a acceptable
files. compress. reasonable limits for large
3. Compare time. files.
with expected
compression
time.
TC_016 Check for Monitor CPU File available 1. Select file. CPU usage CPU usage PASS
CPU usage usage during for 2. Run should remain was normal
during the compression, compression. within during
compression compression monitoring 3. Monitor reasonable compression,
process. tool ready. CPU usage limits without no system
throughout the overloading the overload
process. system. occurred.
TC_017 Test for Check memory File available 1. Select file. Memory usage Memory usage PASS
memory usage consumption for 2. Run should stay remained
during during the compression, compression. within stable
compression compression memory 3. Monitor reasonable throughout the
process. monitoring memory usage limits. compression
tool ready. throughout the process.
process.
TC_018 Test large file Compress a Network drive 1. Select large File should File PASS
compression large file available, large file from compress successfully
on network stored on a file stored on network drive. successfully compressed
drive network drive. it. 2. Run without from network
compression. significant drive with
3. Monitor network delay. minimal delay.
process for any
network-
related delays.
TC_019 Test file Compress a File available 1. Compress File should File PASS
compression file on one OS on one OS, file on OS A. compress and successfully
across and another OS 2. Transfer decompress compressed on
different OS decompress it ready for compressed successfully one OS and
on another. decompression. file to OS B. across different decompressed
3. Decompress OS. on another,
and compare integrity
with original. maintained.
TC_020 Test Check if file File with 1. Compress File File PASS
compression permissions are specific file. permissions permissions
with file maintained permissions 2. Decompress should remain successfully
permissions after available. file. intact after retained after
compression 3. Check if decompression. decompression.
and original
decompression. permissions are
retained.
3/3