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.