View all services
Talk to QA Advisor
Browse the Knowledge Hub56 resources
/Test Cases/Data table, filter and sort test cases

Test cases

Data table test cases, where the bulk action hits invisible rows

Twenty eight cases covering type aware sorting, null ordering, unstable sorts across pages, filters that must reset pagination, date range boundaries, search escaping and race conditions, URL state, selection that survives a filter change, bulk action partial failures, export fidelity and formula injection.

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

TBL-01

Load the table with default sort and page size

TypeFunctionalPriorityHigh
Test data
A data set larger than one page
Expected result
Default sort and page size match the specification, the total count is accurate, and the count reflects the filtered set rather than the whole table.
TBL-02

Sort ascending and descending on every sortable column

TypeFunctionalPriorityHigh
Test data
Text, numeric, date, currency and boolean columns
Expected result
Each sorts by its underlying type rather than as a string, so 10 follows 9 rather than 1, and dates order chronologically rather than by their formatted text.
TBL-03

Sort a column containing empty and null values

TypeBoundaryPriorityHigh
Test data
A column with nulls, empty strings and zeros mixed with values
Expected result
Nulls sort to a documented, consistent position in both directions, and an empty string is not treated as equivalent to zero or to null.
TBL-04

Keep the sort stable across pages

TypeBoundaryPriorityHigh
Test data
Sort by a column where many rows share the same value, then page forward and back
Expected result
Rows do not reshuffle between pages. A sort with no deterministic tiebreak causes rows to appear twice or not at all while paging.
TBL-05

Reset to the first page when a filter changes

TypeStatePriorityHigh
Test data
Navigate to page 8, then apply a filter that returns three rows
Expected result
View returns to the first page of the new result set rather than showing an empty page 8 that looks like a data loss.
TBL-06

Combine several filters correctly

TypeFunctionalPriorityHigh
Test data
Two filters on different columns, then two values within one column
Expected result
Different columns combine as AND and multiple values in one column as OR, matching the documented behaviour rather than whichever the implementation chose.
TBL-07

Show an explicit empty state when filters match nothing

TypeNegativePriorityHigh
Test data
A filter combination with no matching rows
Expected result
A clear empty state naming the active filters with a way to clear them, rather than a blank table that reads as a loading failure.
TBL-08

Clear filters individually and all at once

TypeStatePriorityMedium
Test data
Three active filters, remove one, then clear all
Expected result
Removing one leaves the others applied, clear all removes every filter including any hidden default, and the row count updates in both cases.
TBL-09

Filter on a date range at its boundaries

TypeBoundaryPriorityHigh
Test data
A range whose endpoints exactly match record timestamps, in a timezone ahead of the server
Expected result
Inclusivity matches the specification and the comparison uses a consistent timezone, so a record is not excluded because of a local midnight conversion.
TBL-10

Filter on a numeric range with negative and zero values

TypeBoundaryPriorityMedium
Test data
A range from a negative minimum to zero, and one where minimum exceeds maximum
Expected result
Correct rows returned for the valid range, and the inverted range is rejected with a message rather than silently returning nothing.
TBL-11

Search free text across the intended columns

TypeFunctionalPriorityHigh
Test data
A term matching one column, a partial word, and different letter casing
Expected result
Matches the documented column set with documented case and partial matching, and the columns searched are the ones a user would expect.
TBL-12

Handle special characters in a search term

TypeNegativePriorityHigh
Test data
A percent sign, an underscore, quotes, a backslash and query syntax
Expected result
Treated as literal text with no error and no unexpectedly broad result set. Wildcard characters passed through unescaped silently match everything.
TBL-13

Debounce search without dropping the final keystroke

TypeFunctionalPriorityHigh
Test data
Type a term quickly, then stop
Expected result
Results match the complete term. A response for an earlier keystroke arriving late must not overwrite the results for the current one.
TBL-14

Preserve table state in the URL

TypeStatePriorityHigh
Test data
Apply filters, sort and page 3, then copy the URL into a new tab and reload
Expected result
Identical view is restored. State held only in memory means a shared link or a refresh silently loses the user place.
TBL-15

Restore state correctly with the browser back button

TypeStatePriorityMedium
Test data
Change filters three times, then press back twice
Expected result
Each step returns to the previous view rather than to the initial state or out of the page entirely.
TBL-16

Handle a malformed or hostile URL parameter

TypeNegativePriorityHigh
Test data
A page number of zero and of a million, a sort on a column that does not exist, and an oversized filter value
Expected result
Each falls back to a safe default or returns a clear error, and no parameter is passed into a query unchecked.
TBL-17

Sort and filter only on permitted columns

TypeSecurityPriorityHigh
Test data
Request a sort on an internal column and a filter on a field the user cannot read
Expected result
Refused against an allow list. Accepting arbitrary column names is both an injection route and a way to infer hidden data through ordering.
TBL-18

Apply row level permissions to every path

TypeSecurityPriorityHigh
Test data
A user requesting rows outside their scope through a filter, through search and through the export
Expected result
Restricted rows are absent from all three and from the total count. A permission applied only to the default view leaks through search and export.
TBL-19

Select rows and keep the selection meaningful

TypeStatePriorityHigh
Test data
Select four rows, then change the filter so two no longer match
Expected result
Selection is cleared or visibly reduced to matching rows. A hidden row that remains selected is how a bulk action reaches records the user never saw.
TBL-20

Distinguish select all on page from select all matching

TypeFunctionalPriorityHigh
Test data
Use select all with 25 rows shown and 4,000 matching the filter
Expected result
The interface states plainly which set is selected and how many, and a bulk action confirms the count before it runs.
TBL-21

Apply a bulk action with partial failures

TypeNegativePriorityHigh
Test data
A bulk update of 50 rows where 6 fail on a permission or validation rule
Expected result
Successes are applied, failures are reported per row with a reason, and the outcome is not presented as a blanket success.
TBL-22

Export exactly what the screen shows

TypeStatePriorityHigh
Test data
Apply filters and a sort, then export
Expected result
Export honours the active filters, sort and column selection, and the row count matches the table. Exporting the unfiltered table is a data exposure.
TBL-23

Export values safely and without corruption

TypeSecurityPriorityHigh
Test data
Cells containing commas, line breaks, leading zeros, long numbers and a value beginning with an equals sign
Expected result
Quoting is correct, leading zeros and long numbers survive, and a formula prefixed value is neutralised so the file cannot execute in a spreadsheet.
TBL-24

Handle a large result set without freezing

TypePerformancePriorityHigh
Test data
A filter matching 100,000 rows, then scroll and change the sort
Expected result
Response stays inside the stated budget, the interface remains responsive, and the count is produced without loading every row into memory.
TBL-25

Show a loading state and handle a failed request

TypeStatePriorityHigh
Test data
Delay the response, then make it fail after a filter change
Expected result
Loading state appears, the failure is reported with a retry, and the previous results are not left on screen looking like the new filtered set.
TBL-26

Reflect a concurrent change by another user

TypeBoundaryPriorityMedium
Test data
Another user deletes a row on the current page, then the user acts on it
Expected result
Action fails with a clear message that the row has changed, rather than a generic error or a silent no operation.
TBL-27

Remain usable on a narrow viewport

TypeCompatibilityPriorityMedium
Test data
A table of twelve columns on a mobile viewport
Expected result
Content is reachable through horizontal scroll within its own container or a stacked layout, and the page body itself does not scroll sideways.
TBL-28

Operate the table with a keyboard and a screen reader

TypeAccessibilityPriorityHigh
Test data
Keyboard navigation through sort controls, filters, row selection and pagination
Expected result
Column headers announce their sort state, the result count is announced after a filter change, selection state is announced per row, and no control is mouse only.

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 shows a row the user should not see, applies a bulk action to the wrong rows, or exports different data than the screen displayed is High. Everything else is judged on how often it is hit.

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

Select rows, then change the filter

A table that sorts and filters correctly on one page is the easy half. These four conditions are where tables lose or expose data.

Filter away a selected row

Select four rows, then filter so two no longer match. A hidden row that stays selected is how a bulk delete reaches records the user never saw and never intended.

Sort on a column full of ties

Then page forward and back. A sort with no deterministic tiebreak reshuffles rows between pages, so records appear twice or vanish entirely while paging.

Filter from page 8

Apply a filter that returns three rows while on page 8. Staying on page 8 shows an empty table, which every user reads as their data having disappeared.

Export and compare

Export with filters active and count the rows. An export that ignores filters is a data exposure, and one that lets a cell starting with equals through is a spreadsheet exploit.

What Most Sets Miss

Why table defects lose data

Selection state is the most consequential thing on this list and almost never tested. Rows are selected, then a filter changes what is visible, and the question is what happens to the selection. If hidden rows stay selected, a bulk action reaches records the user cannot see and did not intend to touch, and there is no confirmation step that would reveal it because the count still looks plausible. The related case is select all, which means two entirely different things depending on whether it covers the current page or every matching row, and the interface has to say which one and how many before a destructive action runs.

Sort stability is the quiet one. Sorting by a column where many rows share a value, with no deterministic tiebreak, produces a different ordering on each query. Paging through that result set will show some records twice and skip others, and the user has no way to tell. It looks like data loss and it is actually non determinism. Alongside it sits type aware sorting: a numeric column sorted as text puts 10 before 9, and a date column sorted by its formatted string orders by month name.

Filters interact with pagination in a way that reads as a bug to every user who hits it. Applying a filter while on page 8 of a result set that now has one page leaves an empty table, and nobody interprets that as "you are on the wrong page". Resetting to the first page on any filter change is the fix, and the empty state needs to name the active filters so a genuinely empty result is distinguishable from a failed request.

Finally, exports and permissions are where a table stops being a display concern. Row level permissions applied to the default view but not to search, filtering or export leak exactly the rows they were meant to hide, and the total count leaks their existence even when the rows themselves are absent. The export needs to honour the active filters, sort and column selection, and it needs to neutralise any cell beginning with an equals sign, because a downloaded file that executes a formula in the recipient spreadsheet is a real attack rather than a formatting quirk.

Suggest an improvement

Testing a web application or admin console?

QAble tests data heavy interfaces end to end, including sort and filter correctness, selection state, row level permissions and export fidelity.

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

Want your table behaviour proven, not assumed?

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

Talk to QA Advisor