Testing guides
Practical instructions for testing file handling, with commands and code you can run.
- How to test file upload: a complete checklist
A test plan for upload forms and endpoints, with the right sample file for every case.
- How to test file size limits
Where upload limits live, what the common defaults are, and how to test a boundary to the byte.
- How to test MIME types and file type validation
Extensions, Content-Type headers and magic bytes: how to check that type validation cannot be fooled.
- How to test file downloads
Completeness, integrity, speed, range requests and resume, each with a command you can run.
- How to create test files of any size
Commands for Linux, macOS and Windows that produce a file of an exact byte count, and when to use each.
- Building a QA test file kit
The files every tester should keep ready, organised into baseline, boundary and edge-case sets.
- File upload and download testing with Playwright
setInputFiles, file choosers, in-memory files, download assertions and API uploads, with working examples.
- File upload testing with Cypress
selectFile for inputs and drop zones, in-memory files, intercepting the upload request and checking downloads.
- File upload testing with Selenium WebDriver
Uploading with send_keys in Python and Java, remote grids, hidden inputs, multiple files and downloads.
- Using sample files for API testing
Three ways APIs receive files, with curl and fetch examples and the assertions that matter.
- What is a PDF file? Structure, versions and how to test with one
How a PDF is put together, how to recognise one from its bytes, and what that means for testing.
- How to test a CSV import
Byte order marks, quoting, delimiters, row counts and empty files, with the file and expected result for each.
- How to test corrupted file handling
Truncated PDFs, JPGs and DOCX files, a ZIP with a bad checksum, and what a good failure looks like.
Format comparison and verification guides
Deep technical comparisons across dataset formats, compression algorithms, containers, archives, fonts, MIME types, and cryptographic checksums:
- Dataset formats compared: CSV, TSV, JSON, JSONL, Parquet, Avro, XML and YAML
- Lossless vs. lossy compression across audio, video and image formats
- Animation formats compared: GIF, APNG, animated WebP, AVIF and short video loops
- Choosing a video container: MP4, MKV, WebM, MOV, AVI and MPEG-TS compared
- Choosing an image format: PNG, JPEG, WebP, AVIF, SVG, TIFF and BMP
- Archive and compression formats compared: ZIP, TAR, GZ, BZ2, XZ, Zstandard, 7Z and RAR
- Font formats compared: WOFF2, WOFF, TTF, OTF, CFF and PostScript Type 1
- How to verify a download with a SHA-256 checksum on Linux, macOS, Windows and CI
- Common MIME type mistakes in file uploads, HTTP headers and magic-byte sniffers
Operational transparency, verification and developer reference
For technical questions or feedback regarding SampleTestFiles, contact contact@sjwebtechwork.com. Every sample file, dataset, and diagnostic utility on this site follows strict reproducibility and privacy rules:
- Zero server-side file storage of visitor inputs: When you use our File Generator, Test Data Generator, Magic-Byte File Inspector, Browser Support Checker, or Developer Tools, all computation runs inside your browser's local JavaScript engine and Web Workers. No files or form inputs are transmitted to our servers.
- Deterministic provenance and public-domain licensing: All hosted fixtures under
/pub-files/and/mock-data/are synthesized from mathematical test patterns, sine waves, and invented records under our CC0 / Public Domain Licence and documented with exact commands on Methodology. - Cryptographic verification: Every file is accompanied by its exact byte length and 64-character SHA-256 digest, listed in our SHA-256 Checksum Directory, /checksums.txt, and /files.json.
Technical questions by topic
Each reference page below answers practical engineering questions about internal byte layouts, magic signatures, how our deterministic in-browser generator and Service Worker streaming work, and how to use the 54 core formats in automated testing:
- PDF and RTF Document Formats: Technical Questions and Answers
- DOCX, ODT, Markdown and TXT Formats: Technical Questions and Answers
- XLSX, ODS, CSV and TSV Spreadsheet Formats: Technical Questions and Answers
- PPTX and EPUB Formats: Technical Questions and Answers
- JSON, JSONL and Apache Avro Formats: Technical Questions and Answers
- XML, YAML, TOML and INI Configuration Formats: Technical Questions and Answers
- HTML, CSS, JavaScript and SVG Formats: Technical Questions and Answers
- SQL, Server Log and Raw Binary (BIN) Formats: Technical Questions and Answers
- JPG, PNG and WebP Image Formats: Technical Questions and Answers
- GIF, BMP, TIFF and ICO Image Formats: Technical Questions and Answers
- MP4 and WebM Video Formats: Technical Questions and Answers
- MKV and QuickTime MOV Video Formats: Technical Questions and Answers
- WAV and FLAC Lossless Audio Formats: Technical Questions and Answers
- MP3 and M4A Audio Formats: Technical Questions and Answers
- ZIP, TAR and Gzip Archive Formats: Technical Questions and Answers
- GeoJSON, KML and GPX Geospatial Formats: Technical Questions and Answers
- STL, OBJ and glTF 3D Model Formats: Technical Questions and Answers
- EML, ICS, SRT and WebVTT Formats: Technical Questions and Answers
- In-Browser File Generation, Service Worker Streaming and SHA-256 Architecture: Questions and Answers
- File Upload Validation, Magic-Byte Security and Parser QA Testing Across 54 Formats: Questions and Answers
- Cross-Format Conversion, Remuxing and Schema Migration Across 54 Formats: Questions and Answers
- Large File Streaming, Memory Ceilings and Viewer Limits (50 MB to 1 GB) Across 54 Formats: Questions and Answers
- Command-Line Inspection, Hex Analysis and Validation Tools Across 54 Formats: Questions and Answers
- Cloud Object Storage, Multipart Uploads, Presigned URLs and ETag Verification Across 54 Formats: Questions and Answers
- Android and iOS Mobile File Pickers, Share Sheets, Media Codecs and Sandbox Storage Across 54 Formats: Questions and Answers
- Relational and NoSQL Database Ingestion, BLOB vs. Object Storage and Full-Text Indexing Across 54 Formats: Questions and Answers
- HTTP Content-Disposition, Byte-Range 206 Streaming, CORS and Cache-Control Across 54 Formats: Questions and Answers
- Character Encodings, UTF-8 BOM, Line Endings and Little-Endian vs. Big-Endian Byte Order Across 54 Formats: Questions and Answers
- Deflate, LZ77, LZW, DCT, Huffman and Entropy Coding Behavior Across 54 Formats: Questions and Answers
- File Upload Sanitization, Polyglot Prevention, Zip Bomb Defenses and Parser Hardening Across 54 Formats: Questions and Answers
- In-Browser Native Rendering, HTML5 Media Elements, Canvas, PDF Viewers and Sandbox Security Across 54 Formats: Questions and Answers
- Automated End-to-End Upload and Download Testing in Playwright, Cypress and Selenium Across 54 Formats: Questions and Answers
- REST Multipart/Form-Data, Base64 JSON Payloads, GraphQL Uploads and Binary Streaming APIs Across 54 Formats: Questions and Answers
- Python File Processing with stdlib, Pandas, Pillow, pypdf and openpyxl Across 54 Formats: Questions and Answers
- Node.js Buffer, ReadableStream, Web Workers and TypeScript File Processing Across 54 Formats: Questions and Answers
- Enterprise File Parsing in Java, C# .NET, Go and Rust Across 54 Formats: Questions and Answers
- Embedded Metadata, EXIF, ID3v2, XMP, Document Properties and Privacy Scrubbing Across 54 Formats: Questions and Answers
- Truncated Streams, Corrupted Checksums, Negative QA Fixtures and Error Recovery Across 54 Formats: Questions and Answers
- ETL Pipelines, Schema Evolution, Batch Ingestion and Analytics Warehousing Across 54 Formats: Questions and Answers
- Long-Term Digital Preservation, Archival Standards, WCAG Accessibility and Open Specifications Across 54 Formats: Questions and Answers