ETRM

ETRM Testing: What Your Vendor Doesn’t Test

ETRM Testing: What Your Vendor Doesn’t Test

ETRM vendors test their own product but they do not test your configuration, your interfaces or your data, so every ETRM implementation needs testing of its own. ETRM testing pays off most when it starts early – a defect found after release can cost up to 30 times more to fix than one caught in requirements.

An ETRM system holds your positions, values your book, schedules your power and gas, produces your invoices and files your regulatory reports. When something in it is wrong, the business feels it within the same trading day.

Our own regression suite recently caught a change that would have left every power position one hour short on the October clock-change day. More on that below.

What is ETRM testing?

ETRM testing is the process of checking that an energy trading and risk management system, such as Endur, does what the business needs across the whole life of a deal: capture, valuation and P&L, risk, scheduling, settlement and regulatory reporting.

You will also hear the term ETRM quality assurance. Testing looks for defects in what has already been built but quality assurance is wider. It covers how the system gets built, from the first requirement through to life after go-live, so that fewer defects are created to begin with.

Why isn’t vendor testing enough?

A concern I hear often is “the vendor already tests the ETRM”. That is true of the product. Everything you have built on top of it is still yours to test.

Vendor testing isn’t enough because the vendor only tests its core product. Its test suite knows nothing about your configuration, your customisations, your interfaces to exchanges, brokers, TSOs and ERP, or the trade and market data that runs through them.

You notice the gap most during version upgrades. A new release can be sound on its own and still break a configuration that worked the day before. If you have no regression tests of your own, you find out through a long manual check before the upgrade or an emergency fix after it.

What does a late ETRM defect cost?

A defect found after release can cost up to 30 times more to fix than one caught in requirements. In ETRM that is only part of the bill, because the business pays for the defect as well.

The business cost depends on where the defect lands.

  • A wrong position, price or P&L figure leads to bad trading, hedging and credit decisions.
  • A failed end-of-day run or a wrong nomination can stop operations and trigger imbalance charges.
  • An invoice error turns into a dispute with a client.

Regulatory reporting is the area where the cost is most public. In 2017 the FCA fined Merrill Lynch £34.5 million for failing to report 68.5 million derivative transactions under EMIR, and stressed that reporting systems must be tested as fit for purpose.

The cost of the fix is easier to put a number on. In the widely used model from NIST, a defect that costs 1 unit to fix during requirements costs 5 during coding, 10 in system testing, 15 in early customer testing and 30 after release. Boehm and Basili found the gap is often 100 times for larger systems, and that typical projects spend 40 to 50% of their effort on rework that could have been avoided.

Relative cost to fix a defect by stage: 1x in requirements, 5x in coding, 10x in system testing, 15x in early customer testing and 30x after release

The gap exists because by the time a defect reaches production, the design, code and tests have all been built on top of it. Fixing it means redoing that work, releasing again and explaining it to the client. Caught in requirements, the same defect is often fixed by rewriting one sentence.

To put that in money, take an illustrative team of 15 developers fixing 600 defects a year, with a requirements-stage fix priced at one developer hour, about €50. If a quarter of the defects surface in client acceptance and just over a third in production, the NIST multipliers put the yearly cost of fixing them at around €510,000. Catch most of them earlier, so that only 8% reach acceptance and 7% reach production, and the cost falls to about €247,500. That figure counts only the effort of fixing. In ETRM, one bad position or one rejected report can cost more than a year of QA.

What should ETRM testing cover?

ETRM testing should follow the deal. A deal moves from the front office through the middle office to the back office, and an error made at one step is passed on to every step after it. A capture error that is caught at entry never reaches valuation, risk, scheduling or an invoice.

Area What can go wrong How to test it
Deal capture A product is captured incorrectly Automated end-to-end flows for each product: power, gas, emissions and options
Prices and curves Market data is missing, late or wrong Tests with missing, late, negative and extreme prices
Valuation and P&L Mark-to-market or P&L is wrong Results compared with golden books on every release
Risk and credit VaR, exposure or limits are wrong Recalculation and comparison after every change
Scheduling Nominations don’t match positions or TSO formats Nominations checked against positions and TSO formats
Settlement and invoicing Invoices don’t match deals or delivered volumes Invoices reconciled to deals and volumes
Regulatory reporting REMIT or EMIR reports are rejected or late Schema and content checks before submission, plus acknowledgement tracking
Interfaces Links to exchanges, brokers, TSOs or ERP break Contract tests and simulators for each connected system
End-of-day batch Runs fail or finish late Performance tests at peak trade volumes
Calendars and time Clock-change days, the gas day or holidays are handled wrongly Test cases for days with 92 and 100 quarter-hours, the gas day and holidays
Upgrades and migrations A vendor release or data move breaks what worked Regression packs and parallel runs that reconcile old and new results

A golden book is a trusted set of test trades with independently checked results. If a release changes the results, the golden book shows it straight away.

Not every area needs the same effort. Boehm and Basili found that about 80% of defects come from 20% of modules so put most of your testing where a failure would hurt most.

Why does regression testing matter so much in ETRM?

Regression testing matters in ETRM because the system keeps changing, through vendor upgrades and through the market itself.

Since delivery day 1 October 2025, EU day-ahead power has traded in 15-minute products instead of hourly ones. A normal day now has 96 periods, and clock-change days have 92 or 100. The market operators ran more than a year of testing before go-live.

Regulation is moving as well with REMIT II entering into force on 7 May 2024. According to Baker McKenzie, its implementing rules cut the deadline for reporting bilateral OTC trades from one month to 10 working days, and add monthly exposure reporting for larger participants from Q1 2027.

Each of these changes reaches into deal capture, valuation, scheduling, invoicing and reporting at once, and rechecking all of that by hand takes a long time. This is the work to automate: regression checks on critical deal flows, API and integration checks, and smoke tests after each deployment. Start with a small smoke suite and grow from there. If the worry is that this will slow delivery down, DORA’s long-running research finds that speed and stability are not a trade-off.

What is the most common mistake in ETRM testing?

Most ETRM teams test with normal days and normal trades, but the bugs that reach production tend to cluster around delivery periods and calendars, especially daylight saving time. In European power, the last Sunday of October has 25 hours and the last Sunday of March has 23. If any code assumes 24 hours, volumes, MTM and settlement are all wrong, and only on two days a year.

Time zones cause similar trouble. A trade booked in CET, market data arriving in UTC and a batch running in server time can make cut-offs and end-of-day snapshots drift by an hour.

Other mistakes come up all the time, like trades checked only on screen while the downstream feeds are not, or amendments and cancellations that are never tested.

Here is the case I mentioned at the start. A developer refactored the service that splits a power trade into delivery intervals, as part of the move to 15-minute products. It passed code review and every unit test, but not the regression suite, which runs nightly and on every merge and includes a golden baseload trade that spans the October DST weekend. It flagged that the 25-hour day now produced only 24 hours, so each MW of position was 1 MWh short for that day.

Thankfully the build was blocked before release, otherwise the error would have shown up weeks later in reconciliation, as wrong positions, a wrong MTM and settlement mismatches with counterparties and the exchange. The fix was a small change to the calendar logic, and both DST days and a leap-year day are now part of the permanent regression pack.

Unit tests checked that the code ran while the regression suite checked that the business answer was right, on the dates where it usually goes wrong.

What is shift-left testing in ETRM?

Shift-left testing means bringing QA in at the start of a project, when the requirements are being written. The name comes from the project timeline: testing traditionally sits at the right-hand end, and shift-left moves it to the left.

Take a one-line requirement: “Support 15-minute power products.” It looks complete but when I read a requirement like this before development starts, I come back with questions.

  • How should clock-change days work, with 92 or 100 quarter-hours?
  • Can price curves, positions, P&L and reports all handle 96 periods a day?
  • How do existing hourly deals combine with the new 15-minute ones?
  • Which exchange, TSO and REMIT report formats change, and from when?

Each answer becomes an acceptance criterion that the client confirms. Any question nobody asks at this point comes back later as a defect, a support ticket or a dispute about scope, and by then it costs many times more to sort out. Boehm and Basili list hastily specified requirements as one of the two major sources of avoidable rework.

Shift-left doesn’t do away with testing at the end. You still test before release, and you keep learning afterwards through monitoring and user feedback. But when QA starts with the requirement, the team finds most defects itself, often before any code exists, and there is much less left to find later.

How do you know your ETRM testing is working?

The way to know is to track a small set of KPIs every month against your own baseline. Defect leakage, the share of all defects that users find in production, is a good place to start. ETRM adds measures of its own: the share of REMIT and EMIR reports rejected or late, the number of P&L and position breaks found in daily reconciliations, whether end-of-day runs finish before trading starts, and how many invoices are reissued because of a defect.

One caution from DORA is that metrics turned into hard targets get gamed. Use the numbers to learn where the process is weak, and don’t use them to rank people or teams.

Conclusion: you pay for quality either way

A company that doesn’t invest in QA still pays for quality. It pays later, in rework, delays and unhappy users, and the cost is hard to see because it is spread across developers, project managers, support and the trading, risk and back-office teams.

I like to compare it to cooking. Testing is tasting the dish after you cook it. Quality assurance also checks the recipe, the ingredients and the oven, so the dish comes out right every time.

Your vendor will go on testing its product. Nobody there will test your 25-hour day, your interfaces or your data. That part is yours, and it is cheapest to test early.

Sources

  1. RTI for NIST (2002). The Economic Impacts of Inadequate Infrastructure for Software Testing, Planning Report 02-3.
  2. Boehm, B. and Basili, V. (2001). Software Defect Reduction Top 10 List, IEEE Computer.
  3. DORA, Google Cloud. DORA’s software delivery performance metrics.
  4. FCA (2017). FCA fines Merrill Lynch £34.5 million for failing to report transactions.
  5. SDAC (2025). 15-Minute MTU in SDAC Was Implemented and the go-live confirmation and testing campaign.
  6. Baker McKenzie (2026). European Union: REMIT II and the wholesale energy market.
← All Insights