Mission-Driven Test Strategy for a Mortgage Platform UI Change
BehavioralModel answerLast updated
Explain how a housing-finance mission shapes QA work, contrast UI and backend testing, and design a prioritized test suite for a change to a lender-facing form.
Scenario
You are interviewing for a data-focused role at a large, government-chartered mortgage finance institution. It does not lend to homebuyers directly. It buys loans from lenders, bundles them into securities, and guarantees payments to investors, so that lenders have capital to keep lending. Your work would involve close collaboration with QA engineers and product owners on software that lenders use to submit and evaluate loan applications.
Questions
- Mission awareness. Describe what an institution like this does in the housing market and explain how its mission should influence the way you approach quality in your daily work.
- Testing layers. Compare UI testing with backend testing. What is the distinct goal of each, what kinds of defects does each catch, and which tools suit each?
- Test design. A lender-facing application form is getting a UI change. Walk through how you would design test cases so that both functional correctness and user experience are protected.
What to cover
- A concrete link between the mission and testing priorities.
- A clear split of responsibilities between test layers, including where each kind of check belongs.
- A structured, traceable method for deriving test cases, with a worked example.
- Non-functional concerns such as accessibility, data privacy, and auditability.
Hints
Hint 1
Start from the business: a firm that supports mortgage liquidity means defects can change who qualifies for a loan. Turn that into specific quality objectives (correctness, auditability, privacy, accessibility).
Hint 2
For the layer comparison, think in terms of the test pyramid: business rules belong low (unit/API) where tests are fast and stable, while UI tests confirm the user journey and that the screen reflects backend state.
Hint 3
For test design, pick one concrete change (for example a conditional field that feeds an eligibility result) and apply equivalence partitioning, boundary values, state transitions, and error guessing before layering on accessibility, visual, security, and regression checks.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
How to frame the answer
The three questions fit together. The mission explains why you test rigorously, the layer comparison explains where each check lives, and the test-design method explains how you produce the cases. Say that structure out loud at the start.
1. Mission and its effect on quality
What the institution does. It operates in the secondary mortgage market. It purchases loans from banks and other originators, pools them into mortgage-backed securities, and guarantees investors timely principal and interest. That frees lender capital so more loans can be made. Its stated purpose is liquidity, stability, and affordability in housing, covering both owner-occupied and rental properties.
What that implies for my work:
- Blast radius is large. A defect propagates to many lenders, investors, and borrowers. A screen that mis-displays an eligibility outcome is not cosmetic, because it can affect whether someone gets a home loan.
- Auditability is part of quality. I would maintain traceability from requirement to test case to result, keep evidence, and respect change control. This is how you prove correctness after the fact.
- Privacy by default. Borrower data (identifiers, income, credit) is sensitive. I would use masked or synthetic data in test environments and verify that sensitive values are never leaked in the UI, logs, or URLs.
- Accessibility and fairness are on-mission. If the goal is broad access to housing, interfaces should meet WCAG 2.1 AA, and rules should behave consistently regardless of who the user is.
- Stability over raw speed. Ship iteratively, but behind strong regression suites and risk-based release gates.
One-line version: "Because this platform underpins access to mortgage credit, I treat correctness, auditability, and data protection as first-class test objectives."
2. UI testing vs. backend testing
| Aspect | UI testing | Backend testing |
|---|---|---|
| Goal | What users see and do: flows, rendering, usability, accessibility | Business logic, data integrity, API contracts, integrations, performance, security |
| Typical defects | Layout breaks, wrong field states, unclear errors, inaccessible controls, browser quirks | Wrong calculations, bad persistence, contract breaks, race conditions, injection flaws |
| Reliability | More brittle (DOM changes, timing, environment) | Faster and more deterministic |
| Unit/component tools | Jest, React Testing Library | JUnit, TestNG, pytest |
| End-to-end / functional | Playwright, Cypress, Selenium | REST Assured, Postman/Newman, contract tests (Pact) |
| Specialized | axe-core, Lighthouse, visual diffing (Percy, Applitools), cross-browser clouds | k6/JMeter/Gatling for load, SQL data checks, Testcontainers, OWASP ZAP |
| Pyramid position | Thin top: a few E2E journeys plus component tests | Wide base: many unit and API tests |
Key insight: the layers are complementary. Validate rules such as "loan-to-value above a threshold is ineligible" at the unit and API level, where tests are quick and trustworthy. Use UI tests to confirm that a user can complete the journey and that the screen faithfully reflects backend state. Testing rules only through the UI is slow and flaky. Testing only the backend misses the usability and accessibility failures users actually hit.
3. Designing test cases for a UI change
Worked example: a loan application form gains a conditional field, "Second applicant yearly income". It appears when "Has second applicant" is checked and feeds an eligibility summary.
Step 1: Clarify scope and risk. Read the acceptance criteria, designs, and any API contract changes. Ask which downstream systems consume the value. Identify the worst failure: here, an incorrect income figure reaching underwriting logic. Rank cases by that risk.
Step 2: Derive cases systematically.
- Equivalence partitioning: valid amount, zero, negative, non-numeric, empty.
- Boundary values: minimum and maximum allowed amounts, maximum length, decimal precision, just inside and outside each limit.
- State transitions / decision table: checking the box shows the field and makes it required; unchecking hides it and clears or ignores the value; editing after save; reload with persisted state.
- Error guessing: pasted text with currency symbols or commas, double submit, session timeout mid-form, browser back button, very fast repeated toggling.
Step 3: Cover each quality dimension.
- Functional: conditional display, validation messages, save and submit, and the correct value in the request payload and in the database.
- Integration: the eligibility summary recalculates correctly, verified through API assertions rather than eyeballing.
- Regression: the single-applicant flow is unchanged.
- Cross-browser and responsive: supported browsers, viewport sizes, zoom.
- Accessibility: programmatic label, errors announced to screen readers, logical focus order and full keyboard operation, sufficient contrast. Run an automated axe scan and a manual screen-reader pass, since automation catches only a portion of issues.
- UX quality: clear labels and help text, currency formatting consistent with other fields, error messages that tell the user how to fix the problem. Review with design and product, and run a short usability walkthrough for larger changes.
- Visual regression: compare against baseline screenshots to catch unintended layout shifts.
- Security and privacy: input sanitized against script injection, value not exposed in logs, URLs, or analytics, and masked appropriately in display.
- Performance: no noticeable slowdown on render or recalculation.
Step 4: Place each case in the right layer. Validation rules and calculations go to unit/API tests. A small number of E2E tests cover the happy path and one or two critical failure paths. Component tests cover conditional rendering.
Step 5: Make it traceable. Tag each case with the requirement it verifies, its priority, and its automation status. Define exit criteria (for example, no open high-severity defects, accessibility scan clean, regression suite green).
Sample cases
| ID | Scenario | Expected |
|---|---|---|
| T1 | Check "Has second applicant" | Income field appears and is required |
| T2 | Enter 0 or a negative value | Inline error; submit blocked |
| T3 | Paste "$85,000" | Normalized to 85000 or rejected with a clear message, per spec |
| T4 | Uncheck after entering a value | Field hidden; value not sent in payload |
| T5 | Submit valid data | Payload and stored value match; eligibility summary updates |
| T6 | Keyboard-only completion | All controls reachable; errors announced |
Common mistakes
- Naming the company but not tying the mission to concrete test practices.
- Treating UI tests as the place to verify every business rule.
- Ignoring accessibility, privacy, or auditability.
- Listing tools without explaining what risk each addresses.
- Producing a flat list of cases with no prioritization or traceability.
- Using real borrower data in test environments.
Closing line
"I'd test business rules low in the stack, verify the user journey and accessibility at the UI, and keep everything traceable, because at this scale a small defect can affect real housing decisions."