View all services
Talk to QA Advisor
Browse the Knowledge Hub74 resources
/Test Cases/Account deletion and data export test cases

Test cases

Deletion and export test cases, where the export itself is the breach

Twenty eight cases covering export links that must be authorised and expiring, other people data excluded, deletion cascading to derivatives, storage, caches, logs and third party processors, backups and restores, grace periods and cancellation, anonymisation against deletion, legal holds and statutory deadlines.

28cases/8coverage types/13security cases/FreeCSV download

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

DSR-01

Request an export and receive complete data

TypeFunctionalPriorityHigh
Test data
An account with profile, activity, uploads, messages and billing history
Expected result
Export contains every category the privacy notice claims, in a machine readable format, and the categories are enumerated so completeness can be checked.
DSR-02

Authorise the export download on every request

TypeSecurityPriorityHigh
Test data
Request the export URL while signed out, and as a different user
Expected result
Refused in both cases. An export is a single file containing everything about a person, so an unauthorised link is a complete breach of that record.
DSR-03

Expire the export link

TypeBoundaryPriorityHigh
Test data
Use the link inside its window, then after it
Expected result
Works then refused, and the underlying file is deleted at expiry rather than remaining retrievable to anyone who kept the URL.
DSR-04

Re-authenticate before starting an export

TypeSecurityPriorityHigh
Test data
Request an export from a long lived session
Expected result
Password or second factor required, since an unattended session should not be able to package the whole account for collection.
DSR-05

Rate limit export requests

TypeSecurityPriorityHigh
Test data
Request an export ten times in quick succession
Expected result
Throttled with a clear message. An unlimited export endpoint is both a denial of service vector and a way to generate many copies of sensitive data.
DSR-06

Exclude other people data from the export

TypeSecurityPriorityHigh
Test data
An account with shared documents, group messages and comments by others
Expected result
Only the requester own contributions are included, or third party content is minimised, since another person messages are their data rather than the requester.
DSR-07

Deliver the export in a usable format

TypeFunctionalPriorityHigh
Test data
The generated archive opened and parsed
Expected result
Structured and documented rather than an opaque dump, with a manifest explaining each file, and any attachments included rather than referenced by dead links.
DSR-08

Handle an export large enough to exceed a request timeout

TypePerformancePriorityHigh
Test data
An account with years of history and many uploads
Expected result
Generated asynchronously with progress and a notification, and the file is streamed rather than assembled entirely in memory.
DSR-09

Neutralise formula content in exported tabular files

TypeSecurityPriorityHigh
Test data
A stored value beginning with an equals sign, exported and opened in a spreadsheet
Expected result
Prefixed or quoted so it cannot execute, since the recipient of this file is the data subject and may open it in a spreadsheet immediately.
DSR-10

Delete an account and confirm it is gone

TypeFunctionalPriorityHigh
Test data
Delete an account, then attempt to sign in and to request a password reset
Expected result
Both refused, and the reset response does not reveal whether the account once existed, so deletion does not become an enumeration oracle.
DSR-11

Require explicit confirmation before deletion

TypeNegativePriorityHigh
Test data
Trigger deletion and attempt to complete it without confirmation
Expected result
Blocked until the consequence is acknowledged, re-authentication is provided, and the confirmation states what will and will not be retained.
DSR-12

Honour a grace period and allow cancellation

TypeStatePriorityHigh
Test data
Request deletion, cancel inside the grace period, then let another request run past it
Expected result
Cancellation fully restores the account, and after the grace period the deletion proceeds automatically without needing a second action.
DSR-13

Suspend access during the grace period

TypeStatePriorityMedium
Test data
Sign in during a pending deletion, and attempt an action that creates new data
Expected result
Documented behaviour applied consistently, and the pending state is visible rather than the account appearing entirely normal.
DSR-14

Distinguish deletion from anonymisation

TypeStatePriorityHigh
Test data
An account with financial records that must be retained for statutory periods
Expected result
Personal identifiers are removed while the retained record survives in anonymised form, and the policy is stated to the user rather than implied.
DSR-15

Cascade deletion to derived and cached data

TypeStatePriorityHigh
Test data
An account with avatar derivatives, search indexes, caches and edge cached pages
Expected result
Each is purged or invalidated within the stated window, since a cached page or a search index entry keeps the data reachable after deletion.
DSR-16

Remove uploaded files from object storage

TypeStatePriorityHigh
Test data
Delete an account with stored files, then request a previously issued file URL
Expected result
Objects are removed and the URL refused, since deleting the database row while leaving the object is a deletion request that was not honoured.
DSR-17

Propagate deletion to third party processors

TypeSecurityPriorityHigh
Test data
An account whose data has been sent to analytics, marketing, support and payment processors
Expected result
Deletion requests are issued to each within the stated window and the outcome is recorded, because the obligation covers processors as well as your own store.
DSR-18

Handle deletion in backups within the stated policy

TypeStatePriorityHigh
Test data
A backup taken before the deletion request, then restored
Expected result
Documented policy is applied so a restore does not resurrect the account, whether through a suppression list or a documented backup expiry period.
DSR-19

Remove personal data from logs and analytics

TypeSecurityPriorityHigh
Test data
Application logs, audit trails and analytics events containing the identifier
Expected result
Personal data is removed or pseudonymised per policy while any legally required audit record is retained, and the distinction is deliberate.
DSR-20

Keep aggregate figures intact after deletion

TypeStatePriorityMedium
Test data
Reporting totals compared before and after an account is deleted
Expected result
Historic aggregates remain correct rather than retrospectively changing, which would make every previously published figure unreproducible.
DSR-21

Handle deletion of shared or collaborative content

TypeStatePriorityHigh
Test data
An account owning a shared workspace, documents others depend on, and comments in a thread
Expected result
Ownership transfer or documented retention is applied rather than silently removing content other people rely on, and they are notified.
DSR-22

Refuse deletion where a legal hold applies

TypeNegativePriorityHigh
Test data
An account under litigation hold or with an open regulatory obligation
Expected result
Deletion is blocked or deferred with the reason recorded, since destroying held records is a more serious failure than retaining them.
DSR-23

Handle deletion with an active subscription or balance

TypeBoundaryPriorityHigh
Test data
An account with a live subscription, an outstanding invoice and a credit balance
Expected result
Subscription is cancelled, the financial position is settled or surfaced, and no further charge is taken after the deletion completes.
DSR-24

Resume a deletion that failed partway

TypeStatePriorityHigh
Test data
Force a failure midway through the deletion pipeline, then retry
Expected result
Resumes and completes rather than leaving the account partially deleted, and the partial state is visible to an operator rather than silent.
DSR-25

Free a deleted identifier deliberately

TypeSecurityPriorityHigh
Test data
Register a new account using the deleted account email or username
Expected result
Documented rule applied, and the new account inherits nothing from the old one, so no previous data becomes visible to whoever claims the identifier.
DSR-26

Meet the statutory response deadline

TypeBoundaryPriorityHigh
Test data
A request tracked from submission to completion, including one that is paused for identity verification
Expected result
Elapsed time is recorded and reported accurately, and any pause follows a documented rule rather than quietly extending the deadline.
DSR-27

Record the request and its outcome

TypeSecurityPriorityHigh
Test data
One export and one deletion, both completed
Expected result
Each is recorded with requester, timestamp, verification method and outcome, since demonstrating compliance requires evidence rather than an assurance.
DSR-28

Complete both journeys with a keyboard and a screen reader

TypeAccessibilityPriorityMedium
Test data
Keyboard only navigation through the export request, the deletion confirmation and the grace period notice
Expected result
Consequences are announced rather than only shown, the confirmation dialogue traps and restores focus, and no destructive control is reachable without its warning.

What goes in each field

ID

Required

Stable identifier, prefixed by module.

Test case

Required

What 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, weighted by regulatory exposure. Anything that delivers one person data to another, leaves data behind after a deletion request, or destroys records under legal hold is High.

Test data

The specific values, including the invalid and boundary ones.

Expected result

Required

The precise observable outcome, including message text where the wording itself is the requirement.

How To Use This

Open the export link signed out

An export is one file containing everything about a person. These four conditions are where privacy features become privacy incidents.

Request the export URL as nobody

Then as a different user. If either works you have built a feature that hands one person entire record to whoever finds the link. Check it expires too.

Delete, then ask for a stored file

Deleting the database row while leaving the object in storage is a deletion request you did not honour. Same for search indexes and edge cached pages.

Restore a backup taken before the request

If the account comes back, the deletion was reversible by an ordinary operational action. That needs a suppression list or a documented backup expiry.

Delete an account under legal hold

This one must fail. Destroying held records is a worse outcome than retaining them, and the block needs to exist rather than depending on someone remembering.

What Most Sets Miss

Why privacy features become incidents

A data export is the single most concentrated collection of personal data your product will ever produce: profile, messages, activity, uploads and billing in one downloadable file. That makes the delivery mechanism more sensitive than anything it contains. A link without authorisation on every request, without an expiry, or without the underlying file being deleted at expiry turns a compliance feature into a breach waiting for someone to find the URL. Re-authentication before generating one belongs in the same group, because an unattended session should not be able to package the whole account for collection.

Deletion is only real if it reaches everywhere the data went, and it went further than the primary table. Avatar derivatives, search indexes, application caches, edge cached pages, object storage, logs, analytics and every third party processor you forwarded data to. Each is a separate case and each is a place where the record survives a deletion the user believes completed. Backups are the hardest of these, because a restore performed for an unrelated reason will resurrect the account unless a suppression list or a documented backup expiry policy handles it.

The distinction between deletion and anonymisation is a product decision that has to be stated rather than implied. Financial records usually must be retained for statutory periods, so the correct behaviour is to strip personal identifiers while keeping the record, and to tell the user that is what happens. The related case is aggregates: historic reporting totals should not retrospectively change when an account is deleted, or every figure you previously published becomes unreproducible.

Finally, the cases that pull in the opposite direction. Deletion must be refused where a legal hold applies, because destroying held records is more serious than retaining them. Shared and collaborative content cannot simply vanish and take other people work with it. An export must exclude other people data, since another person messages are their record rather than the requester. And the whole thing is auditable: demonstrating compliance requires recorded evidence of who requested what, how they were verified, and when it completed.

Suggest an improvement

Preparing for a privacy or compliance audit?

QAble tests data subject request handling end to end, including export authorisation, deletion cascade across storage and processors, retention rules and evidence trails.

QA audit services

More test case sets

View all

Test cases for a login page

Test cases
25 cases across functional, negative, boundary, security, session and accessibility paths, including account enumeration and lockout.

Test cases for a registration form

Test cases
28 cases covering validation, duplicate accounts, email verification, password rules and the enumeration leak most signup forms ship with.

Test cases for search functionality

Test cases
28 cases across relevance, partial and fuzzy matching, filters, pagination, empty states, injection attempts and performance under load.

Test cases for a shopping cart

Test cases
27 cases on quantity limits, price recalculation, stock changes, coupon stacking, guest to account merge and cart persistence.

Test cases for checkout and payment

Test cases
30 cases including 3D Secure, declines, timeouts, duplicate charges, idempotency, refunds and partial captures.

Test cases for file upload

Test cases
28 cases on size and type limits, spoofed content types, malicious filenames, progress, resume, virus scanning and storage limits.

Test cases for forgot password

Test cases
26 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 cases
26 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 cases
26 cases on horizontal and vertical privilege checks, direct object access, role changes mid-session and permission inheritance.

Test cases for form validation

Test cases
27 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 cases
26 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 cases
24 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 cases
26 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 cases
25 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 cases
28 cases on paraphrased intents, context, fallback loops, human handoff, policy grounding, prompt injection and data scoping.

Test cases for net banking transactions

Test cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 file storage and media processing

Test cases
28 cases on signed URL scope and expiry, serving before scanning completes, content type sniffing, metadata stripping, orphaned objects and derivative failures.

Test cases for CSV import and bulk operations

Test cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 cases
28 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 consent and cookie management

Test cases
28 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 cases
28 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 cases
28 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 cases
28 cases on forged entries through log injection, immutability and tamper detection, actor attribution across impersonation and jobs, retention and legal holds.

Want your privacy controls proven, not assumed?

QAble covers functional, security and compliance paths with ISTQB-certified engineers. Start with a free QA audit of your platform.

Talk to QA Advisor