Browse the Knowledge Hub56 resources
Test cases
Purchase order test cases, where the approval stops meaning anything
Twenty eight cases covering approval thresholds and delegated authority, amendments that must reset approval, budget commitment under concurrency, partial receipts and over receipt tolerance, three-way match, duplicate invoices, closed periods and segregation of duties.
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
Raise a purchase order from an approved requisition
TypeFunctionalPriorityHigh- Test data
- A requisition with two line items, a valid vendor and a cost centre
- Expected result
- Order is created with a unique number, both lines carried across with quantity, unit price and tax code, and the requisition is marked consumed.
Calculate the line and order totals correctly
TypeFunctionalPriorityHigh- Test data
- Quantity 7 at 13.33 with a 5 per cent line discount and a tax rate applied after discount
- Expected result
- Line total, discount, tax and order total agree to the minor unit, and the order total equals the sum of the lines with no rounding residue.
Apply the tax code by vendor and delivery jurisdiction
TypeFunctionalPriorityHigh- Test data
- A domestic vendor, an intra-region vendor and one outside the tax area
- Expected result
- Correct treatment for each, including reverse charge and zero rating where applicable, driven by the delivery location rather than the billing address alone.
Route the order through the correct approval tier
TypeBoundaryPriorityHigh- Test data
- Approval threshold 10,000. Orders at 9,999, 10,000 and 10,001
- Expected result
- Tier boundary is applied inclusively as documented, and the threshold is evaluated on the total committed value including tax where the policy says so.
Reset approval when an approved order is amended
TypeStatePriorityHigh- Test data
- Approve an order at 9,900, then amend the quantity so the total becomes 14,000
- Expected result
- Approval is withdrawn and the order re-routes to the higher tier. An amendment that retains the original approval is the single most exploitable defect in this flow.
Prevent an approver from approving an order they raised
TypeSecurityPriorityHigh- Test data
- A user with approval authority raising an order within their own limit
- Expected result
- Self approval is refused. Segregation of duties is enforced on the server rather than by hiding the approve control in the interface.
Refuse approval above the delegated authority
TypeSecurityPriorityHigh- Test data
- An approver with a 50,000 limit acting on a 50,001 order
- Expected result
- Refused and escalated to the next tier. The limit is checked against the current order value at the moment of approval, not the value when it was routed.
Honour a temporary delegation and its expiry
TypeBoundaryPriorityMedium- Test data
- A delegation active for one week, exercised inside the window and one day after it
- Expected result
- Approval succeeds inside the window and is refused after it, and the audit record names both the delegate and the original authority.
Check the budget before committing the order
TypeBoundaryPriorityHigh- Test data
- Remaining budget 5,000 on the cost centre. Order for 5,001
- Expected result
- Blocked or routed for exception approval according to policy, and the check uses remaining budget after existing commitments rather than the original allocation.
Commit budget once when two orders are approved concurrently
TypeBoundaryPriorityHigh- Test data
- Remaining budget 10,000. Approve two orders of 8,000 at the same instant
- Expected result
- One commits and one is refused. A read then write on the remaining balance allows both and overcommits the cost centre.
Release committed budget when an order is cancelled
TypeStatePriorityHigh- Test data
- Cancel an approved order with no receipts against it
- Expected result
- Committed amount is released back to the cost centre in full, and the released figure equals the committed figure exactly.
Refuse cancellation once goods have been received
TypeNegativePriorityHigh- Test data
- Cancel an order with a partial receipt already posted
- Expected result
- Refused with a clear reason. Short closing the remaining quantity is the correct path and releases only the uncommitted balance.
Receive goods against the order in full
TypeFunctionalPriorityHigh- Test data
- Full quantity on both lines with a delivery note reference
- Expected result
- Receipt is posted, stock is increased, the order status becomes fully received, and the receipt is linked to the order line rather than the order header.
Post a partial receipt and keep the balance open
TypeStatePriorityHigh- Test data
- Order quantity 100, receive 60, then 40
- Expected result
- Balance is 40 after the first receipt and zero after the second, and no receipt can take the cumulative quantity above the ordered amount.
Apply the over receipt tolerance at its boundary
TypeBoundaryPriorityHigh- Test data
- Order 100 with a 5 per cent tolerance. Receive 105, then attempt 106
- Expected result
- The first is accepted and the second refused. Tolerance is applied to the ordered quantity, not cumulatively to each receipt.
Record a return or rejection after receipt
TypeStatePriorityHigh- Test data
- Receive 100, reject 10 on quality grounds
- Expected result
- Stock reduces by 10, the open balance reopens by 10 if the policy allows replacement, and the matched quantity available for invoicing reduces accordingly.
Match the invoice against the order and the receipt
TypeFunctionalPriorityHigh- Test data
- Invoice matching order price and received quantity exactly
- Expected result
- Three-way match succeeds and the invoice is cleared for payment with the matched receipt and order lines recorded against it.
Block an invoice priced above the order
TypeNegativePriorityHigh- Test data
- Order unit price 100, invoice unit price 104 with a 2 per cent price tolerance
- Expected result
- Blocked for review rather than paid. Price variance is evaluated per unit, and a percentage tolerance is applied to the unit price rather than the invoice total.
Block an invoice for quantity not yet received
TypeNegativePriorityHigh- Test data
- Received 60, invoice for 100
- Expected result
- Only the received quantity is payable. Invoicing ahead of receipt is the standard mechanism by which an overbilling is paid without anyone noticing.
Detect a duplicate invoice for the same order
TypeSecurityPriorityHigh- Test data
- The same vendor invoice number submitted twice, and once with a changed suffix and identical amount and date
- Expected result
- Both are flagged as suspected duplicates. Matching only on invoice number misses the resubmission with a modified reference.
Handle a foreign currency order through to invoice
TypeBoundaryPriorityHigh- Test data
- Order raised in one currency, received and invoiced after the rate moves
- Expected result
- Order value holds its original rate, the variance is posted to the exchange difference account, and the match tolerance is evaluated in the order currency.
Prevent posting to a closed accounting period
TypeNegativePriorityHigh- Test data
- Post a receipt and an invoice dated inside a period that has been closed
- Expected result
- Refused with the period named. Posting into a closed period silently changes reported figures that have already been signed off.
Refuse an order against a blocked or expired vendor
TypeNegativePriorityHigh- Test data
- A vendor on hold, one with an expired compliance document, and one deleted after the requisition was raised
- Expected result
- Each is refused with a distinct reason at approval time as well as at creation time, because the vendor status can change in between.
Prevent two approvers from acting on the same order concurrently
TypeBoundaryPriorityHigh- Test data
- Two approvers open the same order and submit approve and reject at the same instant
- Expected result
- One action succeeds and the other is refused with a conflict. A silent last write wins can turn a rejection into an approval.
Attach and retain supporting documents
TypeFunctionalPriorityMedium- Test data
- A quotation at the maximum permitted size, one byte over, and an executable renamed to a permitted extension
- Expected result
- Accepted, refused on size, and refused on content inspection, and attachments survive a validation failure elsewhere on the form.
Restrict order visibility by company and cost centre
TypeSecurityPriorityHigh- Test data
- A user requesting an order from another company code, by direct identifier and through search
- Expected result
- Refused on both paths. Order numbers are sequential and therefore guessable, so filtering a list view is not sufficient.
Retain an immutable audit trail across the cycle
TypeSecurityPriorityHigh- Test data
- One creation, one amendment, one approval, one rejection and one short close
- Expected result
- Every action records actor, timestamp, previous value and new value. Entries cannot be edited, and the amendment shows what changed rather than only that it changed.
Operate the approval flow with a keyboard and a screen reader
TypeAccessibilityPriorityMedium- Test data
- Keyboard only navigation through the line grid, the approve dialogue and the rejection reason field
- Expected result
- The grid is navigable and its cells labelled, the order total is announced before approval, and the dialogue traps and restores focus correctly.
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, measured in committed spend. Anything that can approve above authority, pay an invoice that does not match the goods received, or commit budget twice is High. Audit and segregation failures are High because they are reportable.
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.
Approve it, then change the quantity
Procure to pay defects are all found at boundaries and after the fact. These four conditions are where committed money goes wrong.
Amend after approval
Approve at 9,900, then raise the total to 14,000. If the original approval survives the amendment, the threshold has been bypassed by anyone who reads the workflow once.
Invoice ahead of receipt
Receive 60, invoice 100. Only the received quantity is payable. This is the standard route by which an overbilling gets paid without anyone questioning it.
Approve two orders at once
Two orders of 8,000 against 10,000 of remaining budget, approved simultaneously. A read then write on the balance lets both commit and overcommits the cost centre.
Walk every tolerance boundary
Over receipt at 105 and 106 on a 100 order with 5 per cent, price variance at the unit level rather than the invoice total. Tolerances are only ever wrong at the edge.
Why procurement defects pay out
The amendment that keeps its approval is the defect worth building this set around. An order approved at 9,900 sits below a 10,000 threshold. If the quantity is then raised so the total becomes 14,000 and the original approval stands, the authority limit has been defeated without anything unusual happening. Any workflow that treats approval as a status on the record rather than as an assertion about a specific value is exposed to it. The same reasoning applies at approval time: the limit must be checked against the order value at the moment of approval, because the value may have moved since it was routed.
The three-way match is where the money actually leaves, and it fails in two directions. Invoicing ahead of receipt is the common one: an invoice for a hundred units against sixty received should clear only sixty, and a system that matches invoice to order without consulting the receipt will pay the full amount. Price variance is the other, and it is usually a units problem: a percentage tolerance applied to the invoice total rather than to the unit price will pass an overpriced line as long as the quantity is small enough to keep the total inside the band.
Budget commitment is a concurrency case that sequential testing cannot reach. Two approvers acting at the same instant on two orders that each fit inside the remaining balance but together exceed it will both succeed if the balance is read and then written. The same shape appears when two approvers act on the same order, one approving and one rejecting: a silent last write wins can turn a rejection into an approval, and the audit trail will show both actions with no indication of which one took effect.
Finally, the boring controls are the ones auditors test. Self approval must be refused on the server rather than by hiding a button. Delegated authority must expire. Postings into a closed accounting period must be refused, because they silently change figures that have already been signed off. Vendor status must be rechecked at approval time and not only at creation, since a vendor can be blocked in between. And duplicate invoice detection has to match on more than the invoice number, because the resubmission that matters arrives with a modified reference and an identical amount and date.
Suggest an improvementTesting an ERP or procurement platform?
QAble tests procure to pay end to end, including approval workflows, three-way match tolerances, budget commitment under load and segregation of duties.
ERP 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 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.Want your approval controls proven, not assumed?
QAble covers functional, boundary and security paths with ISTQB-certified engineers. Start with a free QA audit of your platform.