Contract-Driven Testing in Banking: Realistic Mocks - Phil Royston
Categories: Podcasts , Software Testing Unleashed
In a complex banking environment, integration dependencies prevent reliable testing, prompting the adoption of contract-driven testing to mock APIs and decouple test environments. This strategy, combined with business-driven development and stakeholder engagement, improves quality and supports the bank’s transformation goals.
Software Testing Unleashed
Software Testing Unleashed - hosted by Richard Seidl. Different guest per episode. The official Show notes contain a comprehensive overview of the episode. Released as audio and video.
- https://www.richard-seidl.com/en/testing-unleashed
- https://www.youtube.com/playlist?list=PL48Mbm-L0hjB1OdwYi9h7jrq9t352-Zk_
Episode Details
- Show Notes: https://www.richard-seidl.com/en/podcast/contract-driven-testing-banking
- Published: 2026-11-12T05:00:00Z
- Duration: 00:30:14
- Author: Richard Seidl | Software Development & Testing Expert
Overview
Phil Roysten, a developer for 15 to 17 years, became a test manager by accident in 2002 in the Czech Republic. He spent five to six years “inventing software testing” before taking the ISTQB foundation level and discovering that everything he’d created already existed “in a much better way.” Frustrated by the perception that “anyone can test,” he co-founded a testing company with a Slovak partner, serving as CEO for roughly six to seven years before stepping back.
A Czech bank later invited him to help with a transformation program. He introduced contract-driven testing to decouple tests from fragile integration environments, where “the LDAP system is broken or the data feed for the exchange rates is broken” and nothing works. He also pushed business-driven development using business requirements as the basis for user acceptance testing, and shifted UI testing down to API testing within a test pyramid approach.
His key learnings include communicating at multiple levels - from senior management who need a one-slide value proposition, to middle managers who hold budget veto power, to technical teams who respond to demos. He identified that he “totally mis-underestimated” the importance of starting to measure progress, and that the most effective moment to propose structural change is during a crisis, when stakeholders can see the problem.
What If
- What if you decoupled your integration testing by defining API contracts as executable tests before development begins?
- Move: Write contract tests that specify expected responses for specific inputs (e.g., a particular account number returning “account doesn’t exist”), then generate mocks from those tests so both provider and consumer can work in isolation.
- Why Now?: If your testing is blocked by broken dependencies - LDAP, data feeds, third-party services - you are stuck waiting for others. Phil describes being “stuck” because “I’m dependent on somebody else and they’ve got some problems or some delay.”
- Expected Upside: You could potentially test functionality in your development environment without the full integration environment, reducing blocked time and improving the quality that reaches acceptance testing. This is a proposal based on Phil’s bank experience, not a guaranteed outcome for your context.
- What if you waited for the crisis moment before proposing structural changes to your testing process?
- Move: When you notice flawed specifications or fragile processes, document the issues privately but hold your proposal until problems become visible to stakeholders, then say “hey guys, why don’t we do this?”
- Why Now?: People resist change when things nominally “work.” Phil notes that “nobody was taking testing seriously until it started going wrong or it was an urgent need,” and that the crisis moment is when “you can all learn together.”
- Expected Upside: You gain momentum and stakeholder buy-in that would be impossible to achieve in a stable period. This is a proposed strategy; the actual reception will depend on your organization’s culture and the severity of the crisis.
- What if you prepared three distinct communication artifacts to align senior, middle, and technical stakeholders on a new testing approach?
- Move: Create a one-slide value proposition for senior management (e.g., “this should enable us to reduce the length of the testing in the release cycles”), a budget-impact briefing for middle managers, and a live demo with code snippets for technical teams.
- Why Now?: If you are introducing a new testing practice, middle managers “have more power to veto things because they’re the budget owners,” and technical people only engage after seeing a working demo.
- Expected Upside: You reduce the risk of a middle-manager veto and avoid the disengagement of technical teams who would otherwise tune out a theory-only presentation. This is a proposed communication structure; effectiveness will vary by organization.
Takeaway
- Define API contracts as executable tests before development starts, so providers must run contract tests on their implementation before CI, proving they don’t break consumer expectations.
- When pitching a testing change to senior management, use a single slide stating what the change enables (e.g., “reduce the length of the testing in the release cycles”) rather than a detailed technical document.
- Document specification flaws early but propose your solution only when problems become visible to stakeholders; use the crisis momentum to drive adoption.
- Start interviewing test managers and team leads regularly to surface what is and isn’t working, giving feedback even before formal metrics are in place.
- Use business requirements as the basis for user acceptance testing, but expect that “approved” requirements will not be testable until you challenge them with “why” questions and iterate with business analysts.
For a PDF of longer Software Testing Podcast Episode Summaries with Briefing Notes and more detailed summary notes, visit EvilTester Patreon Podcast Summaries.