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

Test cases

Search test cases, weighted to relevance and leaks

Twenty eight cases covering exact and partial matching, typos, diacritics, filters, sort and pagination stability, injection, index lag, performance at production volume and accessibility. Searching for a word that exists is the one case that always passes.

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

SRCH-01

Return the expected record for an exact term match

TypeFunctionalPriorityHigh
Test data
A term known to exist in one record
Expected result
The record appears, ranked first, with the matched term visible in the result.
SRCH-02

Match on a partial word

TypeFunctionalPriorityHigh
Test data
"inv" against "invoice"
Expected result
Prefix matches returned if the requirement says so. If the product only matches whole words, that is the documented behaviour and this case asserts it rather than assuming.
SRCH-03

Search ignoring case

TypeFunctionalPriorityHigh
Test data
INVOICE, invoice, Invoice
Expected result
Identical result sets and identical ordering for all three.
SRCH-04

Search with multiple words

TypeFunctionalPriorityHigh
Test data
"unpaid invoice march"
Expected result
Records matching all terms rank above records matching some. Word order does not change which records are found.
SRCH-05

Match plurals and word stems

TypeFunctionalPriorityMedium
Test data
invoice against invoices, run against running
Expected result
Stemming behaves as specified. This is where user expectation and implementation most often diverge.
SRCH-06

Tolerate a single character typo

TypeFunctionalPriorityMedium
Test data
"invocie"
Expected result
Fuzzy matching returns the intended record, or the interface offers a did you mean suggestion. Silence is a poor answer for a one letter error.
SRCH-07

Search terms containing accents and diacritics

TypeBoundaryPriorityMedium
Test data
cafe against café, Muller against Müller
Expected result
Matches in both directions, so users are not required to type diacritics.
SRCH-08

Search in non Latin scripts

TypeCompatibilityPriorityMedium
Test data
Terms in Devanagari, Arabic, Chinese and Japanese as supported
Expected result
Correct tokenisation and matching. Character based languages need language aware analysis rather than whitespace splitting.
SRCH-09

Submit an empty search

TypeNegativePriorityMedium
Test data
Blank field, then whitespace only
Expected result
Either the full list or a prompt, never an error and never a blank screen with no explanation.
SRCH-10

Search a term with no matches

TypeFunctionalPriorityHigh
Test data
A string certain not to exist
Expected result
A clear empty state naming the query, plus a way forward such as clearing filters or a suggestion. Not a zero row table.
SRCH-11

Search below the minimum term length

TypeBoundaryPriorityMedium
Test data
One character where the minimum is two or three
Expected result
The rule is stated in the interface rather than the search silently doing nothing.
SRCH-12

Search with a very long query

TypeBoundaryPriorityMedium
Test data
500 and 5000 characters
Expected result
Handled or truncated deliberately with a message. No timeout, no 500, no unbounded query to the backend.
SRCH-13

Search with special characters and operators

TypeBoundaryPriorityMedium
Test data
%, _, *, ", -, +, AND, OR, NOT, and unbalanced quotes
Expected result
Either treated as literals or as documented operators. Unbalanced quotes must not error, and wildcards must not expand into a full table scan.
SRCH-14

Attempt injection through the search field

TypeSecurityPriorityHigh
Test data
' OR 1=1 --, NoSQL operator objects, template expressions
Expected result
Treated as text. No query error, no altered result set, nothing in logs suggesting execution.
SRCH-15

Attempt script injection reflected in the results heading

TypeSecurityPriorityHigh
Test data
<script>alert(1)</script> as the query
Expected result
The "results for" text renders the payload as visible characters. Reflected cross site scripting through a search echo is a classic and still common finding.
SRCH-16

Confirm results exclude records the user cannot access

TypeSecurityPriorityHigh
Test data
Term matching a record owned by another user, tenant or restricted project
Expected result
Not returned, and not hinted at through a result count. Filter at the query, never in the interface.
SRCH-17

Confirm deleted, archived and unpublished records are excluded

TypeSecurityPriorityHigh
Test data
Soft deleted and draft records containing the term
Expected result
Absent from results for users without rights to them. Stale index entries after deletion are a frequent cause of leaks.
SRCH-18

Combine a search term with filters

TypeFunctionalPriorityHigh
Test data
Term plus status and date range filters
Expected result
Filters and term intersect. Result count matches the number of rows rendered.
SRCH-19

Verify filter counts match reality

TypeFunctionalPriorityMedium
Test data
Facet showing a count per option
Expected result
Selecting a facet returns exactly the stated number of records. Counts computed before permission filtering are wrong and leak volume.
SRCH-20

Page through results and check stability

TypeStatePriorityHigh
Test data
Navigate to page three, then back to page one
Expected result
No record appears twice or disappears. Unstable sort keys cause records to shuffle between pages, which readers experience as missing data.
SRCH-21

Request a page beyond the last

TypeBoundaryPriorityMedium
Test data
Page 999 of a three page result set
Expected result
Empty state or redirect to the last page. Never an error.
SRCH-22

Share and reload a search URL

TypeFunctionalPriorityMedium
Test data
Copy the URL with term, filters and sort applied
Expected result
Reopening reproduces the same query in the same state, and the browser back button returns to the previous result set rather than to a blank search.
SRCH-23

Change sort order and verify it holds

TypeFunctionalPriorityMedium
Test data
Sort by date then by relevance, with ties present
Expected result
Order is correct and deterministic. Tied records use a stable secondary key so repeated loads match.
SRCH-24

Type quickly and check request behaviour

TypePerformancePriorityMedium
Test data
Type twelve characters rapidly with search as you type enabled
Expected result
Requests are debounced, superseded responses are discarded, and the results shown correspond to the final query rather than to whichever response arrived last.
SRCH-25

Search immediately after creating a record

TypeStatePriorityHigh
Test data
Create a record, search for it within a second
Expected result
Found, or the delay is disclosed. Index lag that nobody documents produces support tickets claiming data loss.
SRCH-26

Measure response time on a production sized dataset

TypePerformancePriorityHigh
Test data
Full production volume, common and rare terms, worst case filters
Expected result
Within the agreed target at the ninety fifth percentile. Testing search on a thousand seeded rows measures nothing.
SRCH-27

Behaviour when the search service is unavailable

TypeNegativePriorityHigh
Test data
Search backend stubbed to error or time out
Expected result
A clear message and a usable page. The application must not hang, and must not fall back to an unfiltered list that ignores permissions.
SRCH-28

Operate search and suggestions by keyboard and screen reader

TypeAccessibilityPriorityHigh
Test data
Keyboard only, then NVDA or VoiceOver
Expected result
Suggestions reachable with arrow keys and selectable with Enter, the result count announced when it changes, and focus managed so it does not jump back to the top of the page.

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. Any case where search returns records the user is not entitled to see is High, because search is the most common accidental data exposure route in a product.

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

Test what search returns that it should not

Search is the most common accidental data exposure route in a product, and the least tested for it.

Search as the wrong user

Index a record in another tenant or project, then search for it. Filtering in the interface rather than the query is a routine finding.

Page forwards and back

Unstable sort keys shuffle records between pages, so users see duplicates and believe records vanished.

Use real data volume

Latency and relevance on a thousand seeded rows tell you nothing about behaviour on a million.

Break the search service

When the index is down, the dangerous fallback is an unfiltered list that ignores permissions.

What Most Sets Miss

Four search defects that reach production

Permission filtering applied after retrieval is the most serious. The query returns everything matching the term, and the interface hides what the user should not see. It works until the result count, a facet total or an export reveals the volume, or until a small change bypasses the display filter entirely. Test by indexing a record in another tenant and searching for it directly at the API.

Stale index entries are the second. A record is deleted or unpublished, the index is not updated, and search continues to return the title and snippet of content that no longer exists. Verify deletion propagation, and time how long it takes.

Pagination instability is the third and generates the strangest bug reports. If the sort key is not unique, the database is free to order tied records differently on each query, so a record on page one can appear again on page two while another is skipped. Users report missing data, and nothing looks wrong in a single page test.

The fourth is the search echo. Rendering "results for" plus the raw query without escaping is a reflected cross site scripting vector that has existed for twenty years and still ships regularly, because the field itself validates fine and only the echo is unsafe.

Suggest an improvement

Search behaving oddly at scale?

QAble tests search against production sized data, including relevance regression, permission filtering and index freshness.

Functional 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 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 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 search tested at real volume?

QAble builds functional and performance coverage for search with ISTQB-certified engineers. Start with a free QA audit.

Talk to QA Advisor