Browse the Knowledge Hub74 resources
Test cases
Storage test cases, for what happens to the bytes after they arrive
Twenty eight cases covering unguessable storage keys, signed URL expiry and scope, serving before scanning completes, content type determined by inspection, uploaded markup executing in a trusted origin, metadata stripping, resumable uploads, orphaned objects, derivative failures, quotas and cached stale content.
All 28 test cases, ready to copy
Free to use and adapt, no sign-up. Download as CSV or Markdown, or copy it straight into your own tooling.
Last updated
28 worked examples
Store an uploaded file and retrieve it intact
TypeFunctionalPriorityHigh- Test data
- A file uploaded, stored, then downloaded and compared byte for byte
- Expected result
- Identical bytes returned, with the correct content type and original filename preserved in the download rather than the generated storage key.
Generate a storage key that cannot be guessed
TypeSecurityPriorityHigh- Test data
- Inspect stored object keys across several uploads
- Expected result
- Keys are random rather than sequential or derived from the filename, so knowing one object does not let an attacker enumerate others.
Expire a signed download URL
TypeBoundaryPriorityHigh- Test data
- A signed URL used inside its window and again after it
- Expected result
- Works then refused. A URL with no expiry is a permanent public link to private content the moment it appears in a log, an email or a referrer header.
Scope a signed URL to one object and one operation
TypeSecurityPriorityHigh- Test data
- Alter the object path in a signed URL, and use a read URL to attempt a write
- Expected result
- Both refused. The signature covers the path and the method, so a valid signature for one object grants nothing for another.
Authorise every download request
TypeSecurityPriorityHigh- Test data
- Request another account file while signed in, and while signed out
- Expected result
- Refused in both cases. Authorisation is evaluated per request rather than assumed from the page that produced the link.
Refuse to serve a file before scanning completes
TypeSecurityPriorityHigh- Test data
- Request a file in the window between upload and scan completion
- Expected result
- Withheld until scanning passes. Serving during that gap distributes whatever was uploaded to whoever asks first.
Quarantine a file that fails scanning
TypeSecurityPriorityHigh- Test data
- Upload a file that the scanner flags
- Expected result
- Quarantined and never served, the uploader is told, and the object is not left retrievable through a previously issued signed URL.
Determine content type from content, not the client
TypeSecurityPriorityHigh- Test data
- A script uploaded with an image content type, and a file with a mismatched extension
- Expected result
- Type is determined by inspection and the declared value is not trusted, since serving with an attacker chosen content type enables execution in the browser.
Serve user content from a separate origin
TypeSecurityPriorityHigh- Test data
- An uploaded HTML or SVG file requested directly
- Expected result
- Served from a distinct origin or forced to download with content disposition, so uploaded markup cannot execute against the application session.
Strip metadata that leaks personal information
TypeSecurityPriorityHigh- Test data
- A photograph containing GPS coordinates and device details in its metadata
- Expected result
- Location and identifying metadata are removed from derivatives according to policy, since a profile photograph otherwise publishes where it was taken.
Resume an interrupted upload
TypeStatePriorityHigh- Test data
- Interrupt a large upload at 60 per cent, then retry
- Expected result
- Resumes from the interruption point rather than restarting, and no partial object is left retrievable or counted as complete.
Handle an abandoned multipart upload
TypeStatePriorityMedium- Test data
- Start a multipart upload and never complete it
- Expected result
- Incomplete parts are cleaned up on a documented schedule, since abandoned multipart uploads accumulate storage cost invisibly.
Clean up orphaned objects when a record is deleted
TypeStatePriorityHigh- Test data
- Delete the record that references a stored file, then look for the object
- Expected result
- Object is removed or scheduled for removal, so deletion of the record genuinely deletes the data rather than only its reference.
Handle a storage write that fails after the record is created
TypeStatePriorityHigh- Test data
- Force the storage write to fail after the database row is committed
- Expected result
- Record is rolled back or marked incomplete rather than pointing at an object that does not exist and producing a broken link forever.
Generate derivatives correctly
TypeFunctionalPriorityHigh- Test data
- An image processed into thumbnail and display sizes, including a very wide and a very tall source
- Expected result
- Aspect ratio is preserved, no derivative is upscaled beyond the source, and orientation metadata is applied rather than ignored.
Handle a derivative that fails to generate
TypeNegativePriorityHigh- Test data
- A corrupt image, an unsupported codec and a file that crashes the processor
- Expected result
- Original is retained, a placeholder is served, the failure is recorded, and the processing worker is not left crash looping on the same file.
Serve a placeholder while processing is pending
TypeStatePriorityMedium- Test data
- Request a derivative immediately after upload
- Expected result
- A placeholder or the original is served rather than a broken image, and the derivative appears without requiring a manual refresh.
Reject a processing job that would exhaust resources
TypeBoundaryPriorityHigh- Test data
- An image with enormous declared dimensions, and a deeply nested document
- Expected result
- Refused before decoding on declared dimensions and size, since a small compressed file can expand to exhaust memory during processing.
Enforce a per account storage quota
TypeBoundaryPriorityHigh- Test data
- An upload that would take the account one byte over its quota
- Expected result
- Refused before the transfer completes where possible, with a clear message, and the quota reflects derivatives if policy counts them.
Recalculate usage when files are deleted
TypeStatePriorityMedium- Test data
- Delete several files and check the reported usage figure
- Expected result
- Usage decreases to match actual stored bytes, and reconciles with a direct measurement rather than drifting from a counter maintained in code.
Deduplicate identical uploads
TypeBoundaryPriorityMedium- Test data
- The same file uploaded twice by one account and by two accounts
- Expected result
- Documented behaviour applied, and if content is shared between accounts then deleting one copy does not remove the other access to it.
Preserve unicode and awkward filenames
TypeNegativePriorityMedium- Test data
- Filenames with accents, emoji, spaces, quotes, path separators and at maximum length
- Expected result
- Stored safely with path separators neutralised, and the original name is returned correctly encoded on download rather than mangled or truncated.
Refuse a path traversal in a supplied filename
TypeSecurityPriorityHigh- Test data
- A filename containing relative path segments and an absolute path
- Expected result
- Refused or fully sanitised, and the client supplied name never determines where the object is written.
Handle concurrent writes to the same logical file
TypeBoundaryPriorityHigh- Test data
- Two users replacing the same attachment simultaneously
- Expected result
- One wins deterministically or a conflict is raised, and the record never points at a version that was partially written.
Cache derivatives without serving stale content
TypeStatePriorityHigh- Test data
- Replace a file that has already been cached at the edge
- Expected result
- New version is served, through a content addressed key or cache invalidation, rather than the old image persisting for the cache lifetime.
Behave correctly when storage is unavailable
TypeStatePriorityHigh- Test data
- Make the storage backend time out during upload and during download
- Expected result
- Clear recoverable errors in both directions, no partial object marked complete, and the failure does not cascade into unrelated features.
Honour retention and legal hold rules
TypeSecurityPriorityHigh- Test data
- A file past its retention period, and one under a hold
- Expected result
- Expired content is removed including derivatives and backups within the stated window, while held content survives an ordinary deletion request.
Make file actions usable with a keyboard and a screen reader
TypeAccessibilityPriorityMedium- Test data
- Keyboard navigation through upload, progress, replace and delete controls
- Expected result
- Progress is announced, completion and failure are announced rather than only shown, and delete requires a reachable confirmation.
What goes in each field
ID
RequiredStable identifier, prefixed by module.
Test case
RequiredWhat is being verified, in one line.
Type
Functional, negative, boundary, security, state, performance, accessibility or compatibility. Use it to check coverage is spread rather than clustered on the happy path.
Priority
Risk based. Anything that serves a file to someone who should not have it, serves unscanned content, or executes uploaded content in a trusted origin is High. Orphaned storage is Medium unless the volume is material.
Test data
The specific values, including the invalid and boundary ones.
Expected result
RequiredThe precise observable outcome, including message text where the wording itself is the requirement.
Ask for the file before the scan finishes
This set starts where the file upload set ends. These four conditions are where a storage layer leaks data or serves something it should not.
Request during the scan window
There is a gap between upload completing and scanning finishing. Serving in that gap distributes whatever was uploaded to whoever asks first, and nothing logs it as a problem.
Edit the path in a signed URL
If the signature covers the token but not the object path and method, one valid signature is a key to the whole bucket. Check expiry in the same test.
Upload an SVG and open it directly
Uploaded markup served from your own origin executes against the application session. It needs a separate origin or a forced download.
Delete the record, look for the object
Deleting a row that references a file usually leaves the file. That is both a storage bill nobody can explain and a deletion request you did not actually honour.
Why storage layers leak quietly
Most published upload testing stops at the moment the bytes arrive: type accepted, size enforced, progress shown. Everything consequential happens afterwards. The object gets a key, and if that key is sequential or derived from the filename then knowing one file lets an attacker enumerate the rest. It gets a URL, and if that URL never expires it is a permanent public link to private content the first time it appears in a log, an email or a referrer header. And it gets scanned, but scanning takes time, and the window between upload completing and the scan finishing is a window in which the file is retrievable.
Content type is the second theme and it is a trust question. A client declared type is an assertion by whoever uploaded the file, so determining type by inspection rather than by the declared value is what stops a script being served as one. Even then, serving user content from the application origin means an uploaded SVG or HTML file executes with access to the application session. The fix is a separate origin or a forced download, and it is one of the few genuinely dangerous defects that a functional test would never surface because the file uploads and downloads perfectly.
The lifecycle cases are where cost and compliance live. An interrupted multipart upload leaves parts behind that accumulate charges nobody can trace. A deleted record that leaves its object behind is both a storage bill and, more seriously, a deletion request that was not honoured, since the data is still there. A storage write that fails after the database row commits leaves a permanent broken link. None of these produce errors, which is precisely why they persist.
Finally, processing is a resource boundary. A small compressed image can declare enormous dimensions and expand to exhaust memory during decoding, so limits belong on the declared dimensions before decoding starts rather than on file size alone. A file that crashes the processor needs to be handled once and quarantined, not retried until the worker is permanently crash looping on it. And metadata stripping matters more than it sounds: a profile photograph published with its GPS coordinates intact tells everyone where the person was standing.
Suggest an improvementTesting a storage or media pipeline?
QAble tests storage layers end to end, including signed URL scope, scanning gaps, derivative generation, lifecycle cleanup and behaviour when the backend is unavailable.
Cloud testing servicesMore test case sets
View allTest cases for a login page
Test cases25 cases across functional, negative, boundary, security, session and accessibility paths, including account enumeration and lockout.Test cases for a registration form
Test cases28 cases covering validation, duplicate accounts, email verification, password rules and the enumeration leak most signup forms ship with.Test cases for search functionality
Test cases28 cases across relevance, partial and fuzzy matching, filters, pagination, empty states, injection attempts and performance under load.Test cases for a shopping cart
Test cases27 cases on quantity limits, price recalculation, stock changes, coupon stacking, guest to account merge and cart persistence.Test cases for checkout and payment
Test cases30 cases including 3D Secure, declines, timeouts, duplicate charges, idempotency, refunds and partial captures.Test cases for file upload
Test cases28 cases on size and type limits, spoofed content types, malicious filenames, progress, resume, virus scanning and storage limits.Test cases for forgot password
Test cases26 cases on reset token expiry, single use enforcement, session invalidation and the enumeration and rate limit gaps that are routine here.Test cases for OTP verification
Test cases26 cases on expiry, resend throttling, attempt limits, code reuse, delivery failure and the brute force window teams forget to close.Test cases for user roles and permissions
Test cases26 cases on horizontal and vertical privilege checks, direct object access, role changes mid-session and permission inheritance.Test cases for form validation
Test cases27 rules-based cases on required fields, length and numeric boundaries, client and server parity, hidden field tampering and error accessibility.Test cases for a date picker
Test cases26 cases on timezone shifts, ambiguous day and month order, impossible dates, min and max limits, leap years and keyboard operation.Test cases for pagination
Test cases24 cases on ordering stability, records changing mid-session, page size caps, deep offset cost, permission-filtered totals and state restore.Test cases for push notifications
Test cases26 cases on app states, deep link routing, token release on sign out, lock screen privacy, preferences, provider failures and platform differences.Test cases for reports and data export
Test cases25 cases on permission filtering in the file, spreadsheet formula injection, encoding, typed numbers and dates, row limits and audit logging.Test cases for a chatbot
Test cases28 cases on paraphrased intents, context, fallback loops, human handoff, policy grounding, prompt injection and data scoping.Test cases for net banking transactions
Test cases28 cases on duplicate debits from a retried request, concurrent transfers against one balance, daily limits across channels, beneficiary cooling periods, second factor binding and reconciliation.Test cases for wallet and UPI payments
Test cases28 cases on payments that time out with no response, idempotency on retry, racing balances, caps across devices, collect request fraud, mandates and refunds.Test cases for insurance claim submission
Test cases28 cases on coverage at the date of loss, waiting periods, deductibles and sub limits, exclusions and riders, duplicate claims and settlement reconciliation.Test cases for patient records in an EHR
Test cases28 cases on duplicate detection and merge, wrong patient entry, units of measure, allergy and interaction alerting, break glass access and audit of reads.Test cases for CRM lead management
Test cases28 cases on duplicate leads under concurrency, routing and the unrouted fallback, round robin races, territory visibility, conversion and bulk import.Test cases for an ERP purchase order
Test cases28 cases on approval thresholds, amendments that must reset approval, budget commitment races, over receipt tolerance, three-way match and duplicate invoices.Test cases for OTT video playback
Test cases28 cases on bitrate recovery after a dip, DRM renewal mid stream, concurrent stream limits and leaked slots, resume conflicts, ad cue points and offline expiry.Test cases for game level progression
Test cases28 cases on save corruption during a crash write, cloud save conflicts, offline queue replay, unlock gating, currency exploits and purchase restore.Test cases for a REST API
Test cases28 cases on status code correctness, cross tenant resource access, mass assignment, idempotent retries, cursor pagination, rate limits and contract drift.Test cases for SSO and social login
Test cases28 cases on linking an account on an unverified email, state and code replay, redirect allow lists, token signature and issuer, deprovisioning and session rotation.Test cases for subscription and billing
Test cases28 cases on mid cycle proration, duplicate and out of order webhooks, renewal double charges, dunning and grace, trials, coupons, metered usage and tax.Test cases for data tables, filters and sorting
Test cases28 cases on unstable sorts across pages, filters that must reset pagination, selection surviving a filter change, bulk action scope and export fidelity.Test cases for session timeout and concurrent login
Test cases28 cases on tokens that survive sign out, refresh token reuse, idle against absolute lifetime, multi tab expiry, session limits and remote revocation.Test cases for a multi step form wizard
Test cases28 cases on values lost to back navigation, refresh and session expiry, step skipping, server side revalidation, duplicate submission and conditional branches.Test cases for email verification
Test cases28 cases on token reuse and expiry, invalidating earlier links, account enumeration, header injection, safe address change and mail scanner prefetching.Test cases for dashboards and analytics widgets
Test cases28 cases on reconciling against source rows, widgets that disagree, timezone aggregation, zero baselines, no data shown as zero and permission leaks in aggregates.Test cases for booking and reservation
Test cases28 cases on concurrent bookings for the last slot, inventory holds that leak, payment without a booking, cancellation boundaries and channel sync.Test cases for mobile app install and update
Test cases28 cases on migration chains across skipped versions, crashes during post upgrade migration, forced update lockouts, deep links and clean reinstall.Test cases for accessibility (WCAG 2.2 AA)
Test cases28 cases on keyboard only completion, focus management, live region announcements, contrast, reflow at 320 pixels, target size and screen reader verification.Test cases for performance and load
Test cases28 cases on spikes with no ramp, recovery after peak, soak and leak detection, pool exhaustion, cold caches, retry storms and data correctness under load.Test cases for the OWASP Top 10
Test cases28 cases on broken access control, mass assignment, injection across every input surface, credential stuffing, session invalidation, SSRF and exposed secrets.Test cases for cross browser compatibility
Test cases28 cases on storage that throws in private mode, blocked third party cookies, engine date parsing, mobile viewport units, in app browsers and ad blockers.Test cases for database and data integrity
Test cases28 cases on uniqueness under concurrency, lost updates, counter races, orphaned rows, migration and backfill safety, replica lag and verified restores.Test cases for localisation and multi language support
Test cases28 cases on text expansion, concatenated sentences, plural rules, locale date parsing, decimal separators, right to left layout, collation and encoding.Test cases for outbound webhooks
Test cases28 cases on retry backoff and dead letter stores, one dead consumer degrading the pipeline, payload signing and replay windows, out of order delivery and endpoint SSRF.Test cases for background jobs and queues
Test cases28 cases on work outliving the visibility timeout, idempotent handlers, poison messages, priority starvation, scheduler overlap across instances and graceful drain.Test cases for real time features and websockets
Test cases28 cases on messages lost in the reconnect gap, half open connections, per channel authorisation, tokens expiring mid connection, backpressure and fanout across instances.Test cases for CSV import and bulk operations
Test cases28 cases on reruns duplicating successes, delimiters inside quoted fields, byte order marks, leading zeros, ambiguous dates and bulk action scope.Test cases for feature flags and progressive rollout
Test cases28 cases on unreachable flag services, unstable bucketing, rollouts that reshuffle users, kill switch latency, server and client mismatch and stale flags.Test cases for Android app lifecycle and permissions
Test cases28 cases on state lost to process death, configuration changes, permanent permission denial, revocation while backgrounded, doze and battery restrictions.Test cases for iOS app lifecycle and permissions
Test cases28 cases on the keychain surviving uninstall, suspended termination, limited photo access, allow once location, app switcher snapshots and biometric invalidation.Test cases for wearable app sync
Test cases28 cases on data recorded away from the phone, duplicate records on resync, full buffers, clock drift, health permissions, battery budgets and unworn readings.Test cases for VR and AR experiences
Test cases28 cases on the frame rate comfort floor, tracking loss, guardian boundaries, involuntary camera movement, AR anchor drift and spatial data privacy.Test cases for IoT device pairing and telemetry
Test cases28 cases on offline buffering and reconnect floods, fleet wide reconnection storms, shared credentials, wrong device clocks and stale queued commands.Test cases for embedded firmware update
Test cases28 cases on power loss mid write, automatic rollback and health confirmation, signature and anti rollback checks, staged rollouts and recovery mode.Test cases for user profile and account settings
Test cases28 cases on partial saves reported as success, optimistic updates the server rejected, mass assignment through a profile form, avatar content inspection and session invalidation.Test cases for account deletion and data export
Test cases28 cases on export links that must be authorised and expiring, deletion cascading to storage, caches, logs and processors, grace periods, legal holds and deadlines.Test cases for consent and cookie management
Test cases28 cases on cookies and tracking requests firing before consent, reject parity with accept, tag manager bypass, withdrawal, cached banners and server side forwarding.Test cases for notification preferences and delivery
Test cases28 cases on opt outs honoured on one channel and ignored on another, marketing sent as transactional, unsubscribe scope, imports resetting consent and digest timezones.Test cases for admin impersonation and support access
Test cases28 cases on actions attributed to the customer instead of the admin, credential exposure, chained and upward impersonation, session expiry and immutable access records.Test cases for audit logs and activity history
Test cases28 cases on forged entries through log injection, immutability and tamper detection, actor attribution across impersonation and jobs, retention and legal holds.Want your storage layer proven, not assumed?
QAble covers functional, boundary and security paths with ISTQB-certified engineers. Start with a free QA audit of your platform.