In brief
A test environment in a bank is not one server but a set of a dozen or more systems in compatible versions, with data in a known state, its own core banking business date and stand-ins for external systems. It works when it has an owner, a version matrix, a booking calendar and a data refresh process without personal data. The delegated regulation under DORA requires production environments to be separated from test environments and limits production data outside production to exceptions approved for a set period.
The environment path and what each stage is for
Most banks have a similar path, although the names vary. Each environment answers a different question, so it has a different level of integration and different rules for deploying versions.
| Environment | The question it answers | Integration | Who deploys versions |
|---|---|---|---|
| DEV / team | does my change work | one service, the rest stubbed | the team, many times a day |
| SIT | do the systems talk to each other | all bank systems, external ones simulated | on a schedule, for example daily |
| UAT | does the process work for the business | like SIT, stable release candidates | only versions that passed SIT, in agreed windows |
| PREPROD | will the release work in production | production-like configuration and volume | like production, with the same procedure |
| performance | will the system handle the traffic | the full chain, reduced scale | the performance team for a test series |
Problems start when one environment plays several roles at once. A UAT environment that gets fixes deployed during the day and performance tests at night gives a reliable answer to none of the questions. Requirements for the performance environment are covered separately in Environment for performance testing.
Consistency: the version matrix and the business date
The most common cause of a wasted test day is an inconsistent environment: the mobile app from the next release talks to the API from the current one, and the core has a product configuration from a month ago. A version matrix helps: one table showing, for each environment, the version of each system, the deployment date and the release number. It works best when the deployment pipeline fills it in automatically rather than someone updating a spreadsheet.
The second bank-specific issue is the business date. A core banking system works in business days: the end-of-day process triggers accruals, postings and reports. In a test environment you need to be able to:
- move the business date forward to check month end, year end or an installment due date,
- run end of day on demand, not only at night,
- agree which systems must share the core's date (cards, payments, the data warehouse) so the results match.
Moving the date in a shared environment affects every team, so it is a decision for the environment owner, recorded in the calendar. Banks that test a lot of time-dependent processes keep a separate "future date" environment.
Test data without personal data
Commission Delegated Regulation (EU) 2024/1774, which supplements DORA (the EU Digital Operational Resilience Act), states in Article 16 that non-production environments store only anonymized, pseudonymized or randomized production data. An exception is possible for specific tests, for a limited period, with approval from the relevant function and reporting to the ICT risk management function. On top of that comes the GDPR, because pseudonymized data is still personal data.
In practice, a bank needs three sources of data:
- A masked copy of production for SIT and UAT, refreshed on a schedule. Masking must stay consistent across systems: the same customer in the core, the CRM and the card system gets the same substitute data.
- Synthetic data for automated and performance tests, generated with a distribution read from production.
- Data created by tests via API: a customer, account and card set up at the start of the test, so tests do not use up shared data.
Masking techniques and the difference between anonymization and pseudonymization are covered in Test data and the GDPR.
External dependencies and bookings
A bank connects to systems it does not control: the clearing house, card schemes, the credit bureau, identity verification providers, public registers. Some have test environments with limited availability and call limits, some have none. In SIT they are usually replaced with simulators, and the partner's real test environment is booked for a few windows in each release cycle. How to do this is described in Service virtualization in testing.
Shared environments need a booking calendar. You book not the whole environment but the resources that are mutually exclusive:
| What to book | Why |
|---|---|
| moving the business date and running end of day | changes the state for everyone |
| a deployment window | the environment is unavailable during it |
| a performance test window | the load spoils other tests' results |
| a window in the partner's environment | the partner gives limited time |
| a data refresh | wipes teams' test data |
Each environment has an owner: a person or team that decides on bookings, keeps the version matrix and is accountable for availability. Without this role the environment belongs to everyone, which means no one.
On-demand environments and costs
Team environments are worth building from code (infrastructure as code, containers) and starting on demand: for the life of a branch, a test or a working day. This gives isolation and lowers cost, because you do not pay for machines at night and over the weekend. A mainframe core or a large card system cannot be started on demand, so on-demand environments connect to the shared SIT through adapters or simulators.
Measure a few things: the share of days when the environment was available during testing hours, the time from request to a ready environment, and the number of defects raised because of the environment rather than the application. These figures show where the test team loses time.
B2Bnetwork engineers build and run such environments in banks: deployment pipelines, infrastructure as code, data refreshes with masking. The scope is described on the Platform and DevOps page, and moving a bank's environments to a hybrid cloud is shown in this case study.
Questions and answers
How many test environments does a bank need?
At least as many as there are questions the tests must answer without interfering with each other: integration, business acceptance, pre-production and performance, plus team environments. With several parallel releases, a second SIT and UAT path is added for the release further down the queue.
Can production data be copied to UAT?
Only after anonymization, pseudonymization or replacement with random data. The delegated regulation under DORA allows an exception for specific tests, for a limited time and with approval, and the GDPR still applies to pseudonymized data. Masking data as part of the refresh process is safer than asking for exceptions.
How often should data in a test environment be refreshed?
As rarely as possible, and always according to the calendar. A refresh wipes the data that teams prepared for testing, so it is usually done at the start of a release cycle or before UAT. Automated tests that create their own data via API do not depend on refreshes.
Who should manage test environments?
A dedicated environment owner, usually in the platform team or the test team. They collect bookings, keep the version matrix, decide on moving the business date and measure availability. Application teams deploy their versions but do not change the state of a shared environment without a booking.