Boundary value analysis is a test design technique that checks how a system behaves at the edges of each accepted range: the minimum, the maximum, and the values immediately on either side. On a legal platform, those edges are the invoice caps, approval thresholds, date windows, and field limits your configuration depends on.
A rule that works for a $20,000 invoice can still fail at exactly $50,000, because the person who configured it read “over $50,000” differently from the person who wrote the requirement. Boundary-value validation logic is the set of rules that decides what happens at those limits, and BVA is how you prove those rules before users find the gaps. This guide covers where to apply it, how to write the cases, and how to keep them running after go-live.
What is boundary value analysis in legal platform testing?
Boundary value analysis in legal platform testing is the practice of testing every configured limit at the limit itself and at the values just inside and just outside it. It concentrates test effort on the points where a rule switches from one outcome to another.
Testing values in the middle of a range proves the happy path. It says nothing about whether the platform accepts the maximum, rejects the next value, or handles the edge consistently across forms, workflows, and integrations. BVA fills that gap with a small, predictable set of cases per limit, which keeps the test effort proportionate even on a large build.
Research put the cost of poor software quality in the US at $2.41 trillion in 2022. BVA is one technique within a wider test plan. It sits alongside CLM testing that proves clause and approval logic against every routing variable, and it strengthens that work by covering the numeric and date edges inside each rule.
Which legal platform fields need BVA test cases?
Legal platform fields need BVA test cases wherever a configured limit changes what the platform accepts, routes, or calculates. In most ELM, eBilling, CLM, and intake builds, five groups cover nearly all of them:
- Invoice amounts and caps. Matter-level caps, per-invoice limits, and budget thresholds that trigger rejection or extra review.
- Approval thresholds. Contract values, matter values, or spend levels that route a record to a different approver.
- Dates and windows. Billing-period cutoffs, invoice submission windows, and request due dates measured in business days.
- Rates and quantities. Approved timekeeper rates, hours per line, and expense limits defined in billing guidelines.
- Text and attachment limits. Field lengths, file sizes, and the number of attachments a form will accept.
Every limit in this list usually comes from a document written in plain language. In Unity, an invoice validation rule can add codes, adjust a line item total or rate, flag the invoice or a line, or reject the invoice.
How do you write boundary value analysis test cases?
You write boundary value analysis test cases by taking each configured limit and testing three values: one just below it, the limit itself, and one just above it. For a range with a minimum and a maximum, that gives six cases, plus one normal value from the middle.
The three values for each limit:
- Just below. The value immediately under the limit, such as $49,999.99 for a $50,000 threshold.
- At the limit. The exact configured value, which is where most definition errors show up.
- Just above. The value immediately over the limit, such as $50,000.01.
Take an invoice amount field that accepts $1 to $250,000. The cases are $0 (reject), $1 (accept), $1.01 (accept), a normal value such as $40,000 (accept), $249,999.99 (accept), $250,000 (accept), and $250,000.01 (reject). Seven cases prove the whole range. Write the expected result for each before testing begins, and record the requirement it came from.
Why do inclusive and exclusive limits cause defects?
Inclusive and exclusive limits cause defects because requirements written in plain language rarely say whether the limit value itself is included. “Contracts over $100,000 need general counsel approval” and “contracts of $100,000 or more” route the same contract differently.
The fix starts in requirements. Every limit should be written with an explicit operator: greater than or equal to, or strictly greater than. Business analysts should confirm the intent with the rule owner and record it in the design specification before configuration starts.
Then test the limit value itself in every place the rule appears. A threshold configured correctly in the approval workflow can still be set the other way in a report filter or an integration mapping, and only a test at the exact limit shows the mismatch. On a typical build, two or three of these mismatches surface during the first BVA pass.
How should validation logic handle empty, null, and zero values?
Validation logic should treat empty, null, and zero as three separate cases, with a defined rule for each field. A blank budget field and a zero budget mean different things, and the platform should never guess between them.
Define and test three cases for every critical field:
- Empty or null. The field was never filled in, which should block submission on required fields and stay blank on optional ones.
- Zero. A real value of zero, such as a no-charge invoice line, which some rules should accept and others should flag.
- Negative values. Credits and adjustments, which eBilling rules often need to accept within a separate limit.
Record each decision in the field-level specification. These are the cases most often skipped in testing and most often reported in the first week of hypercare.
How do cross-field rules extend boundary-value validation logic?
Cross-field rules extend boundary-value validation logic by checking limits that depend on another field’s value. The boundary moves with the record, so each rule needs test cases built from the related field.
Three cross-field patterns appear on almost every legal platform:
- Date order. An end date on or after a start date, or an invoice period that falls within the matter’s open dates.
- Spend against budget. An invoice total that cannot push cumulative spend more than a set percentage above the approved budget.
- Rate against rate card. A billed rate at or below the approved rate for that timekeeper and effective date.
Test each pattern at the exact boundary: an end date equal to the start date, spend landing exactly on the budget, a rate matching the card to the cent. These rules deserve their own test cases.
What should a validation error message tell the user?
A validation error message should name the field, state the rule that failed, and tell the user how to fix it. “Invoice total exceeds the $250,000 per-invoice limit; split the invoice or request an exception” resolves the problem in one step.
Generic messages such as “Invalid entry” generate support tickets, which is why invoice validation alerts should show the found and expected values. During hypercare, unclear validation messages are among the most common causes of avoidable tickets from law firms and business users. Test the message text as part of each boundary case, and confirm the rejected value never reaches downstream systems such as finance or reporting.
Where a rejection blocks a firm’s invoice, the message should also match the wording in your billing guidelines, so the firm can trace it back to the rule they agreed to.
How do you keep boundary tests running after go-live?
You keep boundary tests running after go-live by adding every BVA case to the regression suite and rerunning it whenever a limit, workflow, or release changes. Limits change far more often than the platform does.
Rerun the boundary cases on three triggers:
- Configuration changes. A new approval threshold, budget rule, or rate card update.
- Platform releases. Vendor upgrades that can change how fields validate or round.
- Annual rule updates. New billing guidelines, fiscal-year cutoffs, and rate increases.
Run the suite in a sandbox before each change reaches production. Sandbox-to-production deployment testing confirms configuration behaves the same after it moves between environments, and boundary cases are among the quickest ways to spot a difference.
How do you measure BVA coverage on a legal platform?
You measure BVA coverage on a legal platform by tracking how many critical limits have complete test cases, how often those cases run, and how many defects they find. A short set of measures is enough:
- Limit coverage. Every limit on a field that affects money, routing, access, or compliance has its full set of BVA cases. The target is 100 percent.
- Case completeness. Each limit has at least three cases, below, at, and above, with expected results written in advance.
- Defect yield. Defects found by boundary cases as a share of all defects found in system testing and UAT.
Report these alongside the overall test plan each week during system testing, then at every release after go-live.
Conclusion
Boundary value analysis gives your test plan a precise answer to the question users ask after go-live: what happens at the limit? List every configured limit, write explicit operators into the requirements, test below, at, and above each edge, and cover empty, zero, and cross-field cases as well. Keep the cases in regression, and the limits stay correct through every release and rule change.
How Basla can help
Basla provides delivery teams for legal technology implementation, covering legal technology consulting, business analysis, requirements and design specifications, test scripting, system testing, UAT support, regression testing, and hypercare. Basla QA teams build boundary and cross-field test cases for eBilling, CLM, intake, and matter management configurations, with expected results traced back to each requirement.
On a Contract Lifecycle Management rollout, Basla created and executed more than 1,000 CLM test records, and the delivery bench can scale when testing timelines compress.
Frequently asked questions
What is boundary value analysis?
Boundary value analysis is a test design technique that checks system behavior at the edges of each accepted range. It tests the limit itself and the values immediately below and above it.
How many test cases does BVA need per limit?
BVA needs at least three test cases per limit: one just below, one at, and one just above. A range with a minimum and maximum needs six, plus one normal value.
What is boundary-value validation logic?
Boundary-value validation logic is the set of rules that decides whether an input is valid at the limits of an accepted range. It defines whether each limit is inclusive or exclusive and what happens when a value falls outside it.
Where is BVA used on legal platforms?
BVA is used on legal platforms to test invoice caps, approval thresholds, date windows, rate limits, and field lengths. These are the configured limits that decide what the platform accepts and routes.
Does BVA replace other testing techniques?
BVA works alongside other techniques such as scenario, workflow, and role-based security testing. It covers the numeric and date edges inside each rule that other tests can miss.
When should boundary tests be rerun?
Boundary tests should be rerun whenever a limit, workflow, or platform release changes. Keeping them in the regression suite makes each rerun quick.
*This article is provided for general information only and does not constitute legal advice. Basla Solutions provides legal technology implementation and support services and does not practice law.*

