Browse the Knowledge Hub74 resources
Test cases
Impersonation test cases, for when the audit trail blames the customer
Twenty eight cases covering actions attributed to the admin rather than the user, a persistent indicator, blocked destructive and authentication changes, credentials never revealed, chained and upward impersonation, shorter session expiry, tokens refused after exit, customer notification, clean analytics and immutable access records.
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
Start an impersonation session as an authorised admin
TypeFunctionalPriorityHigh- Test data
- An admin with the impersonation permission acting on a customer account
- Expected result
- Session starts, the customer view is rendered accurately, and the start is recorded with admin, target, timestamp and stated reason.
Refuse impersonation without the specific permission
TypeSecurityPriorityHigh- Test data
- A support user without the permission, attempting through the interface and the API directly
- Expected result
- Refused on both paths. Impersonation is a distinct permission rather than something implied by general administrative access.
Require a reason or ticket reference to begin
TypeSecurityPriorityHigh- Test data
- An attempt to start with no reason supplied
- Expected result
- Blocked until a reason is provided, and the reason is stored with the session so access can be justified afterwards rather than reconstructed.
Attribute every action to the impersonating admin
TypeSecurityPriorityHigh- Test data
- Change a setting, delete a record and send a message while impersonating, then read the audit log
- Expected result
- Each is recorded as performed by the admin on behalf of the user. Attributing it to the customer makes the audit trail lie about who did it.
Show a persistent, unmistakable indicator
TypeFunctionalPriorityHigh- Test data
- Every screen and every modal during an impersonation session
- Expected result
- A visible banner naming the impersonated account is present everywhere, since an admin who forgets they are impersonating will act as the customer by mistake.
Block destructive and irreversible actions
TypeSecurityPriorityHigh- Test data
- Attempt account deletion, plan cancellation, payment method removal and a data export while impersonating
- Expected result
- Each is refused or requires a separate elevated confirmation, since these are the actions most damaging to perform on somebody behalf by accident.
Never reveal credentials or secrets
TypeSecurityPriorityHigh- Test data
- Inspect password fields, API keys, recovery codes and payment details while impersonating
- Expected result
- All remain masked or absent. Impersonation grants the ability to act as the user, never the ability to read their secrets.
Refuse to change authentication factors
TypeSecurityPriorityHigh- Test data
- Attempt to change the password, email or two factor settings while impersonating
- Expected result
- Refused. Allowing it lets an admin convert temporary support access into permanent independent access to the account.
Expire the impersonation session automatically
TypeBoundaryPriorityHigh- Test data
- An idle impersonation session, and one held past the maximum duration
- Expected result
- Ends on both, with a shorter limit than an ordinary session, since a forgotten impersonation session is an open door to a customer account.
Exit impersonation and restore the admin session
TypeStatePriorityHigh- Test data
- Exit, then check the active identity and attempt an admin only action
- Expected result
- Admin identity is restored intact with its own permissions, and no residual customer context remains in the session.
Refuse the impersonation token after exit
TypeSecurityPriorityHigh- Test data
- Capture the impersonation session token, exit, then replay a request with it
- Expected result
- Refused. Exiting must invalidate on the server rather than switching context in the browser and leaving the token usable.
Prevent nested or chained impersonation
TypeSecurityPriorityHigh- Test data
- While impersonating a user, attempt to impersonate another account from within that session
- Expected result
- Refused, since chaining makes attribution ambiguous and can be used to reach an account the admin was not authorised for.
Refuse impersonation of a privileged account
TypeSecurityPriorityHigh- Test data
- Attempt to impersonate another admin, and an account with higher privileges than the actor
- Expected result
- Refused, since impersonating upward is a privilege escalation dressed as a support action.
Scope impersonation to the permitted tenant
TypeSecurityPriorityHigh- Test data
- An admin scoped to one tenant attempting to impersonate a user in another
- Expected result
- Refused, and the target account is not disclosed by the error, so the endpoint cannot be used to confirm which accounts exist.
Notify the customer of the access
TypeSecurityPriorityHigh- Test data
- An impersonation session started on an account
- Expected result
- Documented notification or consent flow is applied, since access to a personal account without the person knowing is difficult to defend to a regulator.
Support a consent gated access model
TypeFunctionalPriorityMedium- Test data
- A customer granting time limited support access, then revoking it
- Expected result
- Access works only while granted, expires automatically, and revocation ends any live session immediately rather than at its next expiry.
Suppress notifications to the customer during impersonation
TypeStatePriorityHigh- Test data
- Perform actions that would normally email or push the account owner
- Expected result
- Documented behaviour applied consistently, so the customer is not confused by alerts for activity they did not perform, or misled into thinking nothing happened.
Keep analytics and usage data clean
TypeStatePriorityMedium- Test data
- A session of impersonated activity, then the customer usage reports and product analytics
- Expected result
- Impersonated activity is excluded or flagged, since counting support sessions as customer engagement corrupts both billing and product metrics.
Exclude impersonated events from customer facing history
TypeFunctionalPriorityMedium- Test data
- The customer own activity feed after an impersonation session
- Expected result
- Support actions are labelled as performed by support rather than presented as the customer own actions, which would be actively misleading.
Restrict read only support views appropriately
TypeSecurityPriorityHigh- Test data
- A read only support view of an account, with an attempt to perform a write
- Expected result
- Writes refused on the server rather than by hiding controls, and the read only view still masks secrets and sensitive fields.
Apply data minimisation to support views
TypeSecurityPriorityHigh- Test data
- A support view of an account containing health, financial or message content
- Expected result
- Only the fields needed to resolve a case are visible by default, with anything further requiring an explicit and recorded elevation.
Record the end of the session and its duration
TypeSecurityPriorityHigh- Test data
- A completed session, and one ended by timeout rather than by exiting
- Expected result
- Both record an end time and duration, so an unattended session that expired is distinguishable from one an admin closed deliberately.
Make the impersonation record immutable
TypeSecurityPriorityHigh- Test data
- Attempt to edit or delete an impersonation audit entry as an administrator
- Expected result
- Refused. An admin able to remove the record of their own access defeats the entire control.
Surface impersonation activity for review
TypeFunctionalPriorityHigh- Test data
- A report of impersonation sessions by admin, by account and by frequency
- Expected result
- Available and reviewable, since the value of the log is in somebody reading it rather than in it merely existing.
Alert on unusual impersonation patterns
TypeSecurityPriorityMedium- Test data
- One admin impersonating many accounts in a short period, and access outside working hours
- Expected result
- Raises an alert to a separate reviewer, since bulk access to customer accounts is the pattern that precedes a data exfiltration incident.
Behave correctly across two tabs
TypeStatePriorityHigh- Test data
- An impersonation session in one tab and the admin console in another
- Expected result
- Contexts do not leak between tabs, and an action taken in the admin tab is not attributed to the impersonated user.
Handle the impersonated account changing state mid session
TypeNegativePriorityHigh- Test data
- The target account is deleted, suspended or has its plan changed during impersonation
- Expected result
- Session ends or degrades with a clear message rather than continuing to act on an account that no longer exists in that state.
Make the impersonation state perceivable to assistive technology
TypeAccessibilityPriorityMedium- Test data
- A screen reader used during an impersonation session
- Expected result
- Banner is announced on page load and reachable in the reading order, so the state is not conveyed by colour and position alone.
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 attributes an action to the wrong actor, lets impersonation begin without authorisation and a record, or allows a session to persist after it should have ended is High.
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.
Change something, then read the log
Support tooling is built for internal users and reviewed least. These four conditions are where it turns into a liability.
Act while impersonating, then check attribution
If the log records the customer as the actor, it actively lies. The customer gets blamed for a deletion a support agent performed, and you have no way to prove otherwise.
Try to change the password or email
Allowing it lets an admin convert temporary support access into permanent independent access to the account. This is the escalation path that matters most here.
Impersonate upward
Target another admin, or an account with more privileges than the actor. Refusing this is what stops impersonation being a privilege escalation dressed as support.
Keep the token, then exit
Replay a request with it. Exiting has to invalidate on the server, not just switch context in the browser and leave the token working.
Why support tooling becomes a liability
Impersonation is built for internal users, shipped without a design review, and then never tested again, which is why it accumulates the sharpest defects in a product. The most consequential is attribution. If an action taken while impersonating is recorded as performed by the customer, the audit trail does not merely lack detail, it asserts something false. A customer disputing a deletion or a settings change will be shown evidence that they did it, and you will have no way to establish otherwise. Every action needs recording as performed by the admin on behalf of the user.
The privilege boundaries are the second theme. Impersonation should grant the ability to act as the user and never the ability to read their secrets, so passwords, API keys, recovery codes and payment details stay masked. It must not permit changing authentication factors, because that converts temporary support access into permanent independent access. It must refuse chaining, since impersonating from within an impersonation session makes attribution ambiguous and can reach accounts the admin was never authorised for. And it must refuse impersonating upward, or it becomes a straightforward escalation path.
Session hygiene needs to be stricter here than anywhere else. An impersonation session is an open door to somebody personal account, so the idle and absolute limits should be shorter than an ordinary session, and exiting must invalidate the token on the server rather than switching context in the browser. The persistent banner belongs in this group too: an admin who forgets which account they are in will act as the customer by accident, and that is a support failure caused by a missing interface element.
Finally, the governance cases are what a regulator or an enterprise buyer will ask about. The record has to be immutable, because an admin able to delete the log of their own access defeats the entire control. Access should be notified to the customer, or gated behind their consent, since reading a personal account without the person knowing is hard to defend. Bulk impersonation by one admin in a short window should raise an alert to a separate reviewer, because that pattern is what precedes an exfiltration incident. And impersonated activity should be excluded from usage analytics, or support sessions quietly inflate both engagement metrics and any usage based billing.
Suggest an improvementTesting admin or support tooling?
QAble tests internal tooling with the same rigour as customer facing features, including attribution correctness, privilege boundaries, session limits and audit integrity.
Cyber security 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 file storage and media processing
Test cases28 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 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 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 support access proven, not assumed?
QAble covers functional, security and governance paths with ISTQB-certified engineers. Start with a free QA audit of your platform.