View all services
Talk to QA Advisor
Browse the Knowledge Hub74 resources
/Test Cases/Notification preference test cases

Test cases

Notification test cases, for the opt out that only half worked

Twenty eight cases covering preferences honoured on every channel, marketing misclassified as transactional, one click unsubscribe and its scope, imports resetting consent, preference changes during an in flight send, duplicate sends from at-least-once queues, digest timezones, quiet hours, bounces and complaints.

28cases/8coverage types/11security 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

NTF-01

Honour a preference on every channel

TypeFunctionalPriorityHigh
Test data
Disable a notification type, then trigger it and check email, push, SMS and in app
Expected result
Nothing is sent on any channel. A preference honoured in one channel and ignored in another is the most common complaint in this area.
NTF-02

Apply per channel preferences independently

TypeFunctionalPriorityHigh
Test data
Enable email and disable push for the same notification type
Expected result
Email arrives and push does not, since a single global toggle forces users to choose between all channels and none.
NTF-03

Distinguish transactional from marketing correctly

TypeSecurityPriorityHigh
Test data
A password reset, an order receipt, a product announcement and a promotional offer, all with marketing disabled
Expected result
The first two send and the last two do not. Sending promotional content as transactional to bypass an opt out is the defect that attracts complaints.
NTF-04

Deliver transactional messages regardless of marketing opt out

TypeFunctionalPriorityHigh
Test data
A full marketing opt out, then a security alert and a billing failure notice
Expected result
Both are delivered. Suppressing a genuine security or billing message because of a marketing preference is the mirror image failure.
NTF-05

Honour a one click unsubscribe

TypeSecurityPriorityHigh
Test data
Use the unsubscribe link and the list unsubscribe header from a received email
Expected result
Both take effect without requiring sign in, apply within the stated window, and confirm what was unsubscribed rather than silently doing nothing.
NTF-06

Prevent an unsubscribe link from exposing the account

TypeSecurityPriorityHigh
Test data
Alter the identifier in an unsubscribe URL, and replay a captured link
Expected result
Refused or scoped so it can only unsubscribe, never reveal or change other account data, since the link travels unauthenticated in an inbox.
NTF-07

Apply an unsubscribe across every list

TypeStatePriorityHigh
Test data
Unsubscribe from one campaign, then trigger sends from other marketing lists
Expected result
Documented scope is applied and a global opt out genuinely stops all marketing, rather than one list at a time until the user gives up.
NTF-08

Survive an import or sync that could reset consent

TypeSecurityPriorityHigh
Test data
Re-import a contact list containing a previously unsubscribed address
Expected result
Opt out survives the import. An import that resets the flag turns a compliant database into a regulatory problem with no visible symptom.
NTF-09

Handle a preference change during an in flight send

TypeBoundaryPriorityHigh
Test data
Disable a notification type while a batch containing it is being processed
Expected result
Preference is evaluated at send time rather than when the batch was built, so a user who opted out five minutes ago is not included.
NTF-10

Handle rapid toggling without losing the final state

TypeBoundaryPriorityMedium
Test data
Toggle a preference on and off several times quickly
Expected result
Final stored state matches the last action, and a late arriving response for an earlier toggle does not overwrite it.
NTF-11

Send exactly once when the trigger fires twice

TypeStatePriorityHigh
Test data
Replay the event that produces a notification, and retry the send job
Expected result
One message. Notification pipelines run on at-least-once queues, so deduplication on an event key is what stops duplicate sends.
NTF-12

Batch or digest instead of flooding

TypeFunctionalPriorityHigh
Test data
Fifty notification worthy events for one user within a minute
Expected result
Collapsed per the documented rule rather than fifty separate messages, and the digest states how many events it covers.
NTF-13

Send a digest on schedule in the user timezone

TypeBoundaryPriorityHigh
Test data
A daily digest for users in three timezones, across a daylight saving change
Expected result
Delivered at the intended local time for each, and the transition does not produce two digests in one day or none.
NTF-14

Respect quiet hours

TypeBoundaryPriorityMedium
Test data
A non urgent notification triggered inside a configured quiet period
Expected result
Deferred to the end of the window in the user timezone, while anything classified as urgent is delivered per the documented exception.
NTF-15

Address the notification to the right person

TypeSecurityPriorityHigh
Test data
A batch send inspected for recipient and content pairing, including after a retry
Expected result
Every message goes to its intended recipient with only their data. A misaligned batch that sends one person content to another is a reportable breach.
NTF-16

Send to the current address after a change

TypeStatePriorityHigh
Test data
Change the email address, then trigger a notification
Expected result
Delivered to the verified current address, and any queued message addressed to the old one is re-resolved rather than sent to an address no longer owned.
NTF-17

Stop sending to a hard bouncing address

TypeNegativePriorityHigh
Test data
An address that returns a permanent failure, then further sends
Expected result
Suppressed after the documented threshold, the user is prompted in app to correct it, and continued sending does not damage sender reputation.
NTF-18

Handle a spam complaint

TypeSecurityPriorityHigh
Test data
A complaint received through the feedback loop
Expected result
Recipient is suppressed from marketing immediately and the complaint is recorded, since ignoring complaints is what moves a sending domain onto a blocklist.
NTF-19

Handle an invalid or expired push token

TypeStatePriorityHigh
Test data
A token invalidated by an uninstall, and one belonging to a device now signed into another account
Expected result
Invalid token is removed, and a device reassigned to another account never receives the previous account notifications.
NTF-20

Handle notification permission denied at system level

TypeNegativePriorityHigh
Test data
Push permission denied on the device while the in app preference is enabled
Expected result
Interface reflects the system state rather than claiming push is on, and anything the user must not miss is available in app.
NTF-21

Keep notification content free of unnecessary personal data

TypeSecurityPriorityHigh
Test data
A push notification and an SMS shown on a locked screen
Expected result
Sensitive detail is withheld from the preview, since a lock screen is readable by anyone holding the device.
NTF-22

Localise the notification

TypeCompatibilityPriorityHigh
Test data
A notification for a user whose locale is not the default
Expected result
Sent in the user language with correct date, number and currency formatting, rather than falling back to the default for anything generated server side.
NTF-23

Render the email correctly across clients

TypeCompatibilityPriorityHigh
Test data
The message in a desktop client, a mobile client, webmail, dark mode and as plain text
Expected result
Readable and actionable in all five, with a plain text alternative present and the primary action reachable without images loading.
NTF-24

Keep in app and external notifications consistent

TypeStatePriorityMedium
Test data
Read a notification in app, then check the unread count and the push already delivered
Expected result
Count reconciles across surfaces and reading on one device clears it on the others rather than leaving a permanent phantom badge.
NTF-25

Behave correctly when the delivery provider fails

TypeStatePriorityHigh
Test data
Make the email or push provider return errors, then recover
Expected result
Messages are retried with backoff and none is lost or duplicated on recovery, and an extended outage is visible rather than silent.
NTF-26

Keep test and internal sends out of production

TypeSecurityPriorityHigh
Test data
A campaign triggered from a non production environment
Expected result
Cannot reach real recipients, since a test send to the production list is one of the most damaging self inflicted incidents available.
NTF-27

Record what was sent and why

TypeStatePriorityHigh
Test data
A delivered notification, a suppressed one and an unsubscribe
Expected result
Each is recorded with recipient, channel, type, outcome and the preference state at send time, so a complaint can be answered with evidence.
NTF-28

Operate the preference screen with a keyboard and a screen reader

TypeAccessibilityPriorityHigh
Test data
Keyboard only navigation through a matrix of types and channels
Expected result
Every toggle is reachable and labelled with both its type and channel, state changes are announced, and the grid is navigable without relying on visual position.

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 and reputational exposure. Anything that sends after an opt out, misclassifies marketing as transactional, or delivers one person notification to another 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

Opt out, then check every channel

This set is upstream of the push notification mechanics. These four conditions are where a preference is recorded and then ignored.

Turn one type off, trigger it, check all four channels

Email, push, SMS and in app. A preference honoured in one and ignored in another is the single most common complaint here, and it looks like being spammed.

Send a promotion with marketing disabled

If it arrives labelled as transactional, somebody has routed marketing around the opt out. Then check the reverse: a security alert must still get through.

Re-import a list containing an unsubscribed address

If the import resets the flag, a compliant database becomes a regulatory problem with no visible symptom until the complaints arrive.

Opt out while a batch is being sent

Preference has to be evaluated at send time, not when the batch was built. Otherwise the user who unsubscribed five minutes ago still receives it.

What Most Sets Miss

Why opt outs stop working

A notification preference is a promise across every channel, and it is usually implemented per channel by different code paths written at different times. That is why the characteristic failure is partial: email respects the setting, push does not, and the user experiences the product as ignoring them. Testing it means triggering the notification and checking all four surfaces rather than the one the feature was built for. Per channel granularity matters too, because a single global toggle forces people to choose between every channel and none, and most of them choose none.

The classification boundary is where this becomes a compliance question rather than a usability one. Transactional messages must be delivered regardless of a marketing opt out, and marketing must not be sent as transactional to get around it. Both directions fail in practice. Sending a promotional offer dressed as a service notice generates complaints and eventually blocklisting. Suppressing a genuine security alert or a billing failure because of a marketing preference is the mirror image, and it is worse, because the user misses something that affects their money or their account.

Unsubscribe deserves particular care because the link travels unauthenticated in an inbox. It has to work without sign in, and it must be scoped so it can only unsubscribe, never reveal or modify account data, since anyone who obtains the email obtains the link. Its scope needs to be documented and honoured: unsubscribing from one campaign at a time until the user gives up is technically a working feature and practically a complaint. And the opt out has to survive imports and syncs, which is where it most often gets quietly reset.

Finally, the delivery layer runs on at-least-once queues, so duplicate sends are the default rather than the exception, and deduplication on an event key is what prevents them. Batching stops fifty events becoming fifty messages. Digests need to fire at the intended local time for each recipient, which means handling a daylight saving transition without producing two in one day or none. And a test send from a non production environment must be structurally incapable of reaching the real list, because that is among the most damaging self inflicted incidents available.

Suggest an improvement

Testing notification or messaging flows?

QAble tests notification systems end to end, including preference enforcement across channels, opt out scope, deduplication, digest scheduling and deliverability.

Digital testing 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 account deletion and data export

Test cases
28 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 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 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 opt outs proven, not assumed?

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

Talk to QA Advisor