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

Test cases

Pagination test cases about stability and cost

Twenty four cases covering ordering that stays stable across pages, records inserted or deleted mid session, invalid page parameters, page size caps, deep offset performance, permission filtered totals, state restore after a detail view, infinite scroll and accessibility.

24cases/7coverage types/5state cases/FreeCSV download

All 24 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

24 worked examples

PAGE-01

Load the first page with default settings

TypeFunctionalPriorityHigh
Test data
A data set larger than one page
Expected result
Exactly the default page size is shown, the first page is marked current, previous is disabled, and the total count matches the data set.
PAGE-02

Navigate forward and back through pages

TypeFunctionalPriorityHigh
Test data
Next to page three, then previous back to page one
Expected result
No record appears twice and none is skipped. Returning to page one shows exactly the same rows as the first load.
PAGE-03

Jump to the first and last page

TypeFunctionalPriorityMedium
Test data
Last page of a set that does not divide evenly
Expected result
The last page shows the remainder rather than a full page, and next is disabled there.
PAGE-04

Verify ordering is stable across pages

TypeStatePriorityHigh
Test data
A data set with many records sharing the sort value, for example the same created date
Expected result
A unique secondary sort key makes ordering deterministic. Without one the database may order ties differently per query, so records repeat on one page and vanish from another.
PAGE-05

Page through while records are being inserted

TypeStatePriorityHigh
Test data
Insert a record that sorts onto page one, then advance to page two
Expected result
Documented behaviour, and no record is skipped without explanation. This is the argument for cursor based paging on feeds that change constantly.
PAGE-06

Page through while records are being deleted

TypeStatePriorityHigh
Test data
Delete enough records to remove the last page while the reader is on it
Expected result
The reader is moved to the nearest valid page with a clear state, not left on an empty page with no rows and no explanation.
PAGE-07

Request a page beyond the last

TypeBoundaryPriorityMedium
Test data
page=999 on a three page set
Expected result
Empty state or a redirect to the last page. Never an error and never a blank screen.
PAGE-08

Request invalid page values

TypeNegativePriorityHigh
Test data
page=0, page=-1, page=abc, page=1.5, page as an array
Expected result
Normalised to the first page or refused with a clear error. No stack trace, no unbounded query.
PAGE-09

Change the page size

TypeFunctionalPriorityMedium
Test data
Each offered option, for example 10, 25, 50
Expected result
The row count matches the choice, the total page count recalculates, and the reader stays on an equivalent position rather than being thrown to page one unpredictably.
PAGE-10

Enforce a maximum page size

TypeSecurityPriorityHigh
Test data
pageSize=10000 and pageSize=999999 sent directly to the endpoint
Expected result
Capped at the documented maximum. An unbounded page size is a denial of service and a bulk extraction route in one parameter.
PAGE-11

Measure the cost of a deep page

TypePerformancePriorityHigh
Test data
Offset of ten thousand and one hundred thousand rows on production sized data
Expected result
Within the agreed response target. Offset paging degrades linearly, so a deep page is where a list view times out first.
PAGE-12

Verify the total count is accurate

TypeFunctionalPriorityHigh
Test data
Compare the stated total against the number of records actually reachable
Expected result
They agree. If the total is an estimate for performance reasons, the interface says so rather than stating a precise wrong number.
PAGE-13

Verify the count and rows respect permissions

TypeSecurityPriorityHigh
Test data
A list containing records the current user cannot access
Expected result
Restricted records are excluded from both the rows and the total. A count computed before permission filtering discloses how much exists.
PAGE-14

Combine pagination with filters

TypeFunctionalPriorityHigh
Test data
Apply a filter while on page three
Expected result
The reader returns to page one of the filtered set, the total reflects the filter, and the filter survives further paging.
PAGE-15

Combine pagination with sorting

TypeFunctionalPriorityHigh
Test data
Change the sort while on page two
Expected result
Sorting applies to the whole set rather than to the current page only, and the reader returns to page one.
PAGE-16

Share and reload a paginated URL

TypeFunctionalPriorityHigh
Test data
Copy the URL on page three with filters and sort applied
Expected result
Reopening reproduces the same page, filters and sort. Pagination state that lives only in memory cannot be shared or bookmarked.
PAGE-17

Use the browser back button after paging

TypeStatePriorityMedium
Test data
Advance three pages, then press back twice
Expected result
Returns through the page history rather than leaving the list entirely.
PAGE-18

Return from a detail view to the list

TypeStatePriorityHigh
Test data
Open a record from page four, then go back
Expected result
The list restores page four with its filters and scroll position. Losing the reader place is the most common complaint about paginated tables.
PAGE-19

Verify the empty and single page states

TypeBoundaryPriorityMedium
Test data
Zero records, then a set smaller than one page
Expected result
A clear empty message with a way forward, and pagination controls hidden or disabled rather than showing page one of one with dead buttons.
PAGE-20

Verify infinite scroll behaviour if used

TypeFunctionalPriorityHigh
Test data
Scroll through several loads, then reload the page
Expected result
No duplicate rows at load boundaries, a visible loading state, an end of list indicator, and either a restored position on return or an honest reset.
PAGE-21

Verify scroll and focus position on page change

TypeAccessibilityPriorityHigh
Test data
Move to the next page with a keyboard
Expected result
Focus moves to the start of the new results and the change is announced, rather than leaving focus on a control at the bottom of the page with no feedback.
PAGE-22

Operate pagination controls by keyboard and screen reader

TypeAccessibilityPriorityHigh
Test data
Keyboard only, then NVDA or VoiceOver
Expected result
Controls are real buttons or links with accessible names, the current page is exposed as current, and disabled controls announce as disabled rather than being unreachable.
PAGE-23

Verify exports and bulk actions against pagination

TypeFunctionalPriorityHigh
Test data
Select all on page two, then export
Expected result
The interface makes clear whether the action applies to the page, the selection or the whole filtered set. Ambiguity here causes accidental bulk operations.
PAGE-24

Verify behaviour when the data source is slow or unavailable

TypeNegativePriorityHigh
Test data
Delay the request, then fail it
Expected result
A loading state, then a clear error with a retry. The previous page stays readable rather than being replaced by an empty table.

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. Anything that hides records from the reader, exposes records they should not see, or lets a request return unbounded rows 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

Page forward, then page back

Every list passes on load. The defects appear on the second page and on the way back.

Seed identical sort values

Create twenty records with the same created date. Without a unique secondary key, rows repeat on one page and disappear from another.

Send a huge page size

Request ten thousand rows directly. An uncapped page size is both a denial of service and a bulk extraction route.

Go deep on real data

Offset paging degrades linearly, so page 400 of production data is where the list view times out first.

Open a record and come back

Losing the reader position on return is the most common complaint about paginated tables, and it is rarely in the test plan.

What Most Sets Miss

Four pagination defects that reach users

Unstable ordering produces the strangest bug reports you will receive. If the sort column is not unique, the database is free to return tied rows in a different order on every query, so a record shown on page one can appear again on page two while another is never shown at all. Users report missing data, and a single page test looks perfect. The fix is a unique tiebreaker on every sorted query.

A changing data set is the related problem. With offset paging, a record inserted at the top while the reader moves from page one to page two pushes one row down into the space they have already passed, so they never see it. On feeds that change constantly, cursor based paging is the correct answer rather than a nicety.

Page size is the security case. It looks like a preference and behaves like a parameter: uncapped, it lets anyone request the entire table in one request, which is both a performance risk and the easiest bulk extraction route in most applications. Cap it server side and reject anything above the cap rather than silently clamping.

Counts computed before permission filtering leak volume. The rows are filtered correctly but the total is not, so a user learns exactly how many records exist that they cannot see. Assert both the rows and the total against what that user is entitled to.

Suggest an improvement

Lists slowing down at scale?

QAble tests list and search performance against production sized data, including deep paging, unstable ordering and permission filtered totals.

Web application testing

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 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 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.

Sources

Want your data tables tested at real volume?

QAble builds functional and performance coverage with ISTQB-certified engineers. Start with a free QA audit of your product.

Talk to QA Advisor